preferences.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * preferences.hpp : Preferences
00003  *****************************************************************************
00004  * Copyright (C) 2006-2007 the VideoLAN team
00005  * $Id: e14124009eeb1dbb796f829251768c5a20e4e9cc $
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
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     /*Called from extended settings, is not used anymore, but could be useful one day*/
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

Generated on Tue May 25 08:04:57 2010 for VLC by  doxygen 1.5.6