preferences.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef QVLC_PREFS_DIALOG_H_
00025 #define QVLC_PREFS_DIALOG_H_ 1
00026
00027 #include "util/qvlcframe.hpp"
00028 #include "components/simple_preferences.hpp"
00029
00030 class PrefsTree;
00031 class SPrefsCatList;
00032 class AdvPrefsPanel;
00033 class SPrefsPanel;
00034 class QTreeWidgetItem;
00035 class QTreeWidget;
00036 class QHBoxLayout;
00037 class QVBoxLayout;
00038 class QGroupBox;
00039 class QRadioButton;
00040 class QWidget;
00041 class QCheckBox;
00042 class QLabel;
00043
00044 class PrefsDialog : public QVLCDialog
00045 {
00046 Q_OBJECT
00047 public:
00048 PrefsDialog( QWidget *, intf_thread_t * );
00049 virtual ~PrefsDialog() {}
00050 #if 0
00051
00052 void showModulePrefs( char* );
00053 #endif
00054
00055 private:
00056 QGridLayout *main_layout;
00057
00058 QWidget *main_panel;
00059 QHBoxLayout *main_panel_l;
00060
00061 AdvPrefsPanel *advanced_panel;
00062 SPrefsPanel *current_simple_panel;
00063 SPrefsPanel *simple_panels[SPrefsMax];
00064
00065 QWidget *tree_panel;
00066 QHBoxLayout *tree_panel_l;
00067
00068 SPrefsCatList *simple_tree;
00069 PrefsTree *advanced_tree;
00070
00071 QGroupBox *types;
00072 QRadioButton *small,*all;
00073
00074 bool b_small;
00075
00076 private slots:
00077 void setAdvanced();
00078 void setSmall();
00079
00080 void changeAdvPanel( QTreeWidgetItem * );
00081 void changeSimplePanel( int );
00082
00083 void save();
00084 void cancel();
00085 void reset();
00086 void close() { save(); };
00087 };
00088
00089 #endif