00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_CONFIGURE_H
00011 #define UI_CONFIGURE_H
00012
00013 #include <Qt3Support/Q3MimeSourceFactory>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QCheckBox>
00019 #include <QtGui/QDialog>
00020 #include <QtGui/QGridLayout>
00021 #include <QtGui/QGroupBox>
00022 #include <QtGui/QLabel>
00023 #include <QtGui/QLineEdit>
00024 #include <QtGui/QPushButton>
00025 #include <QtGui/QSpacerItem>
00026 #include <QtGui/QSpinBox>
00027
00028 class Ui_configure
00029 {
00030 public:
00031 QGridLayout *gridLayout;
00032 QGroupBox *groupBox_3;
00033 QGridLayout *gridLayout1;
00034 QLabel *textLabel1_4;
00035 QSpinBox *limitLogBox;
00036 QLabel *textLabel1_5;
00037 QCheckBox *checkIcon;
00038 QCheckBox *checkNotification;
00039 QCheckBox *checkLogActivity;
00040 QSpacerItem *spacerItem;
00041 QSpacerItem *spacerItem1;
00042 QGroupBox *groupBox_2;
00043 QGridLayout *gridLayout2;
00044 QSpacerItem *spacerItem2;
00045 QLabel *textLabel1_2;
00046 QSpinBox *spinInterval;
00047 QCheckBox *checkViewHiddenShares;
00048 QGroupBox *groupBox;
00049 QGridLayout *gridLayout3;
00050 QLabel *textLabel1_3_2;
00051 QCheckBox *checkAutoconnect;
00052 QLabel *textLabel1_3;
00053 QLineEdit *EditUsername;
00054 QLineEdit *EditHost;
00055 QSpacerItem *spacerItem3;
00056 QSpacerItem *spacerItem4;
00057 QPushButton *okButton;
00058 QPushButton *cancelButton;
00059
00060 void setupUi(QDialog *configure)
00061 {
00062 if (configure->objectName().isEmpty())
00063 configure->setObjectName(QString::fromUtf8("configure"));
00064 configure->resize(483, 411);
00065 gridLayout = new QGridLayout(configure);
00066 gridLayout->setSpacing(6);
00067 gridLayout->setMargin(9);
00068 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00069 groupBox_3 = new QGroupBox(configure);
00070 groupBox_3->setObjectName(QString::fromUtf8("groupBox_3"));
00071 gridLayout1 = new QGridLayout(groupBox_3);
00072 gridLayout1->setSpacing(6);
00073 gridLayout1->setMargin(9);
00074 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00075 textLabel1_4 = new QLabel(groupBox_3);
00076 textLabel1_4->setObjectName(QString::fromUtf8("textLabel1_4"));
00077 textLabel1_4->setMinimumSize(QSize(151, 0));
00078 textLabel1_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
00079 textLabel1_4->setWordWrap(false);
00080
00081 gridLayout1->addWidget(textLabel1_4, 3, 0, 1, 1);
00082
00083 limitLogBox = new QSpinBox(groupBox_3);
00084 limitLogBox->setObjectName(QString::fromUtf8("limitLogBox"));
00085 limitLogBox->setMaximum(99);
00086 limitLogBox->setMinimum(1);
00087
00088 gridLayout1->addWidget(limitLogBox, 3, 1, 1, 1);
00089
00090 textLabel1_5 = new QLabel(groupBox_3);
00091 textLabel1_5->setObjectName(QString::fromUtf8("textLabel1_5"));
00092 textLabel1_5->setLayoutDirection(Qt::LeftToRight);
00093 textLabel1_5->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
00094 textLabel1_5->setWordWrap(false);
00095
00096 gridLayout1->addWidget(textLabel1_5, 3, 2, 1, 1);
00097
00098 checkIcon = new QCheckBox(groupBox_3);
00099 checkIcon->setObjectName(QString::fromUtf8("checkIcon"));
00100
00101 gridLayout1->addWidget(checkIcon, 0, 1, 1, 3);
00102
00103 checkNotification = new QCheckBox(groupBox_3);
00104 checkNotification->setObjectName(QString::fromUtf8("checkNotification"));
00105
00106 gridLayout1->addWidget(checkNotification, 1, 1, 1, 3);
00107
00108 checkLogActivity = new QCheckBox(groupBox_3);
00109 checkLogActivity->setObjectName(QString::fromUtf8("checkLogActivity"));
00110
00111 gridLayout1->addWidget(checkLogActivity, 2, 1, 1, 3);
00112
00113 spacerItem = new QSpacerItem(151, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00114
00115 gridLayout1->addItem(spacerItem, 3, 3, 1, 1);
00116
00117
00118 gridLayout->addWidget(groupBox_3, 2, 0, 1, 3);
00119
00120 spacerItem1 = new QSpacerItem(261, 27, QSizePolicy::Expanding, QSizePolicy::Minimum);
00121
00122 gridLayout->addItem(spacerItem1, 3, 1, 1, 1);
00123
00124 groupBox_2 = new QGroupBox(configure);
00125 groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
00126 gridLayout2 = new QGridLayout(groupBox_2);
00127 gridLayout2->setSpacing(6);
00128 gridLayout2->setMargin(9);
00129 gridLayout2->setObjectName(QString::fromUtf8("gridLayout2"));
00130 spacerItem2 = new QSpacerItem(231, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00131
00132 gridLayout2->addItem(spacerItem2, 1, 2, 1, 1);
00133
00134 textLabel1_2 = new QLabel(groupBox_2);
00135 textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
00136 textLabel1_2->setMinimumSize(QSize(151, 0));
00137 textLabel1_2->setWordWrap(false);
00138
00139 gridLayout2->addWidget(textLabel1_2, 1, 0, 1, 1);
00140
00141 spinInterval = new QSpinBox(groupBox_2);
00142 spinInterval->setObjectName(QString::fromUtf8("spinInterval"));
00143 spinInterval->setMaximum(300);
00144 spinInterval->setMinimum(3);
00145
00146 gridLayout2->addWidget(spinInterval, 1, 1, 1, 1);
00147
00148 checkViewHiddenShares = new QCheckBox(groupBox_2);
00149 checkViewHiddenShares->setObjectName(QString::fromUtf8("checkViewHiddenShares"));
00150
00151 gridLayout2->addWidget(checkViewHiddenShares, 0, 1, 1, 2);
00152
00153
00154 gridLayout->addWidget(groupBox_2, 1, 0, 1, 3);
00155
00156 groupBox = new QGroupBox(configure);
00157 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00158 gridLayout3 = new QGridLayout(groupBox);
00159 gridLayout3->setSpacing(6);
00160 gridLayout3->setMargin(9);
00161 gridLayout3->setObjectName(QString::fromUtf8("gridLayout3"));
00162 textLabel1_3_2 = new QLabel(groupBox);
00163 textLabel1_3_2->setObjectName(QString::fromUtf8("textLabel1_3_2"));
00164 textLabel1_3_2->setMinimumSize(QSize(151, 0));
00165 textLabel1_3_2->setWordWrap(false);
00166
00167 gridLayout3->addWidget(textLabel1_3_2, 1, 0, 1, 1);
00168
00169 checkAutoconnect = new QCheckBox(groupBox);
00170 checkAutoconnect->setObjectName(QString::fromUtf8("checkAutoconnect"));
00171
00172 gridLayout3->addWidget(checkAutoconnect, 2, 1, 1, 1);
00173
00174 textLabel1_3 = new QLabel(groupBox);
00175 textLabel1_3->setObjectName(QString::fromUtf8("textLabel1_3"));
00176 textLabel1_3->setWordWrap(false);
00177
00178 gridLayout3->addWidget(textLabel1_3, 0, 0, 1, 1);
00179
00180 EditUsername = new QLineEdit(groupBox);
00181 EditUsername->setObjectName(QString::fromUtf8("EditUsername"));
00182
00183 gridLayout3->addWidget(EditUsername, 1, 1, 1, 1);
00184
00185 EditHost = new QLineEdit(groupBox);
00186 EditHost->setObjectName(QString::fromUtf8("EditHost"));
00187
00188 gridLayout3->addWidget(EditHost, 0, 1, 1, 1);
00189
00190 spacerItem3 = new QSpacerItem(91, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00191
00192 gridLayout3->addItem(spacerItem3, 1, 2, 1, 1);
00193
00194 spacerItem4 = new QSpacerItem(91, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00195
00196 gridLayout3->addItem(spacerItem4, 0, 2, 1, 1);
00197
00198
00199 gridLayout->addWidget(groupBox, 0, 0, 1, 3);
00200
00201 okButton = new QPushButton(configure);
00202 okButton->setObjectName(QString::fromUtf8("okButton"));
00203
00204 gridLayout->addWidget(okButton, 3, 0, 1, 1);
00205
00206 cancelButton = new QPushButton(configure);
00207 cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
00208 cancelButton->setAutoDefault(false);
00209
00210 gridLayout->addWidget(cancelButton, 3, 2, 1, 1);
00211
00212 textLabel1_4->setBuddy(limitLogBox);
00213 textLabel1_2->setBuddy(spinInterval);
00214 textLabel1_3_2->setBuddy(EditUsername);
00215 textLabel1_3->setBuddy(EditHost);
00216 QWidget::setTabOrder(EditHost, EditUsername);
00217 QWidget::setTabOrder(EditUsername, checkAutoconnect);
00218 QWidget::setTabOrder(checkAutoconnect, checkViewHiddenShares);
00219 QWidget::setTabOrder(checkViewHiddenShares, spinInterval);
00220 QWidget::setTabOrder(spinInterval, checkIcon);
00221 QWidget::setTabOrder(checkIcon, checkNotification);
00222 QWidget::setTabOrder(checkNotification, checkLogActivity);
00223 QWidget::setTabOrder(checkLogActivity, limitLogBox);
00224 QWidget::setTabOrder(limitLogBox, okButton);
00225 QWidget::setTabOrder(okButton, cancelButton);
00226
00227 retranslateUi(configure);
00228 QObject::connect(cancelButton, SIGNAL(clicked()), configure, SLOT(close()));
00229 QObject::connect(okButton, SIGNAL(clicked()), configure, SLOT(SlotOk()));
00230 QObject::connect(okButton, SIGNAL(clicked()), configure, SLOT(accept()));
00231
00232 QMetaObject::connectSlotsByName(configure);
00233 }
00234
00235 void retranslateUi(QDialog *configure)
00236 {
00237 configure->setWindowTitle(QApplication::translate("configure", "Configure", 0, QApplication::UnicodeUTF8));
00238 groupBox_3->setTitle(QApplication::translate("configure", "Notifications and log", 0, QApplication::UnicodeUTF8));
00239 textLabel1_4->setText(QApplication::translate("configure", "Limit log:", 0, QApplication::UnicodeUTF8));
00240 textLabel1_5->setText(QApplication::translate("configure", "days", 0, QApplication::UnicodeUTF8));
00241 checkIcon->setToolTip(QString());
00242 checkIcon->setText(QApplication::translate("configure", "Iconize QtSmbstatus in system tray", 0, QApplication::UnicodeUTF8));
00243 checkNotification->setToolTip(QApplication::translate("configure", "Show activities in \"balloon messages\"", 0, QApplication::UnicodeUTF8));
00244 checkNotification->setText(QApplication::translate("configure", "Status notification messages", 0, QApplication::UnicodeUTF8));
00245 checkLogActivity->setToolTip(QString());
00246 checkLogActivity->setText(QApplication::translate("configure", "Log SMB/CIFS activities", 0, QApplication::UnicodeUTF8));
00247 groupBox_2->setTitle(QApplication::translate("configure", "Smbstatus", 0, QApplication::UnicodeUTF8));
00248 textLabel1_2->setText(QApplication::translate("configure", "<p align=\"right\">Interval:</p>", 0, QApplication::UnicodeUTF8));
00249 spinInterval->setToolTip(QApplication::translate("configure", "Interval between smbstatus requests in seconds, (interval > 2)", 0, QApplication::UnicodeUTF8));
00250 checkViewHiddenShares->setToolTip(QApplication::translate("configure", "Show hidden shares (share$)", 0, QApplication::UnicodeUTF8));
00251 checkViewHiddenShares->setText(QApplication::translate("configure", "Show hidden shares", 0, QApplication::UnicodeUTF8));
00252 groupBox->setTitle(QApplication::translate("configure", "Connection", 0, QApplication::UnicodeUTF8));
00253 textLabel1_3_2->setText(QApplication::translate("configure", "<p align=\"right\">Default Username:</p>", 0, QApplication::UnicodeUTF8));
00254 checkAutoconnect->setToolTip(QApplication::translate("configure", "Autoconnect on qtsmbstatus startup", 0, QApplication::UnicodeUTF8));
00255 checkAutoconnect->setText(QApplication::translate("configure", "Autoconnect", 0, QApplication::UnicodeUTF8));
00256 textLabel1_3->setText(QApplication::translate("configure", "<p align=\"right\">Default host address:</p>", 0, QApplication::UnicodeUTF8));
00257 EditUsername->setToolTip(QApplication::translate("configure", "Username (default : username = root)", 0, QApplication::UnicodeUTF8));
00258 EditUsername->setText(QString());
00259 EditHost->setToolTip(QApplication::translate("configure", "Host Address", 0, QApplication::UnicodeUTF8));
00260 EditHost->setText(QString());
00261 okButton->setText(QApplication::translate("configure", "OK", 0, QApplication::UnicodeUTF8));
00262 cancelButton->setText(QApplication::translate("configure", "Cancel", 0, QApplication::UnicodeUTF8));
00263 Q_UNUSED(configure);
00264 }
00265
00266 };
00267
00268 namespace Ui {
00269 class configure: public Ui_configure {};
00270 }
00271
00272 #endif // UI_CONFIGURE_H