ConfigureWindow Class Reference

#include <ConfigureWindow.h>

Public Slots

virtual void submit (void)

Public Member Functions

 ConfigureWindow (QWidget *parent, ConfigData *)
 ~ConfigureWindow ()

Private Member Functions

void initRioMMClientFrame (void)
void initRioshFrame (void)
bool isFormOk (void)
void apply (void)

Private Attributes

ConfigDataconfigData
QWidget * parent
QVBoxLayout * layout
QFrame * frm_actual
QTabWidget * tab_options
QHGroupBox * group_button
QPushButton * but_cancel
QPushButton * but_ok
QFrame * frm_riommclient
QFrame * tab_general
QGridLayout * riommclient_layout
QTabWidget * riommclient_tabs
QFrame * frm_general
QGridLayout * riommclient_layout_general
QLabel * lab_language
QComboBox * cb_language
QGroupBox * gb_view_options
QCheckBox * ch_view_streams
QCheckBox * ch_view_rates
QGroupBox * gb_tool_path
QGridLayout * tool_path_layout
QFrame * tool_path_frame
QLabel * lab_tool_path [NUM_TOOLS]
QLineEdit * tf_tool_path [NUM_TOOLS]
QPushButton * but_tool_path [NUM_TOOLS]
QSpinBox * sb_buffers
QSpinBox * sb_main_window
QSpinBox * sb_plugin_port
QSpinBox * sb_tgif_window
QSpinBox * sb_video_window
QCheckBox * cb_sync
QCheckBox * cb_use_cache
QCheckBox * cb_use_plugins
QLineEdit * le_user
QLineEdit * le_version
QLineEdit * le_connectpi
QLineEdit * le_pihost
QFrame * tab_video
QGridLayout * riommclient_layout_video
QCheckBox * cb_makelog
QLineEdit * le_vplayer
QLineEdit * le_vversion
QLineEdit * le_mplayer_arguments
QLineEdit * le_mplayer_binary
QLineEdit * le_mplayer_embeded
QLineEdit * le_mplayer_subtitle
QLineEdit * le_rioxine_arguments
QLineEdit * le_rioxine_binary
QLineEdit * le_rioxine_embeded
QLineEdit * le_rioxine_subtitle
QFrame * tab_browser
QGridLayout * riommclient_layout_browser
QLineEdit * le_browser
QLineEdit * le_arguments
QLineEdit * le_binary
QLineEdit * le_bversion
QFrame * tab_tgif
QGridLayout * riommclient_layout_tgif
QLineEdit * le_targuments
QLineEdit * le_tbinary
QLineEdit * le_tversion
QFrame * frm_riosh
QGridLayout * riosh_layout
QComboBox * riosh_servers
QComboBox * riosh_users
QLineEdit * riosh_editor
QLineEdit * riosh_monitor_connection
QLineEdit * riosh_editor_arguments
QCheckBox * cb_show_hidden_files
QCheckBox * cb_show_md5sum_local
QCheckBox * cb_show_md5sum_RIO
QComboBox * riosh_window_arrangement
QGroupBox * gb_text_editor
QGroupBox * gb_monitor_connection

Detailed Description

Definition at line 43 of file ConfigureWindow.h.


Constructor & Destructor Documentation

ConfigureWindow::ConfigureWindow ( QWidget *  parent,
ConfigData data 
)

Definition at line 31 of file ConfigureWindow.cpp.

00032     : QDialog( parent, "frm_configure", true )
00033 {
00034     configData   = data;
00035     this->parent = parent;
00036 
00037     #ifndef USE_QT_GRID
00038     // Adapta��o para a Qt 3.1 (usada na GRID). Esta chamada n�o existe na Qt
00039     // 3.1.
00040     setModal( true );
00041     #endif
00042 
00043     setCaption(  "Configure RIO"  );
00044 
00045     layout = new QVBoxLayout( this, 10, 10 );
00046 
00047     // Tab widget
00048     tab_options = new QTabWidget ( this, "tab_option" );
00049     layout->addWidget( tab_options );
00050 
00051     // Buttons
00052     QHGroupBox * group_button = new QHGroupBox( this );
00053     group_button->setFrameStyle( QFrame::NoFrame );
00054     layout->addWidget( group_button );
00055 
00056     but_ok = new QPushButton( group_button, "but_ok" );
00057     but_ok->setDefault( true );
00058 
00059     but_cancel = new QPushButton( group_button, "but_cancel" );
00060 
00061     // Signals and slots connections
00062     connect( but_ok, SIGNAL( clicked() ),
00063              this, SLOT( submit() ) );
00064     connect( but_cancel, SIGNAL( clicked() ),
00065              this, SLOT( reject() ) );
00066   //  connect( tab_options, SIGNAL( currentChanged( QWidget * ) ),
00067   //           this, SLOT( changeFrame( QWidget * ) ) );
00068 
00069     // Set texts
00070     but_ok->setText(  "OK"  );
00071     but_cancel->setText(  "Cancel"  );
00072 
00073     // Init Frames
00074     initRioshFrame();
00075     initRioMMClientFrame();
00076 
00077     frm_actual = frm_riosh;
00078 
00079     // Cannot be resized
00080     setFixedSize( sizeHint() );
00081 }

