00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include <QtCore/QVariant>
00011 #include <QtGui/QAction>
00012 #include <QtGui/QApplication>
00013 #include <QtGui/QButtonGroup>
00014 #include <QtGui/QGridLayout>
00015 #include <QtGui/QHBoxLayout>
00016 #include <QtGui/QHeaderView>
00017 #include <QtGui/QLabel>
00018 #include <QtGui/QLineEdit>
00019 #include <QtGui/QPushButton>
00020 #include <QtGui/QSpacerItem>
00021 #include <QtGui/QVBoxLayout>
00022 #include <QtGui/QWidget>
00023
00024 QT_BEGIN_NAMESPACE
00025
00026 class Ui_SourceHighlightSettingsPage
00027 {
00028 public:
00029 QGridLayout *gridLayout;
00030 QLabel *label;
00031 QVBoxLayout *verticalLayout;
00032 QLineEdit *sourceHighlightDataDirLineEdit;
00033 QHBoxLayout *horizontalLayout;
00034 QSpacerItem *horizontalSpacer;
00035 QPushButton *browseButton;
00036 QPushButton *defaultButton;
00037 QLabel *errorLabel;
00038 QLabel *okLabel;
00039 QSpacerItem *verticalSpacer;
00040
00041 void setupUi(QWidget *SourceHighlightSettingsPage)
00042 {
00043 if (SourceHighlightSettingsPage->objectName().isEmpty())
00044 SourceHighlightSettingsPage->setObjectName(QString::fromUtf8("SourceHighlightSettingsPage"));
00045 SourceHighlightSettingsPage->resize(400, 300);
00046 gridLayout = new QGridLayout(SourceHighlightSettingsPage);
00047 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00048 label = new QLabel(SourceHighlightSettingsPage);
00049 label->setObjectName(QString::fromUtf8("label"));
00050
00051 gridLayout->addWidget(label, 0, 0, 1, 1);
00052
00053 verticalLayout = new QVBoxLayout();
00054 verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
00055 sourceHighlightDataDirLineEdit = new QLineEdit(SourceHighlightSettingsPage);
00056 sourceHighlightDataDirLineEdit->setObjectName(QString::fromUtf8("sourceHighlightDataDirLineEdit"));
00057
00058 verticalLayout->addWidget(sourceHighlightDataDirLineEdit);
00059
00060 horizontalLayout = new QHBoxLayout();
00061 horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
00062 horizontalSpacer = new QSpacerItem(197, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
00063
00064 horizontalLayout->addItem(horizontalSpacer);
00065
00066 browseButton = new QPushButton(SourceHighlightSettingsPage);
00067 browseButton->setObjectName(QString::fromUtf8("browseButton"));
00068
00069 horizontalLayout->addWidget(browseButton);
00070
00071 defaultButton = new QPushButton(SourceHighlightSettingsPage);
00072 defaultButton->setObjectName(QString::fromUtf8("defaultButton"));
00073
00074 horizontalLayout->addWidget(defaultButton);
00075
00076
00077 verticalLayout->addLayout(horizontalLayout);
00078
00079
00080 gridLayout->addLayout(verticalLayout, 1, 0, 1, 2);
00081
00082 errorLabel = new QLabel(SourceHighlightSettingsPage);
00083 errorLabel->setObjectName(QString::fromUtf8("errorLabel"));
00084 QFont font;
00085 font.setBold(true);
00086 font.setWeight(75);
00087 errorLabel->setFont(font);
00088
00089 gridLayout->addWidget(errorLabel, 2, 0, 1, 2);
00090
00091 okLabel = new QLabel(SourceHighlightSettingsPage);
00092 okLabel->setObjectName(QString::fromUtf8("okLabel"));
00093
00094 gridLayout->addWidget(okLabel, 3, 0, 1, 1);
00095
00096 verticalSpacer = new QSpacerItem(20, 193, QSizePolicy::Minimum, QSizePolicy::Expanding);
00097
00098 gridLayout->addItem(verticalSpacer, 4, 1, 1, 1);
00099
00100 #ifndef QT_NO_SHORTCUT
00101 label->setBuddy(sourceHighlightDataDirLineEdit);
00102 #endif // QT_NO_SHORTCUT
00103
00104 retranslateUi(SourceHighlightSettingsPage);
00105
00106 QMetaObject::connectSlotsByName(SourceHighlightSettingsPage);
00107 }
00108
00109 void retranslateUi(QWidget *SourceHighlightSettingsPage)
00110 {
00111 SourceHighlightSettingsPage->setWindowTitle(QApplication::translate("SourceHighlightSettingsPage", "Form", 0, QApplication::UnicodeUTF8));
00112 label->setText(QApplication::translate("SourceHighlightSettingsPage", "Source-highlight's files path", 0, QApplication::UnicodeUTF8));
00113 #ifndef QT_NO_TOOLTIP
00114 sourceHighlightDataDirLineEdit->setToolTip(QApplication::translate("SourceHighlightSettingsPage", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
00115 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00116 "p, li { white-space: pre-wrap; }\n"
00117 "</style></head><body style=\" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
00118 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Sets the path where source-highlight searches for all its configuration files (e.g., .lang, .outlang, etc.); this basically corresponds to source-highlight's <span style=\" font-weight:600;\">--data-dir</span> command line option.</p></body></html>", 0, QApplication::UnicodeUTF8));
00119 #endif // QT_NO_TOOLTIP
00120 browseButton->setText(QApplication::translate("SourceHighlightSettingsPage", "Browse...", 0, QApplication::UnicodeUTF8));
00121 #ifndef QT_NO_TOOLTIP
00122 defaultButton->setToolTip(QApplication::translate("SourceHighlightSettingsPage", "Use the default (hardcoded) value from the source-highlight library", 0, QApplication::UnicodeUTF8));
00123 #endif // QT_NO_TOOLTIP
00124 defaultButton->setText(QApplication::translate("SourceHighlightSettingsPage", "Default", 0, QApplication::UnicodeUTF8));
00125 errorLabel->setText(QApplication::translate("SourceHighlightSettingsPage", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
00126 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00127 "p, li { white-space: pre-wrap; }\n"
00128 "</style></head><body style=\" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
00129 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600; color:#ff0000;\">The path is not a valid source-highlight's path</span></p></body></html>", 0, QApplication::UnicodeUTF8));
00130 okLabel->setText(QApplication::translate("SourceHighlightSettingsPage", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
00131 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
00132 "p, li { white-space: pre-wrap; }\n"
00133 "</style></head><body style=\" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
00134 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" color:#00aa00;\">Valid source-highlight path</span></p></body></html>", 0, QApplication::UnicodeUTF8));
00135 }
00136
00137 };
00138
00139 namespace Ui {
00140 class SourceHighlightSettingsPage: public Ui_SourceHighlightSettingsPage {};
00141 }
00142
00143 QT_END_NAMESPACE
00144