00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QBSELECTFROMLIST_H
00011 #define QBSELECTFROMLIST_H
00012
00013 #include <Qt3Support/Q3Frame>
00014 #include <Qt3Support/Q3GroupBox>
00015 #include <Qt3Support/Q3Header>
00016 #include <Qt3Support/Q3ListView>
00017 #include <Qt3Support/Q3MimeSourceFactory>
00018 #include <QtCore/QVariant>
00019 #include <QtGui/QAction>
00020 #include <QtGui/QApplication>
00021 #include <QtGui/QButtonGroup>
00022 #include <QtGui/QDialog>
00023 #include <QtGui/QHBoxLayout>
00024 #include <QtGui/QHeaderView>
00025 #include <QtGui/QLabel>
00026 #include <QtGui/QPushButton>
00027 #include <QtGui/QSpacerItem>
00028 #include <QtGui/QVBoxLayout>
00029
00030 QT_BEGIN_NAMESPACE
00031
00032 class Ui_QBSelectFromListUi
00033 {
00034 public:
00035 QVBoxLayout *vboxLayout;
00036 QLabel *msgLabel;
00037 Q3GroupBox *choiceBox;
00038 QHBoxLayout *hboxLayout;
00039 Q3ListView *listView;
00040 QHBoxLayout *hboxLayout1;
00041 QSpacerItem *Horizontal_Spacing2;
00042 QPushButton *buttonOk;
00043 QPushButton *buttonCancel;
00044
00045 void setupUi(QDialog *QBSelectFromListUi)
00046 {
00047 if (QBSelectFromListUi->objectName().isEmpty())
00048 QBSelectFromListUi->setObjectName(QString::fromUtf8("QBSelectFromListUi"));
00049 QBSelectFromListUi->resize(669, 333);
00050 QBSelectFromListUi->setSizeGripEnabled(true);
00051 vboxLayout = new QVBoxLayout(QBSelectFromListUi);
00052 vboxLayout->setSpacing(6);
00053 vboxLayout->setContentsMargins(11, 11, 11, 11);
00054 vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
00055 msgLabel = new QLabel(QBSelectFromListUi);
00056 msgLabel->setObjectName(QString::fromUtf8("msgLabel"));
00057 msgLabel->setWordWrap(false);
00058
00059 vboxLayout->addWidget(msgLabel);
00060
00061 choiceBox = new Q3GroupBox(QBSelectFromListUi);
00062 choiceBox->setObjectName(QString::fromUtf8("choiceBox"));
00063 choiceBox->setColumnLayout(0, Qt::Vertical);
00064 choiceBox->layout()->setSpacing(6);
00065 choiceBox->layout()->setContentsMargins(11, 11, 11, 11);
00066 hboxLayout = new QHBoxLayout();
00067 QBoxLayout *boxlayout = qobject_cast<QBoxLayout *>(choiceBox->layout());
00068 if (boxlayout)
00069 boxlayout->addLayout(hboxLayout);
00070 hboxLayout->setAlignment(Qt::AlignTop);
00071 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00072 listView = new Q3ListView(choiceBox);
00073 listView->addColumn(QApplication::translate("QBSelectFromListUi", "Name", 0, QApplication::UnicodeUTF8));
00074 listView->header()->setClickEnabled(true, listView->header()->count() - 1);
00075 listView->header()->setResizeEnabled(true, listView->header()->count() - 1);
00076 listView->addColumn(QApplication::translate("QBSelectFromListUi", "Description", 0, QApplication::UnicodeUTF8));
00077 listView->header()->setClickEnabled(true, listView->header()->count() - 1);
00078 listView->header()->setResizeEnabled(true, listView->header()->count() - 1);
00079 listView->setObjectName(QString::fromUtf8("listView"));
00080
00081 hboxLayout->addWidget(listView);
00082
00083
00084 vboxLayout->addWidget(choiceBox);
00085
00086 hboxLayout1 = new QHBoxLayout();
00087 hboxLayout1->setSpacing(6);
00088 hboxLayout1->setContentsMargins(0, 0, 0, 0);
00089 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00090 Horizontal_Spacing2 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00091
00092 hboxLayout1->addItem(Horizontal_Spacing2);
00093
00094 buttonOk = new QPushButton(QBSelectFromListUi);
00095 buttonOk->setObjectName(QString::fromUtf8("buttonOk"));
00096 buttonOk->setAutoDefault(true);
00097 buttonOk->setDefault(true);
00098
00099 hboxLayout1->addWidget(buttonOk);
00100
00101 buttonCancel = new QPushButton(QBSelectFromListUi);
00102 buttonCancel->setObjectName(QString::fromUtf8("buttonCancel"));
00103 buttonCancel->setAutoDefault(true);
00104
00105 hboxLayout1->addWidget(buttonCancel);
00106
00107
00108 vboxLayout->addLayout(hboxLayout1);
00109
00110
00111 retranslateUi(QBSelectFromListUi);
00112 QObject::connect(buttonOk, SIGNAL(clicked()), QBSelectFromListUi, SLOT(accept()));
00113 QObject::connect(buttonCancel, SIGNAL(clicked()), QBSelectFromListUi, SLOT(reject()));
00114
00115 QMetaObject::connectSlotsByName(QBSelectFromListUi);
00116 }
00117
00118 void retranslateUi(QDialog *QBSelectFromListUi)
00119 {
00120 QBSelectFromListUi->setWindowTitle(QApplication::translate("QBSelectFromListUi", "Select Importer", 0, QApplication::UnicodeUTF8));
00121 msgLabel->setText(QApplication::translate("QBSelectFromListUi", "<qt>\n"
00122 "<p>\n"
00123 "The file type could not be determined automatically.\n"
00124 "</p>\n"
00125 "<p>\n"
00126 "However, the following importers might support the selected file. Please select the\n"
00127 "correct one.\n"
00128 "</p>\n"
00129 "</qt>", 0, QApplication::UnicodeUTF8));
00130 choiceBox->setTitle(QApplication::translate("QBSelectFromListUi", "Possible Importers", 0, QApplication::UnicodeUTF8));
00131 listView->header()->setLabel(0, QApplication::translate("QBSelectFromListUi", "Name", 0, QApplication::UnicodeUTF8));
00132 listView->header()->setLabel(1, QApplication::translate("QBSelectFromListUi", "Description", 0, QApplication::UnicodeUTF8));
00133 buttonOk->setText(QApplication::translate("QBSelectFromListUi", "&OK", 0, QApplication::UnicodeUTF8));
00134 buttonOk->setShortcut(QString());
00135 buttonCancel->setText(QApplication::translate("QBSelectFromListUi", "&Cancel", 0, QApplication::UnicodeUTF8));
00136 buttonCancel->setShortcut(QString());
00137 }
00138
00139 };
00140
00141 namespace Ui {
00142 class QBSelectFromListUi: public Ui_QBSelectFromListUi {};
00143 }
00144
00145 QT_END_NAMESPACE
00146
00147 #endif // QBSELECTFROMLIST_H