ConfigureWindow::~ConfigureWindow (  ) 

Definition at line 86 of file ConfigureWindow.cpp.

00087 {
00088     // no need to delete child widgets, Qt does it all for us
00089 }


Member Function Documentation

void ConfigureWindow::apply ( void   )  [private]

Definition at line 583 of file ConfigureWindow.cpp.

00584 {
00585     // Riosh
00586     configData->setEditor( riosh_editor->text() );
00587     configData->setEditorArguments( riosh_editor_arguments->text() );
00588     configData->setRioshShowHiddenFiles( cb_show_hidden_files->isChecked() );
00589     configData->setRioshShowMd5sumLocal( cb_show_md5sum_local->isChecked() );
00590     configData->setRioshShowMd5sumRIO( cb_show_md5sum_RIO->isChecked() );
00591     configData->setRioshWindowArrangement(
00592                                 riosh_window_arrangement->currentItem() );
00593     // Salva o tempo de atualizacao (Monitor Connection Option).
00594     bool ConvOk;
00595     int UpIntMonConnection;
00596     UpIntMonConnection = riosh_monitor_connection->text().toInt( &ConvOk );
00597     if( ConvOk )
00598         configData->setUpIntMonConnection( UpIntMonConnection );
00599     else
00600         QMessageBox::warning( this, "Erro", 
00601                               "Valor invalido da opcao Update Interval ignorado",
00602                               QMessageBox::Ok, QMessageBox::NoButton ); 
00603 
00604     // RioMMClient
00605     configData->setRioMMBuffers( sb_buffers->value() );
00606     configData->setRioMMMainWindow( sb_main_window->value() );
00607     configData->setRioMMPluginPort( sb_plugin_port->value() );
00608     configData->setRioMMTgifWindow( sb_tgif_window->value() );
00609     configData->setRioMMVideoWindow( sb_video_window->value() );
00610     configData->setRioMMSync( cb_sync->isChecked() );
00611     configData->setRioMMUseCache( cb_use_cache->isChecked() );
00612     configData->setRioMMUsePlugins( cb_use_plugins->isChecked() );
00613     configData->setRioMMUser( le_user->text() );
00614     configData->setRioMMVersion( le_version->text() );
00615     configData->setRioMMPIHost( le_pihost->text() );
00616 
00617     // RioMMVideo
00618     configData->setRioMMVMakelog( cb_makelog->isChecked() );
00619     configData->setRioMMVPlayer( le_vplayer->text() );
00620     configData->setRioMMVVersion( le_vversion->text() );
00621     configData->setRioMMVMPlayerArguments( le_mplayer_arguments->text() );
00622     configData->setRioMMVMPlayerBinary( le_mplayer_binary->text() );
00623     configData->setRioMMVMPlayerEmbeded( le_mplayer_embeded->text() );
00624     configData->setRioMMVMPlayerSubtitle( le_mplayer_subtitle->text() );
00625     configData->setRioMMVRIOxineArguments( le_rioxine_arguments->text() );
00626     configData->setRioMMVRIOxineBinary( le_rioxine_binary->text() );
00627     configData->setRioMMVRIOxineEmbeded( le_rioxine_embeded->text() );
00628     configData->setRioMMVRIOxineSubtitle( le_rioxine_subtitle->text() );
00629 
00630     // RioMMTgif
00631     configData->setRioMMTVersion( le_tversion->text() );
00632     configData->setRioMMTArguments( le_targuments->text() );
00633     configData->setRioMMTBinary( le_tbinary->text() );
00634 
00635     // RioMMBrowser
00636     configData->setRioMMBBrowser( le_browser->text() );
00637     configData->setRioMMBVersion( le_bversion->text() );
00638     configData->setRioMMBArguments( le_arguments->text() );
00639     configData->setRioMMBBinary( le_binary->text() );
00640 
00641     // Write configuration file
00642     configData->writeSettings();
00643     accept();
00644 }

void ConfigureWindow::initRioMMClientFrame ( void   )  [private]

Definition at line 94 of file ConfigureWindow.cpp.

