1 /********************************************************************************
2 ** Form generated from reading ui file 'cssedit.ui'
4 ** Created: Tue Dec 29 16:44:20 2009
5 ** by: Qt User Interface Compiler version 4.5.3
7 ** WARNING! All changes made in this file will be lost when recompiling ui file!
8 ********************************************************************************/
13 #include <QtCore/QVariant>
14 #include <QtGui/QAction>
15 #include <QtGui/QApplication>
16 #include <QtGui/QButtonGroup>
17 #include <QtGui/QComboBox>
18 #include <QtGui/QFontComboBox>
19 #include <QtGui/QGridLayout>
20 #include <QtGui/QHeaderView>
21 #include <QtGui/QLabel>
22 #include <QtGui/QSpinBox>
23 #include <QtGui/QTextEdit>
24 #include <QtGui/QToolButton>
25 #include <QtGui/QWidget>
32 QGridLayout *gridLayout;
37 QComboBox *m_elementCombo;
38 QToolButton *m_colorButton;
39 QToolButton *m_backgroundButton;
41 QFontComboBox *m_fontCombo;
43 QToolButton *m_boldButton;
44 QToolButton *m_italicButton;
45 QToolButton *m_underlineButton;
47 void setupUi(QWidget *QStarDict__CSSEdit)
49 if (QStarDict__CSSEdit->objectName().isEmpty())
50 QStarDict__CSSEdit->setObjectName(QString::fromUtf8("QStarDict__CSSEdit"));
51 QStarDict__CSSEdit->resize(435, 203);
52 gridLayout = new QGridLayout(QStarDict__CSSEdit);
53 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
54 m_preview = new QTextEdit(QStarDict__CSSEdit);
55 m_preview->setObjectName(QString::fromUtf8("m_preview"));
56 m_preview->setReadOnly(true);
58 gridLayout->addWidget(m_preview, 0, 0, 1, 6);
60 label_2 = new QLabel(QStarDict__CSSEdit);
61 label_2->setObjectName(QString::fromUtf8("label_2"));
63 gridLayout->addWidget(label_2, 1, 0, 1, 2);
65 label_3 = new QLabel(QStarDict__CSSEdit);
66 label_3->setObjectName(QString::fromUtf8("label_3"));
68 gridLayout->addWidget(label_3, 1, 2, 1, 1);
70 label_6 = new QLabel(QStarDict__CSSEdit);
71 label_6->setObjectName(QString::fromUtf8("label_6"));
73 gridLayout->addWidget(label_6, 1, 3, 1, 3);
75 m_elementCombo = new QComboBox(QStarDict__CSSEdit);
76 m_elementCombo->setObjectName(QString::fromUtf8("m_elementCombo"));
78 gridLayout->addWidget(m_elementCombo, 2, 0, 1, 2);
80 m_colorButton = new QToolButton(QStarDict__CSSEdit);
81 m_colorButton->setObjectName(QString::fromUtf8("m_colorButton"));
83 gridLayout->addWidget(m_colorButton, 2, 2, 1, 1);
85 m_backgroundButton = new QToolButton(QStarDict__CSSEdit);
86 m_backgroundButton->setObjectName(QString::fromUtf8("m_backgroundButton"));
88 gridLayout->addWidget(m_backgroundButton, 2, 3, 1, 3);
90 label_4 = new QLabel(QStarDict__CSSEdit);
91 label_4->setObjectName(QString::fromUtf8("label_4"));
93 gridLayout->addWidget(label_4, 3, 0, 1, 1);
95 m_fontCombo = new QFontComboBox(QStarDict__CSSEdit);
96 m_fontCombo->setObjectName(QString::fromUtf8("m_fontCombo"));
98 gridLayout->addWidget(m_fontCombo, 3, 1, 1, 1);
100 m_sizeSpin = new QSpinBox(QStarDict__CSSEdit);
101 m_sizeSpin->setObjectName(QString::fromUtf8("m_sizeSpin"));
102 m_sizeSpin->setMinimum(4);
103 m_sizeSpin->setMaximum(150);
104 m_sizeSpin->setSingleStep(2);
105 m_sizeSpin->setValue(10);
107 gridLayout->addWidget(m_sizeSpin, 3, 2, 1, 1);
109 m_boldButton = new QToolButton(QStarDict__CSSEdit);
110 m_boldButton->setObjectName(QString::fromUtf8("m_boldButton"));
114 m_boldButton->setFont(font);
115 m_boldButton->setCheckable(true);
117 gridLayout->addWidget(m_boldButton, 3, 3, 1, 1);
119 m_italicButton = new QToolButton(QStarDict__CSSEdit);
120 m_italicButton->setObjectName(QString::fromUtf8("m_italicButton"));
122 font1.setBold(false);
123 font1.setItalic(true);
125 m_italicButton->setFont(font1);
126 m_italicButton->setCheckable(true);
128 gridLayout->addWidget(m_italicButton, 3, 4, 1, 1);
130 m_underlineButton = new QToolButton(QStarDict__CSSEdit);
131 m_underlineButton->setObjectName(QString::fromUtf8("m_underlineButton"));
133 font2.setBold(false);
134 font2.setUnderline(true);
136 m_underlineButton->setFont(font2);
137 m_underlineButton->setCheckable(true);
139 gridLayout->addWidget(m_underlineButton, 3, 5, 1, 1);
141 QWidget::setTabOrder(m_elementCombo, m_colorButton);
142 QWidget::setTabOrder(m_colorButton, m_fontCombo);
143 QWidget::setTabOrder(m_fontCombo, m_sizeSpin);
144 QWidget::setTabOrder(m_sizeSpin, m_boldButton);
145 QWidget::setTabOrder(m_boldButton, m_italicButton);
146 QWidget::setTabOrder(m_italicButton, m_underlineButton);
148 retranslateUi(QStarDict__CSSEdit);
150 QMetaObject::connectSlotsByName(QStarDict__CSSEdit);
153 void retranslateUi(QWidget *QStarDict__CSSEdit)
155 label_2->setText(QApplication::translate("QStarDict::CSSEdit", "Element", 0, QApplication::UnicodeUTF8));
156 label_3->setText(QApplication::translate("QStarDict::CSSEdit", "Foreground", 0, QApplication::UnicodeUTF8));
157 label_6->setText(QApplication::translate("QStarDict::CSSEdit", "Background", 0, QApplication::UnicodeUTF8));
158 #ifndef QT_NO_TOOLTIP
159 m_elementCombo->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Select element", 0, QApplication::UnicodeUTF8));
160 #endif // QT_NO_TOOLTIP
161 #ifndef QT_NO_STATUSTIP
162 m_colorButton->setStatusTip(QApplication::translate("QStarDict::CSSEdit", "Click to select color", 0, QApplication::UnicodeUTF8));
163 #endif // QT_NO_STATUSTIP
164 m_colorButton->setText(QApplication::translate("QStarDict::CSSEdit", "#000000", 0, QApplication::UnicodeUTF8));
165 #ifndef QT_NO_STATUSTIP
166 m_backgroundButton->setStatusTip(QApplication::translate("QStarDict::CSSEdit", "Click to select color", 0, QApplication::UnicodeUTF8));
167 #endif // QT_NO_STATUSTIP
168 m_backgroundButton->setText(QApplication::translate("QStarDict::CSSEdit", "#000000", 0, QApplication::UnicodeUTF8));
169 label_4->setText(QApplication::translate("QStarDict::CSSEdit", "Font", 0, QApplication::UnicodeUTF8));
170 #ifndef QT_NO_TOOLTIP
171 m_fontCombo->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Select font", 0, QApplication::UnicodeUTF8));
172 #endif // QT_NO_TOOLTIP
173 #ifndef QT_NO_TOOLTIP
174 m_sizeSpin->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Select font size", 0, QApplication::UnicodeUTF8));
175 #endif // QT_NO_TOOLTIP
176 m_sizeSpin->setSuffix(QApplication::translate("QStarDict::CSSEdit", "pt", 0, QApplication::UnicodeUTF8));
177 #ifndef QT_NO_TOOLTIP
178 m_boldButton->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Bold", 0, QApplication::UnicodeUTF8));
179 #endif // QT_NO_TOOLTIP
180 m_boldButton->setText(QApplication::translate("QStarDict::CSSEdit", "B", 0, QApplication::UnicodeUTF8));
181 #ifndef QT_NO_TOOLTIP
182 m_italicButton->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Italic", 0, QApplication::UnicodeUTF8));
183 #endif // QT_NO_TOOLTIP
184 m_italicButton->setText(QApplication::translate("QStarDict::CSSEdit", "I", 0, QApplication::UnicodeUTF8));
185 #ifndef QT_NO_TOOLTIP
186 m_underlineButton->setToolTip(QApplication::translate("QStarDict::CSSEdit", "Underline", 0, QApplication::UnicodeUTF8));
187 #endif // QT_NO_TOOLTIP
188 m_underlineButton->setText(QApplication::translate("QStarDict::CSSEdit", "U", 0, QApplication::UnicodeUTF8));
189 Q_UNUSED(QStarDict__CSSEdit);
194 } // namespace QStarDict
196 namespace QStarDict {
198 class CSSEdit: public Ui_CSSEdit {};
200 } // namespace QStarDict
202 #endif // UI_CSSEDIT_H