author | John Kern <johnk@symbian.org> |
Mon, 16 Aug 2010 15:57:18 -0700 | |
changeset 33 | f6cf541961ad |
parent 17 | cad8819de653 |
permissions | -rwxr-xr-x |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
1 |
/******************************************************************************** |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
2 |
** Form generated from reading UI file 'mainwindow.ui' |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
3 |
** |
17
cad8819de653
adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
16
diff
changeset
|
4 |
** Created: Wed Apr 21 13:32:36 2010 |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
5 |
** by: Qt User Interface Compiler version 4.6.2 |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
6 |
** |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
7 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
8 |
********************************************************************************/ |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
9 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
10 |
#ifndef UI_MAINWINDOW_H |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
11 |
#define UI_MAINWINDOW_H |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
12 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
13 |
#include <QtCore/QVariant> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
14 |
#include <QtGui/QAction> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
15 |
#include <QtGui/QApplication> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
16 |
#include <QtGui/QButtonGroup> |
12 | 17 |
#include <QtGui/QFrame> |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
18 |
#include <QtGui/QHeaderView> |
8 | 19 |
#include <QtGui/QLabel> |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
20 |
#include <QtGui/QMainWindow> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
21 |
#include <QtGui/QMenuBar> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
22 |
#include <QtGui/QStatusBar> |
8 | 23 |
#include <QtGui/QTableWidget> |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
24 |
#include <QtGui/QToolBar> |
8 | 25 |
#include <QtGui/QVBoxLayout> |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
26 |
#include <QtGui/QWidget> |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
27 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
28 |
QT_BEGIN_NAMESPACE |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
29 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
30 |
class Ui_MainWindow |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
31 |
{ |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
32 |
public: |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
33 |
QWidget *centralWidget; |
12 | 34 |
QWidget *layoutWidget; |
8 | 35 |
QVBoxLayout *verticalLayout; |
12 | 36 |
QLabel *header; |
37 |
QFrame *line; |
|
38 |
QLabel *amountServing; |
|
8 | 39 |
QTableWidget *tableWidget; |
12 | 40 |
QLabel *usda; |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
41 |
QMenuBar *menuBar; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
42 |
QToolBar *mainToolBar; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
43 |
QStatusBar *statusBar; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
44 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
45 |
void setupUi(QMainWindow *MainWindow) |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
46 |
{ |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
47 |
if (MainWindow->objectName().isEmpty()) |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
48 |
MainWindow->setObjectName(QString::fromUtf8("MainWindow")); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
49 |
MainWindow->resize(361, 640); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
50 |
centralWidget = new QWidget(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
51 |
centralWidget->setObjectName(QString::fromUtf8("centralWidget")); |
12 | 52 |
layoutWidget = new QWidget(centralWidget); |
53 |
layoutWidget->setObjectName(QString::fromUtf8("layoutWidget")); |
|
16
e26c25b72a12
fix the table layout looks presentable
John Kern <johnk@symbian.org>
parents:
15
diff
changeset
|
54 |
layoutWidget->setGeometry(QRect(0, 10, 331, 401)); |
12 | 55 |
verticalLayout = new QVBoxLayout(layoutWidget); |
8 | 56 |
verticalLayout->setSpacing(6); |
57 |
verticalLayout->setContentsMargins(11, 11, 11, 11); |
|
58 |
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout")); |
|
59 |
verticalLayout->setContentsMargins(0, 0, 0, 0); |
|
12 | 60 |
header = new QLabel(layoutWidget); |
61 |
header->setObjectName(QString::fromUtf8("header")); |
|
8 | 62 |
QFont font; |
63 |
font.setPointSize(14); |
|
12 | 64 |
header->setFont(font); |
65 |
||
66 |
verticalLayout->addWidget(header); |
|
67 |
||
68 |
line = new QFrame(layoutWidget); |
|
69 |
line->setObjectName(QString::fromUtf8("line")); |
|
70 |
line->setFrameShape(QFrame::HLine); |
|
71 |
line->setFrameShadow(QFrame::Sunken); |
|
8 | 72 |
|
12 | 73 |
verticalLayout->addWidget(line); |
8 | 74 |
|
12 | 75 |
amountServing = new QLabel(layoutWidget); |
76 |
amountServing->setObjectName(QString::fromUtf8("amountServing")); |
|
77 |
amountServing->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
|
78 |
||
79 |
verticalLayout->addWidget(amountServing); |
|
80 |
||
81 |
tableWidget = new QTableWidget(layoutWidget); |
|
15 | 82 |
if (tableWidget->columnCount() < 2) |
83 |
tableWidget->setColumnCount(2); |
|
84 |
if (tableWidget->rowCount() < 6) |
|
85 |
tableWidget->setRowCount(6); |
|
86 |
QTableWidgetItem *__qtablewidgetitem = new QTableWidgetItem(); |
|
87 |
tableWidget->setItem(0, 0, __qtablewidgetitem); |
|
88 |
QTableWidgetItem *__qtablewidgetitem1 = new QTableWidgetItem(); |
|
89 |
tableWidget->setItem(1, 0, __qtablewidgetitem1); |
|
90 |
QTableWidgetItem *__qtablewidgetitem2 = new QTableWidgetItem(); |
|
91 |
tableWidget->setItem(2, 0, __qtablewidgetitem2); |
|
92 |
QTableWidgetItem *__qtablewidgetitem3 = new QTableWidgetItem(); |
|
93 |
tableWidget->setItem(3, 0, __qtablewidgetitem3); |
|
94 |
QTableWidgetItem *__qtablewidgetitem4 = new QTableWidgetItem(); |
|
95 |
tableWidget->setItem(4, 0, __qtablewidgetitem4); |
|
96 |
QTableWidgetItem *__qtablewidgetitem5 = new QTableWidgetItem(); |
|
97 |
tableWidget->setItem(5, 0, __qtablewidgetitem5); |
|
8 | 98 |
tableWidget->setObjectName(QString::fromUtf8("tableWidget")); |
15 | 99 |
tableWidget->setAutoScroll(false); |
100 |
tableWidget->setEditTriggers(QAbstractItemView::NoEditTriggers); |
|
101 |
tableWidget->setRowCount(6); |
|
102 |
tableWidget->setColumnCount(2); |
|
103 |
tableWidget->horizontalHeader()->setVisible(false); |
|
104 |
tableWidget->verticalHeader()->setVisible(false); |
|
8 | 105 |
|
106 |
verticalLayout->addWidget(tableWidget); |
|
107 |
||
12 | 108 |
usda = new QLabel(layoutWidget); |
109 |
usda->setObjectName(QString::fromUtf8("usda")); |
|
8 | 110 |
|
12 | 111 |
verticalLayout->addWidget(usda); |
8 | 112 |
|
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
113 |
MainWindow->setCentralWidget(centralWidget); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
114 |
menuBar = new QMenuBar(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
115 |
menuBar->setObjectName(QString::fromUtf8("menuBar")); |
16
e26c25b72a12
fix the table layout looks presentable
John Kern <johnk@symbian.org>
parents:
15
diff
changeset
|
116 |
menuBar->setGeometry(QRect(0, 0, 361, 20)); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
117 |
MainWindow->setMenuBar(menuBar); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
118 |
mainToolBar = new QToolBar(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
119 |
mainToolBar->setObjectName(QString::fromUtf8("mainToolBar")); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
120 |
MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
121 |
statusBar = new QStatusBar(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
122 |
statusBar->setObjectName(QString::fromUtf8("statusBar")); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
123 |
MainWindow->setStatusBar(statusBar); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
124 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
125 |
retranslateUi(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
126 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
127 |
QMetaObject::connectSlotsByName(MainWindow); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
128 |
} // setupUi |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
129 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
130 |
void retranslateUi(QMainWindow *MainWindow) |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
131 |
{ |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
132 |
MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", 0, QApplication::UnicodeUTF8)); |
16
e26c25b72a12
fix the table layout looks presentable
John Kern <johnk@symbian.org>
parents:
15
diff
changeset
|
133 |
header->setText(QApplication::translate("MainWindow", "Nutrition info", 0, QApplication::UnicodeUTF8)); |
12 | 134 |
amountServing->setText(QApplication::translate("MainWindow", " Amount per serving", 0, QApplication::UnicodeUTF8)); |
15 | 135 |
|
136 |
const bool __sortingEnabled = tableWidget->isSortingEnabled(); |
|
137 |
tableWidget->setSortingEnabled(false); |
|
138 |
QTableWidgetItem *___qtablewidgetitem = tableWidget->item(0, 0); |
|
139 |
___qtablewidgetitem->setText(QApplication::translate("MainWindow", "Calories", 0, QApplication::UnicodeUTF8)); |
|
140 |
QTableWidgetItem *___qtablewidgetitem1 = tableWidget->item(1, 0); |
|
141 |
___qtablewidgetitem1->setText(QApplication::translate("MainWindow", "Total Fat", 0, QApplication::UnicodeUTF8)); |
|
142 |
QTableWidgetItem *___qtablewidgetitem2 = tableWidget->item(2, 0); |
|
143 |
___qtablewidgetitem2->setText(QApplication::translate("MainWindow", "Total Protein", 0, QApplication::UnicodeUTF8)); |
|
144 |
QTableWidgetItem *___qtablewidgetitem3 = tableWidget->item(3, 0); |
|
145 |
___qtablewidgetitem3->setText(QApplication::translate("MainWindow", "Omega-3", 0, QApplication::UnicodeUTF8)); |
|
146 |
QTableWidgetItem *___qtablewidgetitem4 = tableWidget->item(4, 0); |
|
147 |
___qtablewidgetitem4->setText(QApplication::translate("MainWindow", "Cholesterol", 0, QApplication::UnicodeUTF8)); |
|
148 |
QTableWidgetItem *___qtablewidgetitem5 = tableWidget->item(5, 0); |
|
149 |
___qtablewidgetitem5->setText(QApplication::translate("MainWindow", "Sodium", 0, QApplication::UnicodeUTF8)); |
|
150 |
tableWidget->setSortingEnabled(__sortingEnabled); |
|
151 |
||
12 | 152 |
usda->setText(QApplication::translate("MainWindow", "Source: USDA", 0, QApplication::UnicodeUTF8)); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
153 |
} // retranslateUi |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
154 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
155 |
}; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
156 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
157 |
namespace Ui { |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
158 |
class MainWindow: public Ui_MainWindow {}; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
159 |
} // namespace Ui |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
160 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
161 |
QT_END_NAMESPACE |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
162 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
163 |
#endif // UI_MAINWINDOW_H |