00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "settingsform.h"
00011
00012 #include <qvariant.h>
00013 #include <qtabwidget.h>
00014 #include <qwidget.h>
00015 #include <qbuttongroup.h>
00016 #include <qradiobutton.h>
00017 #include <qgroupbox.h>
00018 #include <qlabel.h>
00019 #include <qlineedit.h>
00020 #include <qcombobox.h>
00021 #include <qpushbutton.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 #include <qimage.h>
00026 #include <qpixmap.h>
00027
00028 #include "settingsform.ui.h"
00029
00030
00031
00032
00033
00034
00035
00036 SettingsForm::SettingsForm( QWidget* parent, const char* name, bool modal, WFlags fl )
00037 : QDialog( parent, name, modal, fl )
00038 {
00039 if ( !name )
00040 setName( "SettingsForm" );
00041 setMinimumSize( QSize( 275, 320 ) );
00042 setMaximumSize( QSize( 275, 320 ) );
00043
00044 tabWidget4 = new QTabWidget( this, "tabWidget4" );
00045 tabWidget4->setGeometry( QRect( 0, 0, 271, 270 ) );
00046
00047 tab = new QWidget( tabWidget4, "tab" );
00048
00049 graphOrientation = new QButtonGroup( tab, "graphOrientation" );
00050 graphOrientation->setGeometry( QRect( 10, 10, 250, 100 ) );
00051 graphOrientation->setProperty( "selectedId", -1 );
00052
00053 radioButton2 = new QRadioButton( graphOrientation, "radioButton2" );
00054 radioButton2->setGeometry( QRect( 70, 60, 160, 20 ) );
00055 graphOrientation->insert( radioButton2, 1 );
00056
00057 radioButton1 = new QRadioButton( graphOrientation, "radioButton1" );
00058 radioButton1->setGeometry( QRect( 70, 20, 160, 20 ) );
00059 graphOrientation->insert( radioButton1, 0 );
00060
00061 languageGroup = new QButtonGroup( tab, "languageGroup" );
00062 languageGroup->setGeometry( QRect( 10, 120, 251, 110 ) );
00063
00064 radioButton2_2 = new QRadioButton( languageGroup, "radioButton2_2" );
00065 radioButton2_2->setGeometry( QRect( 90, 70, 150, 20 ) );
00066 languageGroup->insert( radioButton2_2, 1 );
00067
00068 radioButton1_2 = new QRadioButton( languageGroup, "radioButton1_2" );
00069 radioButton1_2->setGeometry( QRect( 90, 30, 150, 20 ) );
00070 languageGroup->insert( radioButton1_2, 0 );
00071 tabWidget4->insertTab( tab, QString("") );
00072
00073 tab_2 = new QWidget( tabWidget4, "tab_2" );
00074
00075 CvsGroupBox = new QGroupBox( tab_2, "CvsGroupBox" );
00076 CvsGroupBox->setGeometry( QRect( 10, 10, 250, 130 ) );
00077
00078 loginLabel = new QLabel( CvsGroupBox, "loginLabel" );
00079 loginLabel->setGeometry( QRect( 10, 20, 32, 20 ) );
00080
00081 loginEdit = new QLineEdit( CvsGroupBox, "loginEdit" );
00082 loginEdit->setGeometry( QRect( 100, 20, 120, 20 ) );
00083 loginEdit->setFrameShape( QLineEdit::LineEditPanel );
00084 loginEdit->setFrameShadow( QLineEdit::Sunken );
00085
00086 passwordEdit = new QLineEdit( CvsGroupBox, "passwordEdit" );
00087 passwordEdit->setGeometry( QRect( 100, 50, 120, 20 ) );
00088 passwordEdit->setFrameShape( QLineEdit::LineEditPanel );
00089 passwordEdit->setFrameShadow( QLineEdit::Sunken );
00090 passwordEdit->setEchoMode( QLineEdit::Password );
00091
00092 passwordLabel = new QLabel( CvsGroupBox, "passwordLabel" );
00093 passwordLabel->setGeometry( QRect( 10, 50, 52, 20 ) );
00094
00095 textLabel1 = new QLabel( CvsGroupBox, "textLabel1" );
00096 textLabel1->setGeometry( QRect( 10, 80, 230, 20 ) );
00097
00098 adressEdit = new QLineEdit( CvsGroupBox, "adressEdit" );
00099 adressEdit->setGeometry( QRect( 10, 100, 221, 21 ) );
00100
00101 branchGroup = new QButtonGroup( tab_2, "branchGroup" );
00102 branchGroup->setGeometry( QRect( 10, 140, 251, 91 ) );
00103 branchGroup->setChecked( FALSE );
00104 branchGroup->setProperty( "selectedId", -1 );
00105
00106 defaultRadio = new QRadioButton( branchGroup, "defaultRadio" );
00107 defaultRadio->setGeometry( QRect( 20, 20, 82, 20 ) );
00108 branchGroup->insert( defaultRadio, 0 );
00109
00110 otherRadio = new QRadioButton( branchGroup, "otherRadio" );
00111 otherRadio->setGeometry( QRect( 120, 20, 82, 20 ) );
00112 branchGroup->insert( otherRadio, 1 );
00113
00114 branchCombo = new QComboBox( FALSE, branchGroup, "branchCombo" );
00115 branchCombo->setEnabled( FALSE );
00116 branchCombo->setGeometry( QRect( 20, 46, 210, 20 ) );
00117 tabWidget4->insertTab( tab_2, QString("") );
00118
00119 okButton = new QPushButton( this, "okButton" );
00120 okButton->setGeometry( QRect( 20, 280, 82, 26 ) );
00121
00122 cancelButton = new QPushButton( this, "cancelButton" );
00123 cancelButton->setGeometry( QRect( 170, 280, 80, 26 ) );
00124 languageChange();
00125 resize( QSize(275, 320).expandedTo(minimumSizeHint()) );
00126 clearWState( WState_Polished );
00127
00128
00129 connect( okButton, SIGNAL( clicked() ), this, SLOT( okButton_clicked() ) );
00130 connect( cancelButton, SIGNAL( clicked() ), this, SLOT( cancelButton_clicked() ) );
00131 }
00132
00133
00134
00135
00136 SettingsForm::~SettingsForm()
00137 {
00138
00139 }
00140
00141
00142
00143
00144
00145 void SettingsForm::languageChange()
00146 {
00147 setCaption( tr( "Settings ..." ) );
00148 graphOrientation->setTitle( tr( "Graph Orientation" ) );
00149 radioButton2->setText( tr( "Left to Right" ) );
00150 radioButton1->setText( tr( "Top to Bottom" ) );
00151 languageGroup->setTitle( tr( "Language" ) );
00152 radioButton2_2->setText( trUtf8( "\x50\x6f\x72\x74\x75\x67\x75\xc3\xaa\x73" ) );
00153 radioButton1_2->setText( tr( "English" ) );
00154 tabWidget4->changeTab( tab, tr( "Basic Configuration" ) );
00155 CvsGroupBox->setTitle( tr( "Version Control Acess" ) );
00156 loginLabel->setText( tr( "Login :" ) );
00157 passwordLabel->setText( tr( "Password :" ) );
00158 textLabel1->setText( tr( "<p align=\"center\">Repository Adress :</p>" ) );
00159 branchGroup->setTitle( tr( "Branch" ) );
00160 defaultRadio->setText( tr( "Default" ) );
00161 otherRadio->setText( tr( "Other" ) );
00162 tabWidget4->changeTab( tab_2, tr( "Remote Acess Configuration" ) );
00163 okButton->setText( tr( "Ok" ) );
00164 cancelButton->setText( tr( "Cancel" ) );
00165 }
00166