1 /********************************************************************************
2 ** Form generated from reading ui file 'settingsdialog.ui'
4 ** Created: Tue Dec 29 16:45:15 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 ********************************************************************************/
10 #ifndef UI_SETTINGSDIALOG_H
11 #define UI_SETTINGSDIALOG_H
13 #include <QtCore/QVariant>
14 #include <QtGui/QAction>
15 #include <QtGui/QApplication>
16 #include <QtGui/QButtonGroup>
17 #include <QtGui/QCheckBox>
18 #include <QtGui/QDialog>
19 #include <QtGui/QGridLayout>
20 #include <QtGui/QHBoxLayout>
21 #include <QtGui/QHeaderView>
22 #include <QtGui/QLabel>
23 #include <QtGui/QListWidget>
24 #include <QtGui/QSpacerItem>
25 #include <QtGui/QToolButton>
26 #include <QtGui/QVBoxLayout>
30 class Ui_SettingsDialog
33 QVBoxLayout *verticalLayout;
34 QGridLayout *gridLayout;
35 QCheckBox *expandAbbreviationsBox;
36 QCheckBox *reformatListsBox;
37 QLabel *reformatTranslationsWarningLabel;
38 QListWidget *dictDirsList;
39 QHBoxLayout *hboxLayout;
40 QToolButton *addDictDirButton;
41 QToolButton *removeDictDirButton;
42 QToolButton *moveUpDictDirButton;
43 QToolButton *moveDownDictDirButton;
44 QSpacerItem *spacerItem;
46 void setupUi(QDialog *SettingsDialog)
48 if (SettingsDialog->objectName().isEmpty())
49 SettingsDialog->setObjectName(QString::fromUtf8("SettingsDialog"));
50 SettingsDialog->setEnabled(true);
51 SettingsDialog->resize(560, 320);
52 verticalLayout = new QVBoxLayout(SettingsDialog);
53 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
54 gridLayout = new QGridLayout();
56 gridLayout->setMargin(0);
58 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
59 expandAbbreviationsBox = new QCheckBox(SettingsDialog);
60 expandAbbreviationsBox->setObjectName(QString::fromUtf8("expandAbbreviationsBox"));
62 gridLayout->addWidget(expandAbbreviationsBox, 0, 0, 1, 1);
64 reformatListsBox = new QCheckBox(SettingsDialog);
65 reformatListsBox->setObjectName(QString::fromUtf8("reformatListsBox"));
67 gridLayout->addWidget(reformatListsBox, 0, 2, 1, 1);
69 reformatTranslationsWarningLabel = new QLabel(SettingsDialog);
70 reformatTranslationsWarningLabel->setObjectName(QString::fromUtf8("reformatTranslationsWarningLabel"));
71 reformatTranslationsWarningLabel->setEnabled(false);
74 reformatTranslationsWarningLabel->setFont(font);
75 reformatTranslationsWarningLabel->setVisible(false);
77 gridLayout->addWidget(reformatTranslationsWarningLabel, 1, 0, 1, 1);
80 verticalLayout->addLayout(gridLayout);
82 dictDirsList = new QListWidget(SettingsDialog);
83 dictDirsList->setObjectName(QString::fromUtf8("dictDirsList"));
85 verticalLayout->addWidget(dictDirsList);
87 hboxLayout = new QHBoxLayout();
89 hboxLayout->setSpacing(6);
91 hboxLayout->setMargin(0);
92 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
93 addDictDirButton = new QToolButton(SettingsDialog);
94 addDictDirButton->setObjectName(QString::fromUtf8("addDictDirButton"));
95 addDictDirButton->setMinimumSize(QSize(112, 70));
97 icon.addFile(QString::fromUtf8(":/icons/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
98 addDictDirButton->setIcon(icon);
99 addDictDirButton->setIconSize(QSize(112, 70));
101 hboxLayout->addWidget(addDictDirButton);
103 removeDictDirButton = new QToolButton(SettingsDialog);
104 removeDictDirButton->setObjectName(QString::fromUtf8("removeDictDirButton"));
105 removeDictDirButton->setMinimumSize(QSize(112, 70));
107 icon1.addFile(QString::fromUtf8(":/icons/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
108 removeDictDirButton->setIcon(icon1);
109 removeDictDirButton->setIconSize(QSize(112, 70));
111 hboxLayout->addWidget(removeDictDirButton);
113 moveUpDictDirButton = new QToolButton(SettingsDialog);
114 moveUpDictDirButton->setObjectName(QString::fromUtf8("moveUpDictDirButton"));
115 moveUpDictDirButton->setMinimumSize(QSize(112, 70));
117 icon2.addFile(QString::fromUtf8(":/icons/arrow-up.png"), QSize(), QIcon::Normal, QIcon::Off);
118 moveUpDictDirButton->setIcon(icon2);
119 moveUpDictDirButton->setIconSize(QSize(112, 70));
121 hboxLayout->addWidget(moveUpDictDirButton);
123 moveDownDictDirButton = new QToolButton(SettingsDialog);
124 moveDownDictDirButton->setObjectName(QString::fromUtf8("moveDownDictDirButton"));
125 moveDownDictDirButton->setMinimumSize(QSize(112, 70));
127 icon3.addFile(QString::fromUtf8(":/icons/arrow-down.png"), QSize(), QIcon::Normal, QIcon::Off);
128 moveDownDictDirButton->setIcon(icon3);
129 moveDownDictDirButton->setIconSize(QSize(112, 70));
131 hboxLayout->addWidget(moveDownDictDirButton);
133 spacerItem = new QSpacerItem(342, 26, QSizePolicy::Expanding, QSizePolicy::Minimum);
135 hboxLayout->addItem(spacerItem);
138 verticalLayout->addLayout(hboxLayout);
141 retranslateUi(SettingsDialog);
143 QMetaObject::connectSlotsByName(SettingsDialog);
146 void retranslateUi(QDialog *SettingsDialog)
148 SettingsDialog->setWindowTitle(QApplication::translate("SettingsDialog", "StarDict plugin settings", 0, QApplication::UnicodeUTF8));
149 #ifndef QT_NO_TOOLTIP
150 expandAbbreviationsBox->setToolTip(QApplication::translate("SettingsDialog", "Expand abbreviations if dictionary contains it (may be slow)", 0, QApplication::UnicodeUTF8));
151 #endif // QT_NO_TOOLTIP
152 expandAbbreviationsBox->setText(QApplication::translate("SettingsDialog", "Expand abbreviations", 0, QApplication::UnicodeUTF8));
153 #ifndef QT_NO_TOOLTIP
154 reformatListsBox->setToolTip(QApplication::translate("SettingsDialog", "If enabled all lists in translation wil be formated using HTML <li> tag (may be slow)", 0, QApplication::UnicodeUTF8));
155 #endif // QT_NO_TOOLTIP
156 reformatListsBox->setText(QApplication::translate("SettingsDialog", "Reformat lists", 0, QApplication::UnicodeUTF8));
157 reformatTranslationsWarningLabel->setText(QApplication::translate("SettingsDialog", "<b><font color=\"red\">Warning!</font></b> Reformatted translations may display incorrectly.", 0, QApplication::UnicodeUTF8));
158 #ifndef QT_NO_TOOLTIP
159 addDictDirButton->setToolTip(QApplication::translate("SettingsDialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
160 "p, li { white-space: pre-wrap; }\n"
161 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
162 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Add directory</p></body></html>", 0, QApplication::UnicodeUTF8));
163 #endif // QT_NO_TOOLTIP
164 addDictDirButton->setText(QApplication::translate("SettingsDialog", "Add", 0, QApplication::UnicodeUTF8));
165 #ifndef QT_NO_TOOLTIP
166 removeDictDirButton->setToolTip(QApplication::translate("SettingsDialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
167 "p, li { white-space: pre-wrap; }\n"
168 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
169 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Remove directory</p></body></html>", 0, QApplication::UnicodeUTF8));
170 #endif // QT_NO_TOOLTIP
171 removeDictDirButton->setText(QApplication::translate("SettingsDialog", "Remove", 0, QApplication::UnicodeUTF8));
172 #ifndef QT_NO_TOOLTIP
173 moveUpDictDirButton->setToolTip(QApplication::translate("SettingsDialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
174 "p, li { white-space: pre-wrap; }\n"
175 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
176 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Move up</p></body></html>", 0, QApplication::UnicodeUTF8));
177 #endif // QT_NO_TOOLTIP
178 moveUpDictDirButton->setText(QApplication::translate("SettingsDialog", "Up", 0, QApplication::UnicodeUTF8));
179 #ifndef QT_NO_TOOLTIP
180 moveDownDictDirButton->setToolTip(QApplication::translate("SettingsDialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
181 "p, li { white-space: pre-wrap; }\n"
182 "</style></head><body style=\" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;\">\n"
183 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Move down</p></body></html>", 0, QApplication::UnicodeUTF8));
184 #endif // QT_NO_TOOLTIP
185 moveDownDictDirButton->setText(QApplication::translate("SettingsDialog", "Down", 0, QApplication::UnicodeUTF8));
186 Q_UNUSED(SettingsDialog);
192 class SettingsDialog: public Ui_SettingsDialog {};
197 #endif // UI_SETTINGSDIALOG_H