00095 {
00096     frm_riommclient = new QFrame( this, "frm_riommclient" );
00097     riommclient_layout = new QGridLayout( frm_riommclient, 1, 1, 0, 0 );
00098 
00099     riommclient_tabs = new QTabWidget ( frm_riommclient, "riommclient_tab" );
00100 
00101     tab_general = new QFrame( this, "tab_general" );
00102     riommclient_tabs->addTab( tab_general, tr( "General" ) );
00103 
00104     tab_video = new QFrame( this, "tab_video" );
00105     riommclient_tabs->addTab( tab_video, tr( "Video" ) );
00106 
00107     tab_browser = new QFrame( this, "tab_browser" );
00108     riommclient_tabs->addTab( tab_browser, tr( "Browser" ) );
00109 
00110     tab_tgif = new QFrame( this, "tab_tgif" );
00111     riommclient_tabs->addTab( tab_tgif, tr( "Tgif" ) );
00112 
00113     riommclient_layout_general = new QGridLayout( tab_general, 10, 2, 10, 5 );
00114     riommclient_layout_video = new QGridLayout( tab_video, 11, 1, 10, 5 );
00115     riommclient_layout_browser = new QGridLayout( tab_browser, 10, 1, 10, 5 );
00116     riommclient_layout_tgif = new QGridLayout( tab_tgif, 10, 1, 10, 5 );
00117 
00118     riommclient_layout->addMultiCellWidget( riommclient_tabs, 0, 8, 0, 2 );
00119 
00120 
00121                         // General Layout
00122 
00123 
00124     cb_sync = new QCheckBox( tr( "Synchronize" ),
00125                              tab_general, "cb_sync" );
00126     cb_sync->setChecked( configData->getRioMMSync() );
00127 
00128     riommclient_layout_general->addMultiCellWidget( cb_sync, 0, 0, 0, 0 );
00129 
00130 
00131 
00132     cb_use_cache = new QCheckBox( tr( "Use Cache" ),
00133                                   tab_general, "cb_use_cache" );
00134     cb_use_cache->setChecked( configData->getRioMMUseCache() );
00135 
00136     riommclient_layout_general->addMultiCellWidget( cb_use_cache, 0, 0, 1, 1 );
00137 
00138 
00139 
00140     cb_use_plugins = new QCheckBox( tr( "Use Plugins" ),
00141                                   tab_general, "cb_use_plugins" );
00142     cb_use_plugins->setChecked( configData->getRioMMUsePlugins() );
00143 
00144     riommclient_layout_general->addMultiCellWidget( cb_use_plugins,
00145                                                     0, 0, 2, 2 );
00146 
00147 
00148 
00149     QHBox * buffergroup = new QHBox ( tab_general, "buffers" );
00150 
00151     new QLabel ( "Buffer Size:", buffergroup );
00152 
00153     sb_buffers = new QSpinBox( 1, 100, 1, buffergroup );
00154     sb_buffers->setValue( configData->getRioMMBuffers() );
00155     sb_buffers->setFixedWidth( 80 );
00156 
00157     riommclient_layout_general->addMultiCellWidget( buffergroup, 1, 1, 0, 2 );
00158 
00159 
00160 
00161     QHBox * mainwindowgroup = new QHBox ( tab_general, "main_window" );
00162 
00163     new QLabel ( "Main Window:", mainwindowgroup );
00164 
00165     sb_main_window = new QSpinBox( 0, 10, 1, mainwindowgroup );
00166     sb_main_window->setValue( configData->getRioMMMainWindow() );
00167     sb_main_window->setFixedWidth( 80 );
00168 
00169     riommclient_layout_general->addMultiCellWidget( mainwindowgroup,
00170                                                     2, 2, 0, 2 );
00171 
00172 
00173 
00174     QHBox * pluginportgroup = new QHBox ( tab_general, "plugin_port" );
00175 
00176     new QLabel ( "Plugin Port:", pluginportgroup );
00177 
00178     sb_plugin_port = new QSpinBox( 0, 10, 1, pluginportgroup );
00179     sb_plugin_port->setValue( configData->getRioMMPluginPort() );
00180     sb_plugin_port->setFixedWidth( 80 );
00181 
00182     riommclient_layout_general->addMultiCellWidget( pluginportgroup,
00183                                                     3, 3, 0, 2 );
00184 
00185 
00186 
00187     QHBox * tgifwindowgroup = new QHBox ( tab_general, "tgif_window" );
00188 
00189     new QLabel ( "Tgif Window:", tgifwindowgroup );
00190 
00191     sb_tgif_window = new QSpinBox( 0, 10, 1, tgifwindowgroup );
00192     sb_tgif_window->setValue( configData->getRioMMTgifWindow() );
00193     sb_tgif_window->setFixedWidth( 80 );
00194 
00195     riommclient_layout_general->addMultiCellWidget( tgifwindowgroup,
00196                                                     4, 4, 0, 2 );
00197 
00198 
00199 
00200     QHBox * videowindowgroup = new QHBox ( tab_general, "video_window" );
00201 
00202     new QLabel ( "Video Window:", videowindowgroup );
00203 
00204     sb_video_window = new QSpinBox( 0, 10, 1, videowindowgroup );
00205     sb_video_window->setValue( configData->getRioMMVideoWindow() );
00206     sb_video_window->setFixedWidth( 80 );
00207 
00208     riommclient_layout_general->addMultiCellWidget( videowindowgroup,
00209                                                     5, 5, 0, 2 );
00210 
00211 
00212 
00213     QHBox * usergroup = new QHBox ( tab_general, "user" );
00214     usergroup->setSpacing( 53 );
00215 
00216     new QLabel ( "User:", usergroup );
00217 
00218     le_user = new QLineEdit( usergroup );
00219     le_user->setText( configData->getRioMMUser() );
00220 
00221     riommclient_layout_general->addMultiCellWidget( usergroup, 6, 6, 0, 2 );
00222 
00223 
00224 
00225     QHBox * versiongroup = new QHBox ( tab_general, "version" );
00226     versiongroup->setSpacing( 35 );
00227 
00228     new QLabel ( "Version:", versiongroup );
00229 
00230     le_version = new QLineEdit( versiongroup );
00231     le_version->setText( configData->getRioMMVersion() );
00232     le_version->setReadOnly( true );
00233 
00234     riommclient_layout_general->addMultiCellWidget( versiongroup, 7, 7, 0, 2 );
00235 
00236     QHBox * pihostgroup = new QHBox ( tab_general, "connectpi" );
00237     pihostgroup->setSpacing( 43 );
00238 
00239     new QLabel ( "PIHost:", pihostgroup );
00240 
00241     le_pihost = new QLineEdit( pihostgroup );
00242     le_pihost->setText( configData->getRioMMPIHost() );
00243 
00244     riommclient_layout_general->addMultiCellWidget( pihostgroup, 8, 8, 0, 2 );
00245 
00246                         // Video Layout
00247 
00248     cb_makelog = new QCheckBox( tr( "Make Log" ),
00249                                   tab_video, "cb_makelog" );
00250     cb_makelog->setChecked( configData->getRioMMVMakelog() );
00251 
00252     riommclient_layout_video->addMultiCellWidget( cb_makelog, 0, 0, 0, 0 );
00253 
00254 
00255 
00256     QHBox * vplayergroup = new QHBox ( tab_video, "vplayer" );
00257     vplayergroup->setSpacing( 49 );
00258 
00259     new QLabel ( "Video Player:", vplayergroup );
00260 
00261     le_vplayer = new QLineEdit( vplayergroup );
00262     le_vplayer->setText( configData->getRioMMVPlayer() );
00263 
00264     riommclient_layout_video->addMultiCellWidget( vplayergroup, 1, 1, 0, 1 );
00265 
00266 
00267 
00268     QHBox * vversiongroup = new QHBox ( tab_video, "vversion" );
00269     vversiongroup->setSpacing( 40 );
00270 
00271     new QLabel ( "Video Version:", vversiongroup );
00272 
00273     le_vversion = new QLineEdit( vversiongroup );
00274     le_vversion->setText( configData->getRioMMVVersion() );
00275     le_vversion->setReadOnly( true );
00276 
00277     riommclient_layout_video->addMultiCellWidget( vversiongroup, 2, 2, 0, 1 );
00278 
00279 
00280 
00281     QHBox * mplayer_argumentsgroup = new QHBox ( tab_video,
00282                                                  "mplayer_arguments" );
00283     mplayer_argumentsgroup->setSpacing( 9 );
00284 
00285     new QLabel ( "MPlayer Arguments:", mplayer_argumentsgroup );
00286 
00287     le_mplayer_arguments = new QLineEdit( mplayer_argumentsgroup );
00288     le_mplayer_arguments->setText( configData->getRioMMVMPlayerArguments() );
00289     le_mplayer_arguments->setCursorPosition ( 0 );
00290 
00291     riommclient_layout_video->addMultiCellWidget( mplayer_argumentsgroup,
00292                                                   3, 3, 0, 1 );
00293 
00294 
00295 
00296     QHBox * mplayer_binarygroup = new QHBox ( tab_video, "mplayer_binary" );
00297     mplayer_binarygroup->setSpacing( 37 );
00298 
00299     new QLabel ( "MPlayer Binary:", mplayer_binarygroup );
00300 
00301     le_mplayer_binary = new QLineEdit( mplayer_binarygroup );
00302     le_mplayer_binary->setText( configData->getRioMMVMPlayerBinary() );
00303 
00304     riommclient_layout_video->addMultiCellWidget( mplayer_binarygroup,
00305                                                   4, 4, 0, 1 );
00306 
00307 
00308 
00309     QHBox * mplayer_embededgroup = new QHBox ( tab_video, "mplayer_embeded" );
00310     mplayer_embededgroup->setSpacing( 17 );
00311 
00312     new QLabel ( "MPlayer Embeded:", mplayer_embededgroup );
00313 
00314     le_mplayer_embeded = new QLineEdit( mplayer_embededgroup );
00315     le_mplayer_embeded->setText( configData->getRioMMVMPlayerEmbeded() );
00316 
00317     riommclient_layout_video->addMultiCellWidget( mplayer_embededgroup,
00318                                                   5, 5, 0, 1 );
00319 
00320 
00321 
00322     QHBox * mplayer_subtitlegroup = new QHBox ( tab_video, "mplayer_subtitle" );
00323     mplayer_subtitlegroup->setSpacing( 30 );
00324 
00325     new QLabel ( "MPlayer Subtitle:", mplayer_subtitlegroup );
00326 
00327     le_mplayer_subtitle = new QLineEdit( mplayer_subtitlegroup );
00328     le_mplayer_subtitle->setText( configData->getRioMMVMPlayerSubtitle() );
00329 
00330     riommclient_layout_video->addMultiCellWidget( mplayer_subtitlegroup,
00331                                                   6, 6, 0, 1 );
00332 
00333 
00334 
00335     QHBox * rioxine_argumentsgroup = new QHBox ( tab_video,
00336                                                  "rioxine_arguments" );
00337     rioxine_argumentsgroup->setSpacing( 9 );
00338 
00339     new QLabel ( "RIOxine Arguments:", rioxine_argumentsgroup );
00340 
00341     le_rioxine_arguments = new QLineEdit( rioxine_argumentsgroup );
00342     le_rioxine_arguments->setText( configData->getRioMMVRIOxineArguments() );
00343     le_rioxine_arguments->setCursorPosition ( 0 );
00344 
00345     riommclient_layout_video->addMultiCellWidget( rioxine_argumentsgroup,
00346                                                   7, 7, 0, 1 );
00347 
00348 
00349 
00350     QHBox * rioxine_binarygroup = new QHBox ( tab_video, "rioxine_binary" );
00351     rioxine_binarygroup->setSpacing( 37 );
00352 
00353     new QLabel ( "RIOxine Binary:", rioxine_binarygroup );
00354 
00355     le_rioxine_binary = new QLineEdit( rioxine_binarygroup );
00356     le_rioxine_binary->setText( configData->getRioMMVRIOxineBinary() );
00357 
00358     riommclient_layout_video->addMultiCellWidget( rioxine_binarygroup,
00359                                                   8, 8, 0, 1 );
00360 
00361 
00362 
00363     QHBox * rioxine_embededgroup = new QHBox ( tab_video, "rioxine_embeded" );
00364     rioxine_embededgroup->setSpacing( 17 );
00365 
00366     new QLabel ( "RIOxine Embeded:", rioxine_embededgroup );
00367 
00368     le_rioxine_embeded = new QLineEdit( rioxine_embededgroup );
00369     le_rioxine_embeded->setText( configData->getRioMMVRIOxineEmbeded() );
00370 
00371     riommclient_layout_video->addMultiCellWidget( rioxine_embededgroup,
00372                                                   9, 9, 0, 1 );
00373 
00374 
00375     QHBox * rioxine_subtitlegroup = new QHBox ( tab_video, "rioxine_subtitle" );
00376     rioxine_subtitlegroup->setSpacing( 30 );
00377 
00378     new QLabel ( "RIOxine Subtitle:", rioxine_subtitlegroup );
00379 
00380     le_rioxine_subtitle = new QLineEdit( rioxine_subtitlegroup );
00381     le_rioxine_subtitle->setText( configData->getRioMMVRIOxineSubtitle() );
00382 
00383     riommclient_layout_video->addMultiCellWidget( rioxine_subtitlegroup,
00384                                                   10, 10, 0, 1 );
00385 
00386 
00387                         // Browser Layout
00388 
00389 
00390     QHBox * browsergroup = new QHBox ( tab_browser, "browser" );
00391     browsergroup->setSpacing( 50 );
00392 
00393     new QLabel ( "Browser:", browsergroup );
00394 
00395     le_browser = new QLineEdit( browsergroup );
00396     le_browser->setText( configData->getRioMMBBrowser() );
00397 
00398     riommclient_layout_browser->addMultiCellWidget( browsergroup, 0, 0, 0, 1 );
00399 
00400 
00401 
00402     QHBox * bversiongroup = new QHBox ( tab_browser, "bversion" );
00403     bversiongroup->setSpacing( 3 );
00404 
00405     new QLabel ( "Browser version:", bversiongroup );
00406 
00407     le_bversion = new QLineEdit( bversiongroup );
00408     le_bversion->setText( configData->getRioMMBVersion() );
00409     le_bversion->setReadOnly( true );
00410 
00411     riommclient_layout_browser->addMultiCellWidget( bversiongroup, 1, 1, 0, 1 );
00412 
00413 
00414 
00415     QHBox * argumentsgroup = new QHBox ( tab_browser, "arguments" );
00416     argumentsgroup->setSpacing( 34 );
00417 
00418     new QLabel ( "Arguments:", argumentsgroup );
00419 
00420     le_arguments = new QLineEdit( argumentsgroup );
00421     le_arguments->setText( configData->getRioMMBArguments() );
00422 
00423     riommclient_layout_browser->addMultiCellWidget( argumentsgroup,
00424                                                     2, 2, 0, 1 );
00425 
00426 
00427 
00428     QHBox * binarygroup = new QHBox ( tab_browser, "binary" );
00429     binarygroup->setSpacing( 62 );
00430 
00431     new QLabel ( "Binary:", binarygroup );
00432 
00433     le_binary = new QLineEdit( binarygroup );
00434     le_binary->setText( configData->getRioMMBBinary() );
00435 
00436     riommclient_layout_browser->addMultiCellWidget( binarygroup, 3, 3, 0, 1 );
00437 
00438                         // Tgif Layout
00439 
00440     QHBox * tversiongroup = new QHBox ( tab_tgif, "tversion" );
00441     tversiongroup->setSpacing( 28 );
00442 
00443     new QLabel ( "Tgif version:", tversiongroup );
00444 
00445     le_tversion = new QLineEdit( tversiongroup );
00446     le_tversion->setText( configData->getRioMMTVersion() );
00447     le_tversion->setReadOnly( true );
00448 
00449     riommclient_layout_tgif->addMultiCellWidget( tversiongroup, 0, 0, 0, 1 );
00450 
00451 
00452 
00453     QHBox * targumentsgroup = new QHBox ( tab_tgif, "targuments" );
00454     targumentsgroup->setSpacing( 34 );
00455 
00456     new QLabel ( "Arguments:", targumentsgroup );
00457 
00458     le_targuments = new QLineEdit( targumentsgroup );
00459     le_targuments->setText( configData->getRioMMTArguments() );
00460     le_targuments->setCursorPosition ( 0 );
00461     
00462     riommclient_layout_tgif->addMultiCellWidget( targumentsgroup,
00463                                                     1, 1, 0, 1 );
00464 
00465 
00466 
00467     QHBox * tbinarygroup = new QHBox ( tab_tgif, "tbinary" );
00468     tbinarygroup->setSpacing( 62 );
00469 
00470     new QLabel ( "Binary:", tbinarygroup );
00471 
00472     le_tbinary = new QLineEdit( tbinarygroup );
00473     le_tbinary->setText( configData->getRioMMTBinary() );
00474 
00475     riommclient_layout_tgif->addMultiCellWidget( tbinarygroup, 2, 2, 0, 1 );
00476 
00477     // Insert tab
00478     tab_options->addTab( frm_riommclient, tr( "RioMMClient" ) );
00479 }

