00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QBIMPORTER_H
00011 #define QBIMPORTER_H
00012
00013 #include <Qt3Support/Q3Frame>
00014 #include <Qt3Support/Q3GroupBox>
00015 #include <Qt3Support/Q3Header>
00016 #include <Qt3Support/Q3ListView>
00017 #include <Qt3Support/Q3MimeSourceFactory>
00018 #include <Qt3Support/Q3Wizard>
00019 #include <QtCore/QVariant>
00020 #include <QtGui/QAction>
00021 #include <QtGui/QApplication>
00022 #include <QtGui/QButtonGroup>
00023 #include <QtGui/QGridLayout>
00024 #include <QtGui/QHBoxLayout>
00025 #include <QtGui/QHeaderView>
00026 #include <QtGui/QLabel>
00027 #include <QtGui/QLineEdit>
00028 #include <QtGui/QPushButton>
00029 #include <QtGui/QSpacerItem>
00030 #include <QtGui/QVBoxLayout>
00031 #include <QtGui/QWidget>
00032
00033 QT_BEGIN_NAMESPACE
00034
00035 class Ui_QBImporterUi
00036 {
00037 public:
00038 QWidget *startPage;
00039 QHBoxLayout *hboxLayout;
00040 QLabel *textLabel2;
00041 QWidget *selectSourcePage;
00042 QVBoxLayout *vboxLayout;
00043 QLabel *textLabel3;
00044 Q3GroupBox *groupBox4;
00045 QHBoxLayout *hboxLayout1;
00046 QLabel *textLabel1_3;
00047 QLineEdit *selectFileEdit;
00048 QPushButton *selectFileButton;
00049 QWidget *selectImporterPage;
00050 QVBoxLayout *vboxLayout1;
00051 QLabel *textLabel4_9;
00052 QSpacerItem *spacer4;
00053 Q3GroupBox *groupBox5;
00054 QGridLayout *gridLayout;
00055 QHBoxLayout *hboxLayout2;
00056 QLabel *checkFileTypeLabel;
00057 QLabel *checkFileNameLabel;
00058 QLabel *textLabel4_2;
00059 QLabel *textLabel2_2;
00060 QWidget *selectProfilePage;
00061 QVBoxLayout *vboxLayout2;
00062 QLabel *textLabel4;
00063 Q3GroupBox *groupBox2;
00064 QHBoxLayout *hboxLayout3;
00065 Q3ListView *profileList;
00066 QVBoxLayout *vboxLayout3;
00067 QPushButton *profileDetailsButton;
00068 QPushButton *profileEditButton;
00069 QSpacerItem *spacer3;
00070 QWidget *workingPage;
00071 QVBoxLayout *vboxLayout4;
00072 QLabel *textLabel1;
00073 QWidget *importPage;
00074 QVBoxLayout *vboxLayout5;
00075 QLabel *readLabel;
00076 QWidget *finishPage;
00077 QVBoxLayout *vboxLayout6;
00078 QLabel *finishedLabel;
00079
00080 void setupUi(Q3Wizard *QBImporterUi)
00081 {
00082 if (QBImporterUi->objectName().isEmpty())
00083 QBImporterUi->setObjectName(QString::fromUtf8("QBImporterUi"));
00084 QBImporterUi->resize(600, 313);
00085 startPage = new QWidget(QBImporterUi);
00086 startPage->setObjectName(QString::fromUtf8("startPage"));
00087 hboxLayout = new QHBoxLayout(startPage);
00088 hboxLayout->setSpacing(6);
00089 hboxLayout->setContentsMargins(11, 11, 11, 11);
00090 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00091 textLabel2 = new QLabel(startPage);
00092 textLabel2->setObjectName(QString::fromUtf8("textLabel2"));
00093 QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
00094 sizePolicy.setHorizontalStretch(0);
00095 sizePolicy.setVerticalStretch(0);
00096 sizePolicy.setHeightForWidth(textLabel2->sizePolicy().hasHeightForWidth());
00097 textLabel2->setSizePolicy(sizePolicy);
00098 textLabel2->setWordWrap(false);
00099
00100 hboxLayout->addWidget(textLabel2);
00101
00102 QBImporterUi->addPage(startPage, QString::fromUtf8("Start"));
00103 selectSourcePage = new QWidget(QBImporterUi);
00104 selectSourcePage->setObjectName(QString::fromUtf8("selectSourcePage"));
00105 selectSourcePage->setGeometry(QRect(0, 0, 100, 30));
00106 vboxLayout = new QVBoxLayout(selectSourcePage);
00107 vboxLayout->setSpacing(6);
00108 vboxLayout->setContentsMargins(11, 11, 11, 11);
00109 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00110 textLabel3 = new QLabel(selectSourcePage);
00111 textLabel3->setObjectName(QString::fromUtf8("textLabel3"));
00112 sizePolicy.setHeightForWidth(textLabel3->sizePolicy().hasHeightForWidth());
00113 textLabel3->setSizePolicy(sizePolicy);
00114 textLabel3->setWordWrap(false);
00115
00116 vboxLayout->addWidget(textLabel3);
00117
00118 groupBox4 = new Q3GroupBox(selectSourcePage);
00119 groupBox4->setObjectName(QString::fromUtf8("groupBox4"));
00120 groupBox4->setColumnLayout(0, Qt::Vertical);
00121 groupBox4->layout()->setSpacing(6);
00122 groupBox4->layout()->setContentsMargins(11, 11, 11, 11);
00123 hboxLayout1 = new QHBoxLayout();
00124 QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(groupBox4->layout());
00125 if (boxlayout)
00126 boxlayout->addLayout(hboxLayout1);
00127 hboxLayout1->setAlignment(Qt::AlignTop);
00128 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00129 textLabel1_3 = new QLabel(groupBox4);
00130 textLabel1_3->setObjectName(QString::fromUtf8("textLabel1_3"));
00131 textLabel1_3->setWordWrap(false);
00132
00133 hboxLayout1->addWidget(textLabel1_3);
00134
00135 selectFileEdit = new QLineEdit(groupBox4);
00136 selectFileEdit->setObjectName(QString::fromUtf8("selectFileEdit"));
00137
00138 hboxLayout1->addWidget(selectFileEdit);
00139
00140 selectFileButton = new QPushButton(groupBox4);
00141 selectFileButton->setObjectName(QString::fromUtf8("selectFileButton"));
00142
00143 hboxLayout1->addWidget(selectFileButton);
00144
00145
00146 vboxLayout->addWidget(groupBox4);
00147
00148 QBImporterUi->addPage(selectSourcePage, QString::fromUtf8("Select Source"));
00149 selectImporterPage = new QWidget(QBImporterUi);
00150 selectImporterPage->setObjectName(QString::fromUtf8("selectImporterPage"));
00151 selectImporterPage->setGeometry(QRect(0, 0, 100, 30));
00152 vboxLayout1 = new QVBoxLayout(selectImporterPage);
00153 vboxLayout1->setSpacing(6);
00154 vboxLayout1->setContentsMargins(11, 11, 11, 11);
00155 vboxLayout1->setObjectName(QString::fromUtf8("vboxLayout1"));
00156 textLabel4_9 = new QLabel(selectImporterPage);
00157 textLabel4_9->setObjectName(QString::fromUtf8("textLabel4_9"));
00158 QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Minimum);
00159 sizePolicy1.setHorizontalStretch(0);
00160 sizePolicy1.setVerticalStretch(0);
00161 sizePolicy1.setHeightForWidth(textLabel4_9->sizePolicy().hasHeightForWidth());
00162 textLabel4_9->setSizePolicy(sizePolicy1);
00163 textLabel4_9->setWordWrap(false);
00164
00165 vboxLayout1->addWidget(textLabel4_9);
00166
00167 spacer4 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
00168
00169 vboxLayout1->addItem(spacer4);
00170
00171 groupBox5 = new Q3GroupBox(selectImporterPage);
00172 groupBox5->setObjectName(QString::fromUtf8("groupBox5"));
00173 groupBox5->setColumnLayout(0, Qt::Vertical);
00174 groupBox5->layout()->setSpacing(6);
00175 groupBox5->layout()->setContentsMargins(11, 11, 11, 11);
00176 gridLayout = new QGridLayout();
00177 QBoxLayout *boxlayout1 = qobject_cast<QBoxLayout *>(groupBox5->layout());
00178 if (boxlayout1)
00179 boxlayout1->addLayout(gridLayout);
00180 gridLayout->setAlignment(Qt::AlignTop);
00181 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00182 hboxLayout2 = new QHBoxLayout();
00183 hboxLayout2->setSpacing(6);
00184 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00185 checkFileTypeLabel = new QLabel(groupBox5);
00186 checkFileTypeLabel->setObjectName(QString::fromUtf8("checkFileTypeLabel"));
00187 sizePolicy1.setHeightForWidth(checkFileTypeLabel->sizePolicy().hasHeightForWidth());
00188 checkFileTypeLabel->setSizePolicy(sizePolicy1);
00189 checkFileTypeLabel->setFrameShape(QFrame::Panel);
00190 checkFileTypeLabel->setFrameShadow(QFrame::Sunken);
00191 checkFileTypeLabel->setWordWrap(false);
00192
00193 hboxLayout2->addWidget(checkFileTypeLabel);
00194
00195
00196 gridLayout->addLayout(hboxLayout2, 1, 1, 1, 1);
00197
00198 checkFileNameLabel = new QLabel(groupBox5);
00199 checkFileNameLabel->setObjectName(QString::fromUtf8("checkFileNameLabel"));
00200 sizePolicy1.setHeightForWidth(checkFileNameLabel->sizePolicy().hasHeightForWidth());
00201 checkFileNameLabel->setSizePolicy(sizePolicy1);
00202 checkFileNameLabel->setFrameShape(QFrame::Panel);
00203 checkFileNameLabel->setFrameShadow(QFrame::Sunken);
00204 checkFileNameLabel->setWordWrap(false);
00205
00206 gridLayout->addWidget(checkFileNameLabel, 0, 1, 1, 1);
00207
00208 textLabel4_2 = new QLabel(groupBox5);
00209 textLabel4_2->setObjectName(QString::fromUtf8("textLabel4_2"));
00210 QSizePolicy sizePolicy2(QSizePolicy::Preferred, QSizePolicy::Minimum);
00211 sizePolicy2.setHorizontalStretch(0);
00212 sizePolicy2.setVerticalStretch(0);
00213 sizePolicy2.setHeightForWidth(textLabel4_2->sizePolicy().hasHeightForWidth());
00214 textLabel4_2->setSizePolicy(sizePolicy2);
00215 textLabel4_2->setWordWrap(false);
00216
00217 gridLayout->addWidget(textLabel4_2, 1, 0, 1, 1);
00218
00219 textLabel2_2 = new QLabel(groupBox5);
00220 textLabel2_2->setObjectName(QString::fromUtf8("textLabel2_2"));
00221 sizePolicy2.setHeightForWidth(textLabel2_2->sizePolicy().hasHeightForWidth());
00222 textLabel2_2->setSizePolicy(sizePolicy2);
00223 textLabel2_2->setWordWrap(false);
00224
00225 gridLayout->addWidget(textLabel2_2, 0, 0, 1, 1);
00226
00227
00228 vboxLayout1->addWidget(groupBox5);
00229
00230 QBImporterUi->addPage(selectImporterPage, QString::fromUtf8("Check File Type"));
00231 selectProfilePage = new QWidget(QBImporterUi);
00232 selectProfilePage->setObjectName(QString::fromUtf8("selectProfilePage"));
00233 selectProfilePage->setGeometry(QRect(0, 0, 100, 30));
00234 vboxLayout2 = new QVBoxLayout(selectProfilePage);
00235 vboxLayout2->setSpacing(6);
00236 vboxLayout2->setContentsMargins(11, 11, 11, 11);
00237 vboxLayout2->setObjectName(QString::fromUtf8("vboxLayout2"));
00238 textLabel4 = new QLabel(selectProfilePage);
00239 textLabel4->setObjectName(QString::fromUtf8("textLabel4"));
00240 textLabel4->setWordWrap(false);
00241
00242 vboxLayout2->addWidget(textLabel4);
00243
00244 groupBox2 = new Q3GroupBox(selectProfilePage);
00245 groupBox2->setObjectName(QString::fromUtf8("groupBox2"));
00246 QSizePolicy sizePolicy3(QSizePolicy::Preferred, QSizePolicy::Preferred);
00247 sizePolicy3.setHorizontalStretch(0);
00248 sizePolicy3.setVerticalStretch(0);
00249 sizePolicy3.setHeightForWidth(groupBox2->sizePolicy().hasHeightForWidth());
00250 groupBox2->setSizePolicy(sizePolicy3);
00251 groupBox2->setColumnLayout(0, Qt::Vertical);
00252 groupBox2->layout()->setSpacing(6);
00253 groupBox2->layout()->setContentsMargins(11, 11, 11, 11);
00254 hboxLayout3 = new QHBoxLayout();
00255 QBoxLayout *boxlayout2 = qobject_cast<QBoxLayout *>(groupBox2->layout());
00256 if (boxlayout2)
00257 boxlayout2->addLayout(hboxLayout3);
00258 hboxLayout3->setAlignment(Qt::AlignTop);
00259 hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
00260 profileList = new Q3ListView(groupBox2);
00261 profileList->addColumn(QApplication::translate("QBImporterUi", "Name", 0, QApplication::UnicodeUTF8));
00262 profileList->header()->setClickEnabled(true, profileList->header()->count() - 1);
00263 profileList->header()->setResizeEnabled(true, profileList->header()->count() - 1);
00264 profileList->addColumn(QApplication::translate("QBImporterUi", "Description", 0, QApplication::UnicodeUTF8));
00265 profileList->header()->setClickEnabled(true, profileList->header()->count() - 1);
00266 profileList->header()->setResizeEnabled(true, profileList->header()->count() - 1);
00267 profileList->setObjectName(QString::fromUtf8("profileList"));
00268 profileList->setSelectionMode(Q3ListView::Single);
00269 profileList->setAllColumnsShowFocus(true);
00270
00271 hboxLayout3->addWidget(profileList);
00272
00273 vboxLayout3 = new QVBoxLayout();
00274 vboxLayout3->setSpacing(6);
00275 vboxLayout3->setObjectName(QString::fromUtf8("vboxLayout3"));
00276 profileDetailsButton = new QPushButton(groupBox2);
00277 profileDetailsButton->setObjectName(QString::fromUtf8("profileDetailsButton"));
00278 profileDetailsButton->setEnabled(false);
00279
00280 vboxLayout3->addWidget(profileDetailsButton);
00281
00282 profileEditButton = new QPushButton(groupBox2);
00283 profileEditButton->setObjectName(QString::fromUtf8("profileEditButton"));
00284 profileEditButton->setEnabled(false);
00285
00286 vboxLayout3->addWidget(profileEditButton);
00287
00288 spacer3 = new QSpacerItem(41, 220, QSizePolicy::Minimum, QSizePolicy::Expanding);
00289
00290 vboxLayout3->addItem(spacer3);
00291
00292
00293 hboxLayout3->addLayout(vboxLayout3);
00294
00295
00296 vboxLayout2->addWidget(groupBox2);
00297
00298 QBImporterUi->addPage(selectProfilePage, QString::fromUtf8("Select Profile"));
00299 workingPage = new QWidget(QBImporterUi);
00300 workingPage->setObjectName(QString::fromUtf8("workingPage"));
00301 workingPage->setGeometry(QRect(0, 0, 100, 30));
00302 vboxLayout4 = new QVBoxLayout(workingPage);
00303 vboxLayout4->setSpacing(6);
00304 vboxLayout4->setContentsMargins(11, 11, 11, 11);
00305 vboxLayout4->setObjectName(QString::fromUtf8("vboxLayout4"));
00306 textLabel1 = new QLabel(workingPage);
00307 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00308 textLabel1->setWordWrap(false);
00309
00310 vboxLayout4->addWidget(textLabel1);
00311
00312 QBImporterUi->addPage(workingPage, QString::fromUtf8("Read File"));
00313 importPage = new QWidget(QBImporterUi);
00314 importPage->setObjectName(QString::fromUtf8("importPage"));
00315 importPage->setGeometry(QRect(0, 0, 100, 30));
00316 vboxLayout5 = new QVBoxLayout(importPage);
00317 vboxLayout5->setSpacing(6);
00318 vboxLayout5->setContentsMargins(11, 11, 11, 11);
00319 vboxLayout5->setObjectName(QString::fromUtf8("vboxLayout5"));
00320 readLabel = new QLabel(importPage);
00321 readLabel->setObjectName(QString::fromUtf8("readLabel"));
00322 readLabel->setWordWrap(false);
00323
00324 vboxLayout5->addWidget(readLabel);
00325
00326 QBImporterUi->addPage(importPage, QString::fromUtf8("Import"));
00327 finishPage = new QWidget(QBImporterUi);
00328 finishPage->setObjectName(QString::fromUtf8("finishPage"));
00329 finishPage->setGeometry(QRect(0, 0, 100, 30));
00330 vboxLayout6 = new QVBoxLayout(finishPage);
00331 vboxLayout6->setSpacing(6);
00332 vboxLayout6->setContentsMargins(11, 11, 11, 11);
00333 vboxLayout6->setObjectName(QString::fromUtf8("vboxLayout6"));
00334 finishedLabel = new QLabel(finishPage);
00335 finishedLabel->setObjectName(QString::fromUtf8("finishedLabel"));
00336 finishedLabel->setWordWrap(false);
00337
00338 vboxLayout6->addWidget(finishedLabel);
00339
00340 QBImporterUi->addPage(finishPage, QString::fromUtf8("Finished"));
00341
00342 retranslateUi(QBImporterUi);
00343
00344 QMetaObject::connectSlotsByName(QBImporterUi);
00345 }
00346
00347 void retranslateUi(Q3Wizard *QBImporterUi)
00348 {
00349 QBImporterUi->setWindowTitle(QApplication::translate("QBImporterUi", "Import Wizard", 0, QApplication::UnicodeUTF8));
00350 textLabel2->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00351 "<p>\n"
00352 "This wizard lets you import financial data files and/or directories into\n"
00353 "your database.\n"
00354 "</p>\n"
00355 "<p>\n"
00356 "The following pages will allow you to:\n"
00357 "<ul>\n"
00358 " <li>select a file to import</li>\n"
00359 " <li>select a predefined profile for the import</li>\n"
00360 " <li>actually import the data</li>\n"
00361 "</p>\n"
00362 "<p>\n"
00363 "This wizard will try to determine the type of the selected\n"
00364 "file automatically.\n"
00365 "</p>\n"
00366 "</qt>", 0, QApplication::UnicodeUTF8));
00367 QBImporterUi->setTitle(startPage, QApplication::translate("QBImporterUi", "Start", 0, QApplication::UnicodeUTF8));
00368 textLabel3->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00369 "<p>\n"
00370 "Please select the file you want to import.\n"
00371 "</p>\n"
00372 "<p>\n"
00373 "The next page will check for the type of the selected file.\n"
00374 "</p>\n"
00375 "</qt>", 0, QApplication::UnicodeUTF8));
00376 groupBox4->setTitle(QString());
00377 textLabel1_3->setText(QApplication::translate("QBImporterUi", "File", 0, QApplication::UnicodeUTF8));
00378 selectFileButton->setText(QApplication::translate("QBImporterUi", "...", 0, QApplication::UnicodeUTF8));
00379 QBImporterUi->setTitle(selectSourcePage, QApplication::translate("QBImporterUi", "Select Source", 0, QApplication::UnicodeUTF8));
00380 textLabel4_9->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00381 "The file type has been determined. The next page will allow you to\n"
00382 "choose an importer profile.\n"
00383 "</qt>", 0, QApplication::UnicodeUTF8));
00384 groupBox5->setTitle(QString());
00385 checkFileTypeLabel->setText(QApplication::translate("QBImporterUi", "--type--", 0, QApplication::UnicodeUTF8));
00386 checkFileNameLabel->setText(QApplication::translate("QBImporterUi", "--filename --", 0, QApplication::UnicodeUTF8));
00387 textLabel4_2->setText(QApplication::translate("QBImporterUi", "File Type", 0, QApplication::UnicodeUTF8));
00388 textLabel2_2->setText(QApplication::translate("QBImporterUi", "File", 0, QApplication::UnicodeUTF8));
00389 QBImporterUi->setTitle(selectImporterPage, QApplication::translate("QBImporterUi", "Check File Type", 0, QApplication::UnicodeUTF8));
00390 textLabel4->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00391 "Please select the profile from the list below.\n"
00392 "</qt>", 0, QApplication::UnicodeUTF8));
00393 groupBox2->setTitle(QApplication::translate("QBImporterUi", "Profiles", 0, QApplication::UnicodeUTF8));
00394 profileList->header()->setLabel(0, QApplication::translate("QBImporterUi", "Name", 0, QApplication::UnicodeUTF8));
00395 profileList->header()->setLabel(1, QApplication::translate("QBImporterUi", "Description", 0, QApplication::UnicodeUTF8));
00396 profileDetailsButton->setText(QApplication::translate("QBImporterUi", "Details", 0, QApplication::UnicodeUTF8));
00397 profileEditButton->setText(QApplication::translate("QBImporterUi", "Edit", 0, QApplication::UnicodeUTF8));
00398 QBImporterUi->setTitle(selectProfilePage, QApplication::translate("QBImporterUi", "Select Profile", 0, QApplication::UnicodeUTF8));
00399 textLabel1->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00400 "<p>\n"
00401 "The file type has been determined and the profile is selected.\n"
00402 "</p>\n"
00403 "<p>\n"
00404 "Please click <i>next</i> to let the determined import module read the file.\n"
00405 "</p>\n"
00406 "</qt>", 0, QApplication::UnicodeUTF8));
00407 QBImporterUi->setTitle(workingPage, QApplication::translate("QBImporterUi", "Read File", 0, QApplication::UnicodeUTF8));
00408 readLabel->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00409 "<p>\n"
00410 "The file has been successfully read.\n"
00411 "</p>\n"
00412 "<p>\n"
00413 "The next page will allow your application to import the data read from this file.\n"
00414 "</p>\n"
00415 "</qt>", 0, QApplication::UnicodeUTF8));
00416 QBImporterUi->setTitle(importPage, QApplication::translate("QBImporterUi", "Import", 0, QApplication::UnicodeUTF8));
00417 finishedLabel->setText(QApplication::translate("QBImporterUi", "<qt>\n"
00418 "The file has been successfully imported into the application.\n"
00419 "</qt>", 0, QApplication::UnicodeUTF8));
00420 QBImporterUi->setTitle(finishPage, QApplication::translate("QBImporterUi", "Finished", 0, QApplication::UnicodeUTF8));
00421 }
00422
00423 };
00424
00425 namespace Ui {
00426 class QBImporterUi: public Ui_QBImporterUi {};
00427 }
00428
00429 QT_END_NAMESPACE
00430
00431 #endif // QBIMPORTER_H