korganizer Library API Documentation

kogroupwareprefspage.cpp

00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './kogroupwareprefspage.ui' 00005 ** 00006 ** Created: Fri Oct 1 15:12:29 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 00010 ****************************************************************************/ 00011 00012 #include "kogroupwareprefspage.h" 00013 00014 #include <qvariant.h> 00015 #include <qpushbutton.h> 00016 #include <qtabwidget.h> 00017 #include <qlabel.h> 00018 #include <qcheckbox.h> 00019 #include <qspinbox.h> 00020 #include <qbuttongroup.h> 00021 #include <qlineedit.h> 00022 #include <qframe.h> 00023 #include <qlayout.h> 00024 #include <qtooltip.h> 00025 #include <qwhatsthis.h> 00026 #include "./kogroupwareprefspage.ui.h" 00027 00028 /* 00029 * Constructs a KOGroupwarePrefsPage as a child of 'parent', with the 00030 * name 'name' and widget flags set to 'f'. 00031 */ 00032 KOGroupwarePrefsPage::KOGroupwarePrefsPage( QWidget* parent, const char* name, WFlags fl ) 00033 : QWidget( parent, name, fl ) 00034 { 00035 if ( !name ) 00036 setName( "KOGroupwarePrefsPage" ); 00037 KOGroupwarePrefsPageLayout = new QVBoxLayout( this, 11, 6, "KOGroupwarePrefsPageLayout"); 00038 00039 groupwareTab = new QTabWidget( this, "groupwareTab" ); 00040 groupwareTab->setEnabled( TRUE ); 00041 00042 tab = new QWidget( groupwareTab, "tab" ); 00043 tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout"); 00044 00045 TextLabel1 = new QLabel( tab, "TextLabel1" ); 00046 TextLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); 00047 tabLayout->addWidget( TextLabel1 ); 00048 00049 publishEnable = new QCheckBox( tab, "publishEnable" ); 00050 tabLayout->addWidget( publishEnable ); 00051 00052 layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 00053 00054 publishDelayLabel = new QLabel( tab, "publishDelayLabel" ); 00055 layout8->addWidget( publishDelayLabel ); 00056 00057 publishDelay = new QSpinBox( tab, "publishDelay" ); 00058 layout8->addWidget( publishDelay ); 00059 tabLayout->addLayout( layout8 ); 00060 00061 Layout16 = new QHBoxLayout( 0, 0, 6, "Layout16"); 00062 00063 TextLabel3 = new QLabel( tab, "TextLabel3" ); 00064 Layout16->addWidget( TextLabel3 ); 00065 00066 publishDays = new QSpinBox( tab, "publishDays" ); 00067 publishDays->setMaxValue( 366 ); 00068 publishDays->setMinValue( 1 ); 00069 publishDays->setValue( 60 ); 00070 Layout16->addWidget( publishDays ); 00071 00072 TextLabel4 = new QLabel( tab, "TextLabel4" ); 00073 Layout16->addWidget( TextLabel4 ); 00074 Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00075 Layout16->addItem( Spacer3 ); 00076 tabLayout->addLayout( Layout16 ); 00077 00078 ButtonGroup2 = new QButtonGroup( tab, "ButtonGroup2" ); 00079 ButtonGroup2->setColumnLayout(0, Qt::Vertical ); 00080 ButtonGroup2->layout()->setSpacing( 6 ); 00081 ButtonGroup2->layout()->setMargin( 11 ); 00082 ButtonGroup2Layout = new QGridLayout( ButtonGroup2->layout() ); 00083 ButtonGroup2Layout->setAlignment( Qt::AlignTop ); 00084 00085 publishUrl = new QLineEdit( ButtonGroup2, "publishUrl" ); 00086 publishUrl->setEnabled( TRUE ); 00087 00088 ButtonGroup2Layout->addWidget( publishUrl, 3, 1 ); 00089 00090 publishSavePassword = new QCheckBox( ButtonGroup2, "publishSavePassword" ); 00091 00092 ButtonGroup2Layout->addMultiCellWidget( publishSavePassword, 7, 7, 0, 1 ); 00093 00094 textLabel2 = new QLabel( ButtonGroup2, "textLabel2" ); 00095 00096 ButtonGroup2Layout->addWidget( textLabel2, 6, 0 ); 00097 00098 publishPassword = new QLineEdit( ButtonGroup2, "publishPassword" ); 00099 publishPassword->setEchoMode( QLineEdit::Password ); 00100 00101 ButtonGroup2Layout->addWidget( publishPassword, 6, 1 ); 00102 00103 publishUser = new QLineEdit( ButtonGroup2, "publishUser" ); 00104 publishUser->setMinimumSize( QSize( 120, 0 ) ); 00105 00106 ButtonGroup2Layout->addWidget( publishUser, 5, 1 ); 00107 00108 TextLabel6 = new QLabel( ButtonGroup2, "TextLabel6" ); 00109 00110 ButtonGroup2Layout->addWidget( TextLabel6, 5, 0 ); 00111 00112 frame5 = new QFrame( ButtonGroup2, "frame5" ); 00113 frame5->setFrameShape( QFrame::HLine ); 00114 frame5->setFrameShadow( QFrame::Sunken ); 00115 00116 ButtonGroup2Layout->addMultiCellWidget( frame5, 4, 4, 0, 1 ); 00117 00118 TextLabel7 = new QLabel( ButtonGroup2, "TextLabel7" ); 00119 00120 ButtonGroup2Layout->addWidget( TextLabel7, 3, 0 ); 00121 tabLayout->addWidget( ButtonGroup2 ); 00122 spacer3 = new QSpacerItem( 21, 50, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00123 tabLayout->addItem( spacer3 ); 00124 groupwareTab->insertTab( tab, QString("") ); 00125 00126 tab_2 = new QWidget( groupwareTab, "tab_2" ); 00127 tabLayout_2 = new QVBoxLayout( tab_2, 11, 6, "tabLayout_2"); 00128 00129 TextLabel2 = new QLabel( tab_2, "TextLabel2" ); 00130 TextLabel2->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) ); 00131 tabLayout_2->addWidget( TextLabel2 ); 00132 00133 retrieveEnable = new QCheckBox( tab_2, "retrieveEnable" ); 00134 tabLayout_2->addWidget( retrieveEnable ); 00135 00136 fullDomainRetrieval = new QCheckBox( tab_2, "fullDomainRetrieval" ); 00137 fullDomainRetrieval->setEnabled( TRUE ); 00138 tabLayout_2->addWidget( fullDomainRetrieval ); 00139 00140 ButtonGroup2_2 = new QButtonGroup( tab_2, "ButtonGroup2_2" ); 00141 ButtonGroup2_2->setColumnLayout(0, Qt::Vertical ); 00142 ButtonGroup2_2->layout()->setSpacing( 6 ); 00143 ButtonGroup2_2->layout()->setMargin( 11 ); 00144 ButtonGroup2_2Layout = new QVBoxLayout( ButtonGroup2_2->layout() ); 00145 ButtonGroup2_2Layout->setAlignment( Qt::AlignTop ); 00146 00147 Layout7_2 = new QHBoxLayout( 0, 0, 6, "Layout7_2"); 00148 00149 TextLabel7_2 = new QLabel( ButtonGroup2_2, "TextLabel7_2" ); 00150 Layout7_2->addWidget( TextLabel7_2 ); 00151 00152 retrieveUrl = new QLineEdit( ButtonGroup2_2, "retrieveUrl" ); 00153 retrieveUrl->setEnabled( TRUE ); 00154 Layout7_2->addWidget( retrieveUrl ); 00155 ButtonGroup2_2Layout->addLayout( Layout7_2 ); 00156 00157 frame7 = new QFrame( ButtonGroup2_2, "frame7" ); 00158 frame7->setFrameShape( QFrame::HLine ); 00159 frame7->setFrameShadow( QFrame::Sunken ); 00160 ButtonGroup2_2Layout->addWidget( frame7 ); 00161 00162 layout13 = new QGridLayout( 0, 1, 1, 0, 6, "layout13"); 00163 00164 retrieveUser = new QLineEdit( ButtonGroup2_2, "retrieveUser" ); 00165 00166 layout13->addWidget( retrieveUser, 0, 1 ); 00167 00168 textLabel3 = new QLabel( ButtonGroup2_2, "textLabel3" ); 00169 00170 layout13->addWidget( textLabel3, 0, 0 ); 00171 00172 textLabel4 = new QLabel( ButtonGroup2_2, "textLabel4" ); 00173 00174 layout13->addWidget( textLabel4, 1, 0 ); 00175 00176 retrievePassword = new QLineEdit( ButtonGroup2_2, "retrievePassword" ); 00177 retrievePassword->setEchoMode( QLineEdit::Password ); 00178 00179 layout13->addWidget( retrievePassword, 1, 1 ); 00180 ButtonGroup2_2Layout->addLayout( layout13 ); 00181 00182 retrieveSavePassword = new QCheckBox( ButtonGroup2_2, "retrieveSavePassword" ); 00183 retrieveSavePassword->setEnabled( TRUE ); 00184 ButtonGroup2_2Layout->addWidget( retrieveSavePassword ); 00185 tabLayout_2->addWidget( ButtonGroup2_2 ); 00186 spacer2 = new QSpacerItem( 20, 160, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00187 tabLayout_2->addItem( spacer2 ); 00188 groupwareTab->insertTab( tab_2, QString("") ); 00189 KOGroupwarePrefsPageLayout->addWidget( groupwareTab ); 00190 languageChange(); 00191 resize( QSize(496, 548).expandedTo(minimumSizeHint()) ); 00192 clearWState( WState_Polished ); 00193 00194 // signals and slots connections 00195 connect( publishDays, SIGNAL( valueChanged(int) ), this, SLOT( slotChanged() ) ); 00196 connect( publishUrl, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00197 connect( publishUser, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00198 connect( publishPassword, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00199 connect( publishSavePassword, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); 00200 connect( retrieveEnable, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); 00201 connect( retrieveUser, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00202 connect( retrievePassword, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00203 connect( retrieveSavePassword, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); 00204 connect( retrieveUrl, SIGNAL( textChanged(const QString&) ), this, SLOT( slotChanged() ) ); 00205 connect( publishDelay, SIGNAL( valueChanged(int) ), this, SLOT( slotChanged() ) ); 00206 connect( fullDomainRetrieval, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); 00207 connect( publishEnable, SIGNAL( toggled(bool) ), this, SLOT( slotChanged() ) ); 00208 00209 // buddies 00210 textLabel3->setBuddy( retrieveUser ); 00211 textLabel4->setBuddy( retrievePassword ); 00212 } 00213 00214 /* 00215 * Destroys the object and frees any allocated resources 00216 */ 00217 KOGroupwarePrefsPage::~KOGroupwarePrefsPage() 00218 { 00219 // no need to delete child widgets, Qt does it all for us 00220 } 00221 00222 /* 00223 * Sets the strings of the subwidgets using the current 00224 * language. 00225 */ 00226 void KOGroupwarePrefsPage::languageChange() 00227 { 00228 TextLabel1->setText( tr2i18n( "By publishing Free/Busy information, you allow others to take your calendar into account when inviting you for a meeting. Only the times you have already busy are published, not why they are busy." ) ); 00229 publishEnable->setText( tr2i18n( "Publish your free/&busy information automatically" ) ); 00230 publishDelayLabel->setText( tr2i18n( "Minimum time between uploads (in minutes):" ) ); 00231 TextLabel3->setText( tr2i18n( "Publish" ) ); 00232 TextLabel4->setText( tr2i18n( "days of free/busy information" ) ); 00233 ButtonGroup2->setTitle( tr2i18n( "Server Information" ) ); 00234 publishSavePassword->setText( tr2i18n( "Re&member password" ) ); 00235 textLabel2->setText( tr2i18n( "Password:" ) ); 00236 TextLabel6->setText( tr2i18n( "User name:" ) ); 00237 TextLabel7->setText( tr2i18n( "Server URL:" ) ); 00238 groupwareTab->changeTab( tab, tr2i18n( "&Publish" ) ); 00239 TextLabel2->setText( tr2i18n( "By retrieving Free/Busy information that others have published, you can take their calendar into account when inviting them to a meeting." ) ); 00240 retrieveEnable->setText( tr2i18n( "Retrieve other peoples' &free/busy information automatically" ) ); 00241 fullDomainRetrieval->setText( tr2i18n( "Use full email address for retrieval" ) ); 00242 QToolTip::add( fullDomainRetrieval, tr2i18n( "Set this to retrieve user@domain.ifb instead of user.ifb from the server" ) ); 00243 QWhatsThis::add( fullDomainRetrieval, tr2i18n( "With this setting, you can change the filename that will be fetched from the server. With this checked, it will download a free/busy file called user@domain.ifb, for example nn@kde.org.ifb. Without this set, it will download user.ifb, for example nn.ifb." ) ); 00244 ButtonGroup2_2->setTitle( tr2i18n( "Server Information" ) ); 00245 TextLabel7_2->setText( tr2i18n( "Server URL:" ) ); 00246 textLabel3->setText( tr2i18n( "Us&er name:" ) ); 00247 textLabel4->setText( tr2i18n( "Pass&word:" ) ); 00248 retrieveSavePassword->setText( tr2i18n( "Re&member password" ) ); 00249 groupwareTab->changeTab( tab_2, tr2i18n( "&Retrieve" ) ); 00250 } 00251 00252 #include "kogroupwareprefspage.moc"
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:31 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003