Ignore:
Timestamp:
May 15, 2014, 7:53:54 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: update vendor to 0.8.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • smplayer/vendor/current/src/audioequalizer.h

    r140 r163  
    11/*  smplayer, GUI front-end for mplayer.
    2     Copyright (C) 2006-2013 Ricardo Villalba <rvm@users.sourceforge.net>
     2    Copyright (C) 2006-2014 Ricardo Villalba <rvm@users.sourceforge.net>
    33
    44    This program is free software; you can redistribute it and/or modify
     
    2626#include "audioequalizerlist.h"
    2727
     28class QLabel;
     29class QComboBox;
    2830class QPushButton;
    2931class EqSlider;
     
    3133class AudioEqualizer : public QWidget
    3234{
    33     Q_OBJECT
     35        Q_OBJECT
    3436
    3537public:
    36     AudioEqualizer( QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog );
    37     ~AudioEqualizer();
     38        enum Preset { User_defined = 0, Flat = 1, Pop = 2, Rock = 3, Classical = 4, Club = 5, Dance = 6, Fullbass = 7,
     39                  FullbassTreble = 8, Fulltreble = 9, Headphones = 10, LargeHall = 11, Live = 12,
     40                  Party = 13, Reggae = 14, Ska = 15, Soft = 16, SoftRock = 17, Techno = 18 };
     41
     42        AudioEqualizer( QWidget* parent = 0, Qt::WindowFlags f = Qt::Dialog );
     43        ~AudioEqualizer();
    3844
    3945        EqSlider * eq[10];
     46
     47        void setEqualizer(AudioEqualizerList l);
    4048
    4149signals:
     
    4957protected slots:
    5058        void applyButtonClicked();
     59        void presetChanged(int index);
    5160
    5261protected:
    5362        virtual void hideEvent( QHideEvent * );
    5463        virtual void showEvent( QShowEvent * );
     64        virtual void changeEvent( QEvent * event );
     65        virtual void retranslateStrings();
     66
     67        void createPresets();
     68        void setValues(AudioEqualizerList l);
     69        int findPreset(AudioEqualizerList l);
    5570
    5671protected:
    57         virtual void retranslateStrings();
    58         virtual void changeEvent ( QEvent * event ) ;
    59 
    60 protected:
     72        QLabel * presets_label;
     73        QComboBox * presets_combo;
    6174        QPushButton * apply_button;
    6275        QPushButton * reset_button;
    6376        QPushButton * set_default_button;
     77        QMap<int,AudioEqualizerList> preset_list;
    6478};
    6579
Note: See TracChangeset for help on using the changeset viewer.