00001 /* 00002 * Copyright (C) 2009, Edmundo Albuquerque de Souza e Silva. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 #ifndef __CONFIGUREWINDOW_H__ 00019 #define __CONFIGUREWINDOW_H__ 00020 00021 #include <qdialog.h> 00022 00023 #include <qlabel.h> 00024 #include <qpushbutton.h> 00025 #include <qlayout.h> 00026 #include <qmessagebox.h> 00027 #include <qlineedit.h> 00028 #include <qcombobox.h> 00029 #include <qcheckbox.h> 00030 #include <qhgroupbox.h> 00031 #include <qsplitter.h> 00032 #include <qlistview.h> 00033 #include <qcombobox.h> 00034 #include <qspinbox.h> 00035 #include <qgroupbox.h> 00036 00037 #include <qtabwidget.h> 00038 00039 00040 #include "ConfigData.h" 00041 #define NUM_TOOLS 1 00042 00043 class ConfigureWindow : public QDialog 00044 { 00045 Q_OBJECT 00046 00047 public: 00048 ConfigureWindow( QWidget *parent, ConfigData * ); 00049 ~ConfigureWindow(); 00050 00051 private: 00052 ConfigData *configData; 00053 QWidget *parent; 00054 00055 QVBoxLayout *layout; 00056 QFrame *frm_actual; 00057 QTabWidget *tab_options; 00058 00059 QHGroupBox *group_button; 00060 QPushButton *but_cancel; 00061 QPushButton *but_ok; 00062 00063 // RioMMClient Config 00064 00065 QFrame *frm_riommclient; 00066 QFrame *tab_general; 00067 00068 QGridLayout *riommclient_layout; 00069 QTabWidget *riommclient_tabs; 00070 00071 QFrame *frm_general; 00072 QGridLayout *riommclient_layout_general; 00073 00074 QLabel *lab_language; 00075 QComboBox *cb_language; 00076 00077 QGroupBox *gb_view_options; 00078 QCheckBox *ch_view_streams; 00079 QCheckBox *ch_view_rates; 00080 00081 QGroupBox *gb_tool_path; 00082 QGridLayout *tool_path_layout; 00083 QFrame *tool_path_frame; 00084 QLabel *lab_tool_path[ NUM_TOOLS ]; 00085 QLineEdit *tf_tool_path[ NUM_TOOLS ]; 00086 QPushButton *but_tool_path[ NUM_TOOLS ]; 00087 QSpinBox *sb_buffers; 00088 QSpinBox *sb_main_window; 00089 QSpinBox *sb_plugin_port; 00090 QSpinBox *sb_tgif_window; 00091 QSpinBox *sb_video_window; 00092 QCheckBox *cb_sync; 00093 QCheckBox *cb_use_cache; 00094 QCheckBox *cb_use_plugins; 00095 QLineEdit *le_user; 00096 QLineEdit *le_version; 00097 QLineEdit *le_connectpi; 00098 QLineEdit *le_pihost; 00099 00100 // RioMMVideo Config 00101 00102 QFrame *tab_video; 00103 QGridLayout *riommclient_layout_video; 00104 00105 QCheckBox *cb_makelog; 00106 QLineEdit *le_vplayer; 00107 QLineEdit *le_vversion; 00108 00109 QLineEdit *le_mplayer_arguments; 00110 QLineEdit *le_mplayer_binary; 00111 QLineEdit *le_mplayer_embeded; 00112 QLineEdit *le_mplayer_subtitle; 00113 00114 QLineEdit *le_rioxine_arguments; 00115 QLineEdit *le_rioxine_binary; 00116 QLineEdit *le_rioxine_embeded; 00117 QLineEdit *le_rioxine_subtitle; 00118 00119 // RioMMBrowser Config 00120 00121 QFrame *tab_browser; 00122 QGridLayout *riommclient_layout_browser; 00123 00124 QLineEdit *le_browser; 00125 QLineEdit *le_arguments; 00126 QLineEdit *le_binary; 00127 QLineEdit *le_bversion; 00128 00129 // RioMMTgif Config 00130 00131 QFrame *tab_tgif; 00132 QGridLayout *riommclient_layout_tgif; 00133 00134 QLineEdit *le_targuments; 00135 QLineEdit *le_tbinary; 00136 QLineEdit *le_tversion; 00137 00138 // Riosh Config 00139 00140 QFrame *frm_riosh; 00141 QGridLayout *riosh_layout; 00142 QComboBox *riosh_servers; 00143 QComboBox *riosh_users; 00144 QLineEdit *riosh_editor; 00145 QLineEdit *riosh_monitor_connection; 00146 QLineEdit *riosh_editor_arguments; 00147 QCheckBox *cb_show_hidden_files; 00148 QCheckBox *cb_show_md5sum_local; 00149 QCheckBox *cb_show_md5sum_RIO; 00150 00151 QComboBox *riosh_window_arrangement; 00152 QGroupBox *gb_text_editor; 00153 QGroupBox *gb_monitor_connection; 00154 00155 void initRioMMClientFrame( void ); 00156 void initRioshFrame( void ); 00157 bool isFormOk( void ); 00158 void apply( void ); 00159 00160 public slots: 00161 virtual void submit( void ); 00162 }; 00163 00164 #endif /* __CONFIGUREWINDOW_H__ */