void ConfigureWindow::initRioshFrame ( void   )  [private]

Definition at line 484 of file ConfigureWindow.cpp.

00485 {
00486     frm_riosh = new QFrame( this, "frm_riosh" );
00487     riosh_layout = new QGridLayout( frm_riosh, 9, 1, 10, 10 );
00488 
00489     // Groupbox "Text Editor Options"
00490     gb_text_editor = new QGroupBox( 2, Qt::Vertical, "Text Editor Options", 
00491                                     frm_riosh, "gb_text_editor" );
00492 
00493     riosh_layout->addMultiCellWidget( gb_text_editor, 0, 0, 0, 0,
00494                                        Qt::AlignTop);
00495 
00496     QHBox * editorgroup = new QHBox ( gb_text_editor, "editor" );
00497     editorgroup->setSpacing( 14 );
00498 
00499     new QLabel ( "Text Editor:", editorgroup );
00500 
00501     riosh_editor = new QLineEdit( editorgroup );
00502     riosh_editor->setText( configData->getEditor() );
00503 
00504 
00505     QHBox * argumentgroup = new QHBox ( gb_text_editor, "arguments" );
00506     argumentgroup->setSpacing( 16 );
00507 
00508     new QLabel ( "Arguments:", argumentgroup );
00509 
00510     riosh_editor_arguments = new QLineEdit( argumentgroup );
00511     riosh_editor_arguments->setText( configData->getEditorArguments() );
00512 
00513     // Groupbox "Monitor Connection Options"
00514     gb_monitor_connection = new QGroupBox( 2, Qt::Vertical, 
00515                                            "Monitor Connection Options", 
00516                                            frm_riosh, "gb_monitor_connection" );
00517 
00518     riosh_layout->addMultiCellWidget( gb_monitor_connection, 1, 1, 0, 0,
00519                                        Qt::AlignTop);
00520 
00521     QHBox * monitorgroup = new QHBox ( gb_monitor_connection, "monitor" );
00522     editorgroup->setSpacing( 14 );
00523 
00524     new QLabel ( "Default Update Interval (miliseconds): ", monitorgroup );
00525 
00526     riosh_monitor_connection = new QLineEdit( monitorgroup );
00527     riosh_monitor_connection->setText( QString::number( 
00528                                        configData->getUpIntMonConnection() ) );
00529 
00530     // Checkboxes
00531     cb_show_hidden_files = new QCheckBox( tr( "Show Hidden Files" ),
00532                                   frm_riosh, "cb_show_hidden_files" );
00533     cb_show_hidden_files->setChecked( configData->getRioshShowHiddenFiles() );
00534 
00535     riosh_layout->addMultiCellWidget( cb_show_hidden_files, 2, 2, 0, 0 );
00536 
00537     cb_show_md5sum_local = new QCheckBox( tr( "Show Md5sum to Local Files" ),
00538                                   frm_riosh, "cb_show_md5sum_local" );
00539     cb_show_md5sum_local->setChecked( configData->getRioshShowMd5sumLocal() );
00540 
00541     riosh_layout->addMultiCellWidget( cb_show_md5sum_local, 3, 3, 0, 0 );
00542 
00543 
00544     cb_show_md5sum_RIO = new QCheckBox( tr( "Show Md5sum to RIO Files" ),
00545                                   frm_riosh, "cb_show_md5sum_RIO" );
00546     cb_show_md5sum_RIO->setChecked( configData->getRioshShowMd5sumRIO() );
00547 
00548     riosh_layout->addMultiCellWidget( cb_show_md5sum_RIO, 4, 4, 0, 0 );
00549 
00550     QHBox * arrangementgroup = new QHBox ( frm_riosh, "arrangement" );
00551     arrangementgroup->setSpacing( 15 );
00552 
00553     new QLabel ( "Default Window Arrangement:", arrangementgroup );
00554 
00555     riosh_window_arrangement = new QComboBox( false, arrangementgroup );
00556     riosh_window_arrangement->insertItem( "Tile Horizontally", 0 );
00557     riosh_window_arrangement->insertItem( "Tile Vertically", 1 );
00558     riosh_window_arrangement->insertItem( "Cascade", 2 );
00559     riosh_window_arrangement->setCurrentItem(
00560                                     configData->getRioshWindowArrangement() );
00561 
00562     riosh_layout->addMultiCellWidget( arrangementgroup, 5, 5, 0, 0,
00563                                       Qt::AlignTop);
00564 
00565     // Insert tab
00566     tab_options->addTab( frm_riosh, tr( "Riosh" ) );
00567 
00568     frm_riosh->setHidden( true );
00569 }

