00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef SHORTCUTDIALOGDATA_H
00011 #define SHORTCUTDIALOGDATA_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/QComboBox>
00019 #include <QtGui/QGridLayout>
00020 #include <QtGui/QGroupBox>
00021 #include <QtGui/QHBoxLayout>
00022 #include <QtGui/QLabel>
00023 #include <QtGui/QLineEdit>
00024 #include <QtGui/QPushButton>
00025 #include <QtGui/QWidget>
00026 #include "BALL/VIEW/WIDGETS/shortcutTableView.h"
00027
00028 QT_BEGIN_NAMESPACE
00029
00030 class Ui_ShortcutDialogData
00031 {
00032 public:
00033 QGridLayout *gridLayout;
00034 QGroupBox *settings_group;
00035 QGridLayout *gridLayout1;
00036 BALL::VIEW::ShortcutTableView *tableView;
00037 QLineEdit *searchEdit;
00038 QPushButton *clearButton;
00039 QLabel *label;
00040 QGroupBox *orientation_group;
00041 QHBoxLayout *hboxLayout;
00042 QPushButton *browse_import_button;
00043 QPushButton *browse_export_button;
00044 QLabel *label_2;
00045 QComboBox *predefined_combo_box;
00046
00047 void setupUi(QWidget *ShortcutDialogData)
00048 {
00049 if (ShortcutDialogData->objectName().isEmpty())
00050 ShortcutDialogData->setObjectName(QString::fromUtf8("ShortcutDialogData"));
00051 ShortcutDialogData->resize(610, 374);
00052 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
00053 sizePolicy.setHorizontalStretch(0);
00054 sizePolicy.setVerticalStretch(0);
00055 sizePolicy.setHeightForWidth(ShortcutDialogData->sizePolicy().hasHeightForWidth());
00056 ShortcutDialogData->setSizePolicy(sizePolicy);
00057 ShortcutDialogData->setMinimumSize(QSize(0, 0));
00058 ShortcutDialogData->setMaximumSize(QSize(650, 450));
00059 gridLayout = new QGridLayout(ShortcutDialogData);
00060 gridLayout->setSpacing(6);
00061 gridLayout->setMargin(11);
00062 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00063 settings_group = new QGroupBox(ShortcutDialogData);
00064 settings_group->setObjectName(QString::fromUtf8("settings_group"));
00065 gridLayout1 = new QGridLayout(settings_group);
00066 gridLayout1->setSpacing(6);
00067 gridLayout1->setMargin(9);
00068 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00069 tableView = new BALL::VIEW::ShortcutTableView(settings_group);
00070 tableView->setObjectName(QString::fromUtf8("tableView"));
00071 tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
00072 tableView->setAlternatingRowColors(true);
00073 tableView->setSelectionMode(QAbstractItemView::SingleSelection);
00074 tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
00075 tableView->setSortingEnabled(true);
00076 tableView->setCornerButtonEnabled(false);
00077
00078 gridLayout1->addWidget(tableView, 1, 0, 1, 3);
00079
00080 searchEdit = new QLineEdit(settings_group);
00081 searchEdit->setObjectName(QString::fromUtf8("searchEdit"));
00082
00083 gridLayout1->addWidget(searchEdit, 0, 1, 1, 1);
00084
00085 clearButton = new QPushButton(settings_group);
00086 clearButton->setObjectName(QString::fromUtf8("clearButton"));
00087
00088 gridLayout1->addWidget(clearButton, 0, 2, 1, 1);
00089
00090 label = new QLabel(settings_group);
00091 label->setObjectName(QString::fromUtf8("label"));
00092
00093 gridLayout1->addWidget(label, 0, 0, 1, 1);
00094
00095
00096 gridLayout->addWidget(settings_group, 0, 0, 1, 2);
00097
00098 orientation_group = new QGroupBox(ShortcutDialogData);
00099 orientation_group->setObjectName(QString::fromUtf8("orientation_group"));
00100 hboxLayout = new QHBoxLayout(orientation_group);
00101 hboxLayout->setSpacing(6);
00102 hboxLayout->setMargin(9);
00103 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00104 browse_import_button = new QPushButton(orientation_group);
00105 browse_import_button->setObjectName(QString::fromUtf8("browse_import_button"));
00106 browse_import_button->setMinimumSize(QSize(50, 25));
00107 browse_import_button->setFocusPolicy(Qt::TabFocus);
00108 browse_import_button->setAutoDefault(true);
00109 browse_import_button->setDefault(false);
00110 browse_import_button->setFlat(false);
00111
00112 hboxLayout->addWidget(browse_import_button);
00113
00114 browse_export_button = new QPushButton(orientation_group);
00115 browse_export_button->setObjectName(QString::fromUtf8("browse_export_button"));
00116 browse_export_button->setMinimumSize(QSize(50, 25));
00117 browse_export_button->setFocusPolicy(Qt::TabFocus);
00118 browse_export_button->setAutoDefault(true);
00119 browse_export_button->setDefault(false);
00120 browse_export_button->setFlat(false);
00121
00122 hboxLayout->addWidget(browse_export_button);
00123
00124
00125 gridLayout->addWidget(orientation_group, 1, 0, 3, 1);
00126
00127 label_2 = new QLabel(ShortcutDialogData);
00128 label_2->setObjectName(QString::fromUtf8("label_2"));
00129
00130 gridLayout->addWidget(label_2, 1, 1, 1, 1);
00131
00132 predefined_combo_box = new QComboBox(ShortcutDialogData);
00133 predefined_combo_box->setObjectName(QString::fromUtf8("predefined_combo_box"));
00134
00135 gridLayout->addWidget(predefined_combo_box, 2, 1, 1, 1);
00136
00137 QWidget::setTabOrder(searchEdit, clearButton);
00138 QWidget::setTabOrder(clearButton, tableView);
00139 QWidget::setTabOrder(tableView, browse_import_button);
00140 QWidget::setTabOrder(browse_import_button, browse_export_button);
00141 QWidget::setTabOrder(browse_export_button, predefined_combo_box);
00142
00143 retranslateUi(ShortcutDialogData);
00144 QObject::connect(searchEdit, SIGNAL(textChanged(QString)), ShortcutDialogData, SLOT(searchTextChanged(QString)));
00145 QObject::connect(clearButton, SIGNAL(clicked()), searchEdit, SLOT(clear()));
00146 QObject::connect(predefined_combo_box, SIGNAL(currentIndexChanged(QString)), ShortcutDialogData, SLOT(loadPredefinedShortcuts_(QString)));
00147
00148 QMetaObject::connectSlotsByName(ShortcutDialogData);
00149 }
00150
00151 void retranslateUi(QWidget *ShortcutDialogData)
00152 {
00153 ShortcutDialogData->setWindowTitle(QApplication::translate("ShortcutDialogData", "Shortcuts", 0, QApplication::UnicodeUTF8));
00154 settings_group->setTitle(QApplication::translate("ShortcutDialogData", "Edit Shortcuts", 0, QApplication::UnicodeUTF8));
00155 clearButton->setText(QApplication::translate("ShortcutDialogData", "Clear", 0, QApplication::UnicodeUTF8));
00156 label->setText(QApplication::translate("ShortcutDialogData", "Search:", 0, QApplication::UnicodeUTF8));
00157 orientation_group->setTitle(QApplication::translate("ShortcutDialogData", "Load/Save Shortcuts from File", 0, QApplication::UnicodeUTF8));
00158
00159 #ifndef QT_NO_TOOLTIP
00160 browse_import_button->setToolTip(QApplication::translate("ShortcutDialogData", "Browse your computer for filedestination of the export", 0, QApplication::UnicodeUTF8));
00161 #endif // QT_NO_TOOLTIP
00162
00163 browse_import_button->setText(QApplication::translate("ShortcutDialogData", "Import", 0, QApplication::UnicodeUTF8));
00164
00165 #ifndef QT_NO_TOOLTIP
00166 browse_export_button->setToolTip(QApplication::translate("ShortcutDialogData", "Browse your computer for filedestination of the export", 0, QApplication::UnicodeUTF8));
00167 #endif // QT_NO_TOOLTIP
00168
00169 browse_export_button->setText(QApplication::translate("ShortcutDialogData", "Export", 0, QApplication::UnicodeUTF8));
00170 label_2->setText(QApplication::translate("ShortcutDialogData", "Use Predefined Shortcuts:", 0, QApplication::UnicodeUTF8));
00171 predefined_combo_box->insertItems(0, QStringList()
00172 << QApplication::translate("ShortcutDialogData", "Default Shortcuts (Version 1.3)", 0, QApplication::UnicodeUTF8)
00173 << QApplication::translate("ShortcutDialogData", "Legacy Shortcuts (Version 1.2)", 0, QApplication::UnicodeUTF8)
00174 << QApplication::translate("ShortcutDialogData", "Custom", 0, QApplication::UnicodeUTF8)
00175 );
00176 Q_UNUSED(ShortcutDialogData);
00177 }
00178
00179 };
00180
00181 namespace Ui {
00182 class ShortcutDialogData: public Ui_ShortcutDialogData {};
00183 }
00184
00185 QT_END_NAMESPACE
00186
00187 #endif // SHORTCUTDIALOGDATA_H