523060105b32f1411341ab3e44fb350fbe3d91d2
[qstardict] / plugins / stardict / ui_settingsdialog.h
1 /********************************************************************************
2 ** Form generated from reading ui file 'settingsdialog.ui'
3 **
4 ** Created: Tue Dec 29 16:45:15 2009
5 **      by: Qt User Interface Compiler version 4.5.3
6 **
7 ** WARNING! All changes made in this file will be lost when recompiling ui file!
8 ********************************************************************************/
9
10 #ifndef UI_SETTINGSDIALOG_H
11 #define UI_SETTINGSDIALOG_H
12
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>
27
28 QT_BEGIN_NAMESPACE
29
30 class Ui_SettingsDialog
31 {
32 public:
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;
45
46     void setupUi(QDialog *SettingsDialog)
47     {
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();
55 #ifndef Q_OS_MAC
56         gridLayout->setMargin(0);
57 #endif
58         gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
59         expandAbbreviationsBox = new QCheckBox(SettingsDialog);
60         expandAbbreviationsBox->setObjectName(QString::fromUtf8("expandAbbreviationsBox"));
61
62         gridLayout->addWidget(expandAbbreviationsBox, 0, 0, 1, 1);
63
64         reformatListsBox = new QCheckBox(SettingsDialog);
65         reformatListsBox->setObjectName(QString::fromUtf8("reformatListsBox"));
66
67         gridLayout->addWidget(reformatListsBox, 0, 2, 1, 1);
68
69         reformatTranslationsWarningLabel = new QLabel(SettingsDialog);
70         reformatTranslationsWarningLabel->setObjectName(QString::fromUtf8("reformatTranslationsWarningLabel"));
71         reformatTranslationsWarningLabel->setEnabled(false);
72         QFont font;
73         font.setPointSize(9);
74         reformatTranslationsWarningLabel->setFont(font);
75         reformatTranslationsWarningLabel->setVisible(false);
76
77         gridLayout->addWidget(reformatTranslationsWarningLabel, 1, 0, 1, 1);
78
79
80         verticalLayout->addLayout(gridLayout);
81
82         dictDirsList = new QListWidget(SettingsDialog);
83         dictDirsList->setObjectName(QString::fromUtf8("dictDirsList"));
84
85         verticalLayout->addWidget(dictDirsList);
86
87         hboxLayout = new QHBoxLayout();
88 #ifndef Q_OS_MAC
89         hboxLayout->setSpacing(6);
90 #endif
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));
96         QIcon icon;
97         icon.addFile(QString::fromUtf8(":/icons/list-add.png"), QSize(), QIcon::Normal, QIcon::Off);
98         addDictDirButton->setIcon(icon);
99         addDictDirButton->setIconSize(QSize(112, 70));
100
101         hboxLayout->addWidget(addDictDirButton);
102
103         removeDictDirButton = new QToolButton(SettingsDialog);
104         removeDictDirButton->setObjectName(QString::fromUtf8("removeDictDirButton"));
105         removeDictDirButton->setMinimumSize(QSize(112, 70));
106         QIcon icon1;
107         icon1.addFile(QString::fromUtf8(":/icons/list-remove.png"), QSize(), QIcon::Normal, QIcon::Off);
108         removeDictDirButton->setIcon(icon1);
109         removeDictDirButton->setIconSize(QSize(112, 70));
110
111         hboxLayout->addWidget(removeDictDirButton);
112
113         moveUpDictDirButton = new QToolButton(SettingsDialog);
114         moveUpDictDirButton->setObjectName(QString::fromUtf8("moveUpDictDirButton"));
115         moveUpDictDirButton->setMinimumSize(QSize(112, 70));
116         QIcon icon2;
117         icon2.addFile(QString::fromUtf8(":/icons/arrow-up.png"), QSize(), QIcon::Normal, QIcon::Off);
118         moveUpDictDirButton->setIcon(icon2);
119         moveUpDictDirButton->setIconSize(QSize(112, 70));
120
121         hboxLayout->addWidget(moveUpDictDirButton);
122
123         moveDownDictDirButton = new QToolButton(SettingsDialog);
124         moveDownDictDirButton->setObjectName(QString::fromUtf8("moveDownDictDirButton"));
125         moveDownDictDirButton->setMinimumSize(QSize(112, 70));
126         QIcon icon3;
127         icon3.addFile(QString::fromUtf8(":/icons/arrow-down.png"), QSize(), QIcon::Normal, QIcon::Off);
128         moveDownDictDirButton->setIcon(icon3);
129         moveDownDictDirButton->setIconSize(QSize(112, 70));
130
131         hboxLayout->addWidget(moveDownDictDirButton);
132
133         spacerItem = new QSpacerItem(342, 26, QSizePolicy::Expanding, QSizePolicy::Minimum);
134
135         hboxLayout->addItem(spacerItem);
136
137
138         verticalLayout->addLayout(hboxLayout);
139
140
141         retranslateUi(SettingsDialog);
142
143         QMetaObject::connectSlotsByName(SettingsDialog);
144     } // setupUi
145
146     void retranslateUi(QDialog *SettingsDialog)
147     {
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);
187     } // retranslateUi
188
189 };
190
191 namespace Ui {
192     class SettingsDialog: public Ui_SettingsDialog {};
193 } // namespace Ui
194
195 QT_END_NAMESPACE
196
197 #endif // UI_SETTINGSDIALOG_H