bool ConfigureWindow::isFormOk ( void   )  [private]

Definition at line 649 of file ConfigureWindow.cpp.

00650 {
00651     //currently no form fields to check
00652     return true;
00653 }

void ConfigureWindow::submit ( void   )  [virtual, slot]

Definition at line 574 of file ConfigureWindow.cpp.

00575 {
00576    /* if( isFormOk() ) */
00577         apply();
00578 }


Field Documentation

QPushButton* ConfigureWindow::but_cancel [private]

Definition at line 60 of file ConfigureWindow.h.

QPushButton* ConfigureWindow::but_ok [private]

Definition at line 61 of file ConfigureWindow.h.

QPushButton* ConfigureWindow::but_tool_path[NUM_TOOLS] [private]

Definition at line 86 of file ConfigureWindow.h.

QComboBox* ConfigureWindow::cb_language [private]

Definition at line 75 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::cb_makelog [private]

Definition at line 105 of file ConfigureWindow.h.

Definition at line 147 of file ConfigureWindow.h.

Definition at line 148 of file ConfigureWindow.h.

Definition at line 149 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::cb_sync [private]

Definition at line 92 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::cb_use_cache [private]

Definition at line 93 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::cb_use_plugins [private]

Definition at line 94 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::ch_view_rates [private]

