00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef PYTHONSETTINGSDATA_H
00011 #define PYTHONSETTINGSDATA_H
00012
00013 #include <BALL/COMMON/global.h>
00014 #include <QtCore/QVariant>
00015 #include <QtGui/QAction>
00016 #include <QtGui/QApplication>
00017 #include <QtGui/QButtonGroup>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QGroupBox>
00020 #include <QtGui/QHBoxLayout>
00021 #include <QtGui/QLabel>
00022 #include <QtGui/QLineEdit>
00023 #include <QtGui/QPushButton>
00024 #include <QtGui/QStackedWidget>
00025 #include <QtGui/QWidget>
00026
00027 class Ui_PythonSettingsData
00028 {
00029 public:
00030 QStackedWidget *widget_stack;
00031 QWidget *General;
00032 QLabel *textLabel1;
00033 QLineEdit *script_edit;
00034 QPushButton *choose_button;
00035 QPushButton *clear_button;
00036 QGroupBox *GroupBox1_2_2;
00037 QHBoxLayout *hboxLayout;
00038 QLabel *font_label;
00039 QPushButton *font_button;
00040 QWidget *Hotkeys;
00041 QWidget *widget;
00042 QGridLayout *gridLayout;
00043 QPushButton *remove_button;
00044 QLabel *textLabel1_2;
00045 QPushButton *new_button;
00046
00047 void setupUi(QWidget *PythonSettingsData)
00048 {
00049 PythonSettingsData->setObjectName(QString::fromUtf8("PythonSettingsData"));
00050 widget_stack = new QStackedWidget(PythonSettingsData);
00051 widget_stack->setObjectName(QString::fromUtf8("widget_stack"));
00052 widget_stack->setGeometry(QRect(0, 0, 611, 440));
00053 General = new QWidget();
00054 General->setObjectName(QString::fromUtf8("General"));
00055 textLabel1 = new QLabel(General);
00056 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00057 textLabel1->setGeometry(QRect(19, 14, 166, 20));
00058 QSizePolicy sizePolicy(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00059 sizePolicy.setHorizontalStretch(0);
00060 sizePolicy.setVerticalStretch(0);
00061 sizePolicy.setHeightForWidth(textLabel1->sizePolicy().hasHeightForWidth());
00062 textLabel1->setSizePolicy(sizePolicy);
00063 script_edit = new QLineEdit(General);
00064 script_edit->setObjectName(QString::fromUtf8("script_edit"));
00065 script_edit->setGeometry(QRect(16, 34, 470, 27));
00066 script_edit->setReadOnly(true);
00067 choose_button = new QPushButton(General);
00068 choose_button->setObjectName(QString::fromUtf8("choose_button"));
00069 choose_button->setGeometry(QRect(315, 66, 80, 30));
00070 choose_button->setMinimumSize(QSize(80, 30));
00071 clear_button = new QPushButton(General);
00072 clear_button->setObjectName(QString::fromUtf8("clear_button"));
00073 clear_button->setGeometry(QRect(404, 66, 80, 30));
00074 clear_button->setMinimumSize(QSize(80, 30));
00075 GroupBox1_2_2 = new QGroupBox(General);
00076 GroupBox1_2_2->setObjectName(QString::fromUtf8("GroupBox1_2_2"));
00077 GroupBox1_2_2->setGeometry(QRect(10, 120, 471, 61));
00078 hboxLayout = new QHBoxLayout(GroupBox1_2_2);
00079 hboxLayout->setSpacing(6);
00080 hboxLayout->setMargin(5);
00081 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00082 font_label = new QLabel(GroupBox1_2_2);
00083 font_label->setObjectName(QString::fromUtf8("font_label"));
00084 QSizePolicy sizePolicy1(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(3));
00085 sizePolicy1.setHorizontalStretch(0);
00086 sizePolicy1.setVerticalStretch(0);
00087 sizePolicy1.setHeightForWidth(font_label->sizePolicy().hasHeightForWidth());
00088 font_label->setSizePolicy(sizePolicy1);
00089 font_label->setMaximumSize(QSize(400, 190));
00090 QFont font;
00091 font.setFamily(QString::fromUtf8("Sans Serif"));
00092 font.setPointSize(9);
00093 font.setBold(false);
00094 font.setItalic(false);
00095 font.setUnderline(false);
00096 font.setWeight(50);
00097 font.setStrikeOut(false);
00098 font_label->setFont(font);
00099 font_label->setFrameShape(QFrame::Panel);
00100 font_label->setFrameShadow(QFrame::Sunken);
00101 font_label->setAlignment(Qt::AlignVCenter);
00102
00103 hboxLayout->addWidget(font_label);
00104
00105 font_button = new QPushButton(GroupBox1_2_2);
00106 font_button->setObjectName(QString::fromUtf8("font_button"));
00107 QSizePolicy sizePolicy2(static_cast<QSizePolicy::Policy>(0), static_cast<QSizePolicy::Policy>(0));
00108 sizePolicy2.setHorizontalStretch(0);
00109 sizePolicy2.setVerticalStretch(0);
00110 sizePolicy2.setHeightForWidth(font_button->sizePolicy().hasHeightForWidth());
00111 font_button->setSizePolicy(sizePolicy2);
00112 font_button->setMinimumSize(QSize(0, 28));
00113
00114 hboxLayout->addWidget(font_button);
00115
00116 widget_stack->addWidget(General);
00117 Hotkeys = new QWidget();
00118 Hotkeys->setObjectName(QString::fromUtf8("Hotkeys"));
00119 widget = new QWidget(Hotkeys);
00120 widget->setObjectName(QString::fromUtf8("widget"));
00121 widget->setGeometry(QRect(0, 350, 611, 78));
00122 gridLayout = new QGridLayout(widget);
00123 gridLayout->setSpacing(6);
00124 gridLayout->setMargin(0);
00125 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00126 remove_button = new QPushButton(widget);
00127 remove_button->setObjectName(QString::fromUtf8("remove_button"));
00128 remove_button->setMinimumSize(QSize(100, 30));
00129 remove_button->setMaximumSize(QSize(32767, 30));
00130
00131 gridLayout->addWidget(remove_button, 0, 0, 1, 1);
00132
00133 textLabel1_2 = new QLabel(widget);
00134 textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
00135 QSizePolicy sizePolicy3(static_cast<QSizePolicy::Policy>(3), static_cast<QSizePolicy::Policy>(5));
00136 sizePolicy3.setHorizontalStretch(0);
00137 sizePolicy3.setVerticalStretch(0);
00138 sizePolicy3.setHeightForWidth(textLabel1_2->sizePolicy().hasHeightForWidth());
00139 textLabel1_2->setSizePolicy(sizePolicy3);
00140 textLabel1_2->setMinimumSize(QSize(0, 40));
00141 textLabel1_2->setMaximumSize(QSize(32767, 50));
00142 textLabel1_2->setFrameShadow(QFrame::Sunken);
00143 textLabel1_2->setMargin(0);
00144
00145 gridLayout->addWidget(textLabel1_2, 1, 0, 1, 2);
00146
00147 new_button = new QPushButton(widget);
00148 new_button->setObjectName(QString::fromUtf8("new_button"));
00149 new_button->setMinimumSize(QSize(150, 30));
00150 new_button->setMaximumSize(QSize(32767, 30));
00151
00152 gridLayout->addWidget(new_button, 0, 1, 1, 1);
00153
00154 widget_stack->addWidget(Hotkeys);
00155
00156 retranslateUi(PythonSettingsData);
00157
00158 QSize size(623, 435);
00159 size = size.expandedTo(PythonSettingsData->minimumSizeHint());
00160 PythonSettingsData->resize(size);
00161
00162
00163 widget_stack->setCurrentIndex(0);
00164
00165
00166 QMetaObject::connectSlotsByName(PythonSettingsData);
00167 }
00168
00169 void retranslateUi(QWidget *PythonSettingsData)
00170 {
00171 PythonSettingsData->setWindowTitle(QApplication::translate("PythonSettingsData", "Python", 0, QApplication::UnicodeUTF8));
00172 textLabel1->setText(QApplication::translate("PythonSettingsData", "Startup script", 0, QApplication::UnicodeUTF8));
00173 choose_button->setText(QApplication::translate("PythonSettingsData", "Browse", 0, QApplication::UnicodeUTF8));
00174 clear_button->setText(QApplication::translate("PythonSettingsData", "Clear", 0, QApplication::UnicodeUTF8));
00175 GroupBox1_2_2->setTitle(QApplication::translate("PythonSettingsData", "Font for the internal editor", 0, QApplication::UnicodeUTF8));
00176 font_label->setToolTip(QApplication::translate("PythonSettingsData", "Font Preview", 0, QApplication::UnicodeUTF8));
00177 font_label->setText(QApplication::translate("PythonSettingsData", "Font Test label", 0, QApplication::UnicodeUTF8));
00178 font_button->setToolTip(QApplication::translate("PythonSettingsData", "Select the font", 0, QApplication::UnicodeUTF8));
00179 font_button->setText(QApplication::translate("PythonSettingsData", "Select", 0, QApplication::UnicodeUTF8));
00180 remove_button->setToolTip(QApplication::translate("PythonSettingsData", "Remove a hotkey, select the row (with the field to the left)", 0, QApplication::UnicodeUTF8));
00181 remove_button->setText(QApplication::translate("PythonSettingsData", "&Remove", 0, QApplication::UnicodeUTF8));
00182 remove_button->setShortcut(QApplication::translate("PythonSettingsData", "Alt+R", 0, QApplication::UnicodeUTF8));
00183 textLabel1_2->setText(QApplication::translate("PythonSettingsData", "<b>Note:</b> F1 is reserved for the internal help system!", 0, QApplication::UnicodeUTF8));
00184 new_button->setToolTip(QApplication::translate("PythonSettingsData", "Add a new hotkey", 0, QApplication::UnicodeUTF8));
00185 new_button->setText(QApplication::translate("PythonSettingsData", "&Add new", 0, QApplication::UnicodeUTF8));
00186 new_button->setShortcut(QApplication::translate("PythonSettingsData", "Alt+A", 0, QApplication::UnicodeUTF8));
00187 Q_UNUSED(PythonSettingsData);
00188 }
00189
00190 };
00191
00192 namespace Ui {
00193 class PythonSettingsData: public Ui_PythonSettingsData {};
00194 }
00195
00196 #endif // PYTHONSETTINGSDATA_H