00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_SEARCHTAB_H
00011 #define UI_SEARCHTAB_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QFrame>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QHBoxLayout>
00020 #include <QtGui/QLabel>
00021 #include <QtGui/QLineEdit>
00022 #include <QtGui/QPushButton>
00023 #include <QtGui/QSpacerItem>
00024 #include <QtGui/QTableView>
00025 #include <QtGui/QWidget>
00026
00027 class Ui_SearchTab
00028 {
00029 public:
00030 QGridLayout *gridLayout;
00031 QTableView *resultsTableView;
00032 QLineEdit *leQuery;
00033 QPushButton *pbSearch;
00034 QFrame *frame;
00035 QHBoxLayout *hboxLayout;
00036 QHBoxLayout *hboxLayout1;
00037 QLabel *label;
00038 QLabel *lblDocFrequency;
00039 QSpacerItem *spacerItem;
00040 QHBoxLayout *hboxLayout2;
00041 QLabel *label_3;
00042 QLabel *lblCorpusFrequency;
00043 QSpacerItem *spacerItem1;
00044 QHBoxLayout *hboxLayout3;
00045 QLabel *label_5;
00046 QLabel *lblRank;
00047
00048 void setupUi(QWidget *SearchTab)
00049 {
00050 SearchTab->setObjectName(QString::fromUtf8("SearchTab"));
00051 gridLayout = new QGridLayout(SearchTab);
00052 gridLayout->setSpacing(6);
00053 gridLayout->setMargin(9);
00054 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00055 resultsTableView = new QTableView(SearchTab);
00056 resultsTableView->setObjectName(QString::fromUtf8("resultsTableView"));
00057 resultsTableView->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
00058 resultsTableView->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
00059 resultsTableView->setSortingEnabled(true);
00060
00061 gridLayout->addWidget(resultsTableView, 1, 0, 1, 2);
00062
00063 leQuery = new QLineEdit(SearchTab);
00064 leQuery->setObjectName(QString::fromUtf8("leQuery"));
00065 leQuery->setEnabled(false);
00066
00067 gridLayout->addWidget(leQuery, 0, 0, 1, 1);
00068
00069 pbSearch = new QPushButton(SearchTab);
00070 pbSearch->setObjectName(QString::fromUtf8("pbSearch"));
00071 pbSearch->setEnabled(false);
00072
00073 gridLayout->addWidget(pbSearch, 0, 1, 1, 1);
00074
00075 frame = new QFrame(SearchTab);
00076 frame->setObjectName(QString::fromUtf8("frame"));
00077 frame->setFrameShape(QFrame::StyledPanel);
00078 frame->setFrameShadow(QFrame::Raised);
00079 hboxLayout = new QHBoxLayout(frame);
00080 hboxLayout->setSpacing(6);
00081 hboxLayout->setMargin(9);
00082 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00083 hboxLayout1 = new QHBoxLayout();
00084 hboxLayout1->setSpacing(6);
00085 hboxLayout1->setMargin(0);
00086 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00087 label = new QLabel(frame);
00088 label->setObjectName(QString::fromUtf8("label"));
00089 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00090 sizePolicy.setHorizontalStretch(0);
00091 sizePolicy.setVerticalStretch(0);
00092 sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
00093 label->setSizePolicy(sizePolicy);
00094
00095 hboxLayout1->addWidget(label);
00096
00097 lblDocFrequency = new QLabel(frame);
00098 lblDocFrequency->setObjectName(QString::fromUtf8("lblDocFrequency"));
00099
00100 hboxLayout1->addWidget(lblDocFrequency);
00101
00102
00103 hboxLayout->addLayout(hboxLayout1);
00104
00105 spacerItem = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00106
00107 hboxLayout->addItem(spacerItem);
00108
00109 hboxLayout2 = new QHBoxLayout();
00110 hboxLayout2->setSpacing(6);
00111 hboxLayout2->setMargin(0);
00112 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00113 label_3 = new QLabel(frame);
00114 label_3->setObjectName(QString::fromUtf8("label_3"));
00115 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00116 sizePolicy1.setHorizontalStretch(0);
00117 sizePolicy1.setVerticalStretch(0);
00118 sizePolicy1.setHeightForWidth(label_3->sizePolicy().hasHeightForWidth());
00119 label_3->setSizePolicy(sizePolicy1);
00120
00121 hboxLayout2->addWidget(label_3);
00122
00123 lblCorpusFrequency = new QLabel(frame);
00124 lblCorpusFrequency->setObjectName(QString::fromUtf8("lblCorpusFrequency"));
00125
00126 hboxLayout2->addWidget(lblCorpusFrequency);
00127
00128
00129 hboxLayout->addLayout(hboxLayout2);
00130
00131 spacerItem1 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00132
00133 hboxLayout->addItem(spacerItem1);
00134
00135 hboxLayout3 = new QHBoxLayout();
00136 hboxLayout3->setSpacing(6);
00137 hboxLayout3->setMargin(0);
00138 hboxLayout3->setObjectName(QString::fromUtf8("hboxLayout3"));
00139 label_5 = new QLabel(frame);
00140 label_5->setObjectName(QString::fromUtf8("label_5"));
00141 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(5));
00142 sizePolicy2.setHorizontalStretch(0);
00143 sizePolicy2.setVerticalStretch(0);
00144 sizePolicy2.setHeightForWidth(label_5->sizePolicy().hasHeightForWidth());
00145 label_5->setSizePolicy(sizePolicy2);
00146
00147 hboxLayout3->addWidget(label_5);
00148
00149 lblRank = new QLabel(frame);
00150 lblRank->setObjectName(QString::fromUtf8("lblRank"));
00151 lblRank->setLayoutDirection(Qt::LeftToRight);
00152
00153 hboxLayout3->addWidget(lblRank);
00154
00155
00156 hboxLayout->addLayout(hboxLayout3);
00157
00158
00159 gridLayout->addWidget(frame, 2, 0, 1, 2);
00160
00161 QWidget::setTabOrder(leQuery, pbSearch);
00162 QWidget::setTabOrder(pbSearch, resultsTableView);
00163
00164 retranslateUi(SearchTab);
00165
00166 QSize size(873, 616);
00167 size = size.expandedTo(SearchTab->minimumSizeHint());
00168 SearchTab->resize(size);
00169
00170
00171 QMetaObject::connectSlotsByName(SearchTab);
00172 }
00173
00174 void retranslateUi(QWidget *SearchTab)
00175 {
00176 SearchTab->setWindowTitle(QApplication::translate("SearchTab", "Form", 0, QApplication::UnicodeUTF8));
00177 leQuery->setText(QApplication::translate("SearchTab", "No corpus loaded yet!", 0, QApplication::UnicodeUTF8));
00178 pbSearch->setText(QApplication::translate("SearchTab", "Search", 0, QApplication::UnicodeUTF8));
00179 label->setText(QApplication::translate("SearchTab", "Document Frequency:", 0, QApplication::UnicodeUTF8));
00180 lblDocFrequency->setText(QApplication::translate("SearchTab", "0", 0, QApplication::UnicodeUTF8));
00181 label_3->setText(QApplication::translate("SearchTab", "Total Frequency:", 0, QApplication::UnicodeUTF8));
00182 lblCorpusFrequency->setText(QApplication::translate("SearchTab", "0", 0, QApplication::UnicodeUTF8));
00183 label_5->setText(QApplication::translate("SearchTab", "Rank:", 0, QApplication::UnicodeUTF8));
00184 lblRank->setText(QApplication::translate("SearchTab", "0", 0, QApplication::UnicodeUTF8));
00185 Q_UNUSED(SearchTab);
00186 }
00187
00188 };
00189
00190 namespace Ui {
00191 class SearchTab: public Ui_SearchTab {};
00192 }
00193
00194 #endif // UI_SEARCHTAB_H