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