Definition at line 79 of file ConfigureWindow.h.

QCheckBox* ConfigureWindow::ch_view_streams [private]

Definition at line 78 of file ConfigureWindow.h.

Definition at line 52 of file ConfigureWindow.h.

QFrame* ConfigureWindow::frm_actual [private]

Definition at line 56 of file ConfigureWindow.h.

QFrame* ConfigureWindow::frm_general [private]

Definition at line 71 of file ConfigureWindow.h.

Definition at line 65 of file ConfigureWindow.h.

QFrame* ConfigureWindow::frm_riosh [private]

Definition at line 140 of file ConfigureWindow.h.

Definition at line 153 of file ConfigureWindow.h.

QGroupBox* ConfigureWindow::gb_text_editor [private]

Definition at line 152 of file ConfigureWindow.h.

QGroupBox* ConfigureWindow::gb_tool_path [private]

Definition at line 81 of file ConfigureWindow.h.

QGroupBox* ConfigureWindow::gb_view_options [private]

Definition at line 77 of file ConfigureWindow.h.

QHGroupBox* ConfigureWindow::group_button [private]

Definition at line 59 of file ConfigureWindow.h.

QLabel* ConfigureWindow::lab_language [private]

Definition at line 74 of file ConfigureWindow.h.

QLabel* ConfigureWindow::lab_tool_path[NUM_TOOLS] [private]

Definition at line 84 of file ConfigureWindow.h.

QVBoxLayout* ConfigureWindow::layout [private]

Definition at line 55 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_arguments [private]

Definition at line 125 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_binary [private]

Definition at line 126 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_browser [private]

Definition at line 124 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_bversion [private]

Definition at line 127 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_connectpi [private]

Definition at line 97 of file ConfigureWindow.h.

Definition at line 109 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_mplayer_binary [private]

Definition at line 110 of file ConfigureWindow.h.

Definition at line 111 of file ConfigureWindow.h.

Definition at line 112 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_pihost [private]

Definition at line 98 of file ConfigureWindow.h.

Definition at line 114 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_rioxine_binary [private]

Definition at line 115 of file ConfigureWindow.h.

Definition at line 116 of file ConfigureWindow.h.

Definition at line 117 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_targuments [private]

Definition at line 134 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_tbinary [private]

Definition at line 135 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_tversion [private]

Definition at line 136 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_user [private]

Definition at line 95 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_version [private]

Definition at line 96 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_vplayer [private]

Definition at line 106 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::le_vversion [private]

Definition at line 107 of file ConfigureWindow.h.

QWidget* ConfigureWindow::parent [private]

Definition at line 53 of file ConfigureWindow.h.

QGridLayout* ConfigureWindow::riommclient_layout [private]

Definition at line 68 of file ConfigureWindow.h.

Definition at line 122 of file ConfigureWindow.h.

Definition at line 72 of file ConfigureWindow.h.

Definition at line 132 of file ConfigureWindow.h.

Definition at line 103 of file ConfigureWindow.h.

QTabWidget* ConfigureWindow::riommclient_tabs [private]

Definition at line 69 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::riosh_editor [private]

Definition at line 144 of file ConfigureWindow.h.

Definition at line 146 of file ConfigureWindow.h.

QGridLayout* ConfigureWindow::riosh_layout [private]

Definition at line 141 of file ConfigureWindow.h.

Definition at line 145 of file ConfigureWindow.h.

QComboBox* ConfigureWindow::riosh_servers [private]

Definition at line 142 of file ConfigureWindow.h.

QComboBox* ConfigureWindow::riosh_users [private]

Definition at line 143 of file ConfigureWindow.h.

Definition at line 151 of file ConfigureWindow.h.

QSpinBox* ConfigureWindow::sb_buffers [private]

Definition at line 87 of file ConfigureWindow.h.

QSpinBox* ConfigureWindow::sb_main_window [private]

Definition at line 88 of file ConfigureWindow.h.

QSpinBox* ConfigureWindow::sb_plugin_port [private]

Definition at line 89 of file ConfigureWindow.h.

QSpinBox* ConfigureWindow::sb_tgif_window [private]

Definition at line 90 of file ConfigureWindow.h.

QSpinBox* ConfigureWindow::sb_video_window [private]

Definition at line 91 of file ConfigureWindow.h.

QFrame* ConfigureWindow::tab_browser [private]

Definition at line 121 of file ConfigureWindow.h.

QFrame* ConfigureWindow::tab_general [private]

Definition at line 66 of file ConfigureWindow.h.

QTabWidget* ConfigureWindow::tab_options [private]

Definition at line 57 of file ConfigureWindow.h.

QFrame* ConfigureWindow::tab_tgif [private]

Definition at line 131 of file ConfigureWindow.h.

QFrame* ConfigureWindow::tab_video [private]

Definition at line 102 of file ConfigureWindow.h.

QLineEdit* ConfigureWindow::tf_tool_path[NUM_TOOLS] [private]

Definition at line 85 of file ConfigureWindow.h.

Definition at line 83 of file ConfigureWindow.h.

QGridLayout* ConfigureWindow::tool_path_layout [private]

Definition at line 82 of file ConfigureWindow.h.


The documentation for this class was generated from the following files:
Generated on Wed Jul 4 16:03:32 2012 for RIO by  doxygen 1.6.3