00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef UI_DLGSETTINGSDOCUMENT_H
00011 #define UI_DLGSETTINGSDOCUMENT_H
00012
00013 #include <QtCore/QVariant>
00014 #include <QtGui/QAction>
00015 #include <QtGui/QApplication>
00016 #include <QtGui/QButtonGroup>
00017 #include <QtGui/QFrame>
00018 #include <QtGui/QGridLayout>
00019 #include <QtGui/QGroupBox>
00020 #include <QtGui/QHBoxLayout>
00021 #include <QtGui/QHeaderView>
00022 #include <QtGui/QLabel>
00023 #include <QtGui/QSpacerItem>
00024 #include <QtGui/QWidget>
00025 #include "Gui/PrefWidgets.h"
00026
00027 namespace Gui {
00028 namespace Dialog {
00029
00030 class Ui_DlgSettingsDocument
00031 {
00032 public:
00033 QGridLayout *gridLayout_3;
00034 QGroupBox *GroupBox5;
00035 QGridLayout *gridLayout;
00036 QHBoxLayout *hboxLayout;
00037 QLabel *textLabel1;
00038 Gui::PrefSpinBox *prefCompression;
00039 QHBoxLayout *hboxLayout1;
00040 QLabel *textLabel1_2;
00041 Gui::PrefSpinBox *prefUndoRedoSize;
00042 Gui::PrefCheckBox *prefCheckNewDoc;
00043 QFrame *line1;
00044 QFrame *line1_2;
00045 Gui::PrefCheckBox *prefUndoRedo;
00046 QGroupBox *groupBox;
00047 QGridLayout *gridLayout_2;
00048 Gui::PrefCheckBox *prefSaveTransaction;
00049 Gui::PrefCheckBox *prefDiscardTransaction;
00050 QFrame *line1_2_3;
00051 Gui::PrefCheckBox *prefSaveThumbnail;
00052 QHBoxLayout *hboxLayout2;
00053 Gui::PrefCheckBox *prefSaveBackupFiles;
00054 QSpacerItem *spacerItem;
00055 Gui::PrefSpinBox *prefCountBackupFiles;
00056 QGroupBox *groupBox_2;
00057 QGridLayout *gridLayout1;
00058 Gui::PrefCheckBox *prefDuplicateLabel;
00059 QSpacerItem *spacerItem1;
00060
00061 void setupUi(QWidget *Gui__Dialog__DlgSettingsDocument)
00062 {
00063 if (Gui__Dialog__DlgSettingsDocument->objectName().isEmpty())
00064 Gui__Dialog__DlgSettingsDocument->setObjectName(QString::fromUtf8("Gui__Dialog__DlgSettingsDocument"));
00065 Gui__Dialog__DlgSettingsDocument->resize(470, 423);
00066 gridLayout_3 = new QGridLayout(Gui__Dialog__DlgSettingsDocument);
00067 gridLayout_3->setSpacing(6);
00068 gridLayout_3->setMargin(11);
00069 gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
00070 GroupBox5 = new QGroupBox(Gui__Dialog__DlgSettingsDocument);
00071 GroupBox5->setObjectName(QString::fromUtf8("GroupBox5"));
00072 gridLayout = new QGridLayout(GroupBox5);
00073 gridLayout->setSpacing(6);
00074 gridLayout->setMargin(9);
00075 gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
00076 hboxLayout = new QHBoxLayout();
00077 hboxLayout->setSpacing(6);
00078 hboxLayout->setMargin(0);
00079 hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
00080 textLabel1 = new QLabel(GroupBox5);
00081 textLabel1->setObjectName(QString::fromUtf8("textLabel1"));
00082
00083 hboxLayout->addWidget(textLabel1);
00084
00085 prefCompression = new Gui::PrefSpinBox(GroupBox5);
00086 prefCompression->setObjectName(QString::fromUtf8("prefCompression"));
00087 prefCompression->setValue(3);
00088 prefCompression->setProperty("prefEntry", QVariant(QByteArray("CompressionLevel")));
00089 prefCompression->setProperty("prefPath", QVariant(QByteArray("Document")));
00090
00091 hboxLayout->addWidget(prefCompression);
00092
00093
00094 gridLayout->addLayout(hboxLayout, 2, 0, 1, 1);
00095
00096 hboxLayout1 = new QHBoxLayout();
00097 hboxLayout1->setSpacing(6);
00098 hboxLayout1->setMargin(0);
00099 hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
00100 textLabel1_2 = new QLabel(GroupBox5);
00101 textLabel1_2->setObjectName(QString::fromUtf8("textLabel1_2"));
00102
00103 hboxLayout1->addWidget(textLabel1_2);
00104
00105 prefUndoRedoSize = new Gui::PrefSpinBox(GroupBox5);
00106 prefUndoRedoSize->setObjectName(QString::fromUtf8("prefUndoRedoSize"));
00107 prefUndoRedoSize->setValue(20);
00108 prefUndoRedoSize->setProperty("prefEntry", QVariant(QByteArray("MaxUndoSize")));
00109 prefUndoRedoSize->setProperty("prefPath", QVariant(QByteArray("Document")));
00110
00111 hboxLayout1->addWidget(prefUndoRedoSize);
00112
00113
00114 gridLayout->addLayout(hboxLayout1, 5, 0, 1, 1);
00115
00116 prefCheckNewDoc = new Gui::PrefCheckBox(GroupBox5);
00117 prefCheckNewDoc->setObjectName(QString::fromUtf8("prefCheckNewDoc"));
00118 prefCheckNewDoc->setChecked(false);
00119 prefCheckNewDoc->setProperty("prefEntry", QVariant(QByteArray("CreateNewDoc")));
00120 prefCheckNewDoc->setProperty("prefPath", QVariant(QByteArray("Document")));
00121
00122 gridLayout->addWidget(prefCheckNewDoc, 0, 0, 1, 1);
00123
00124 line1 = new QFrame(GroupBox5);
00125 line1->setObjectName(QString::fromUtf8("line1"));
00126 line1->setFrameShape(QFrame::HLine);
00127 line1->setFrameShadow(QFrame::Sunken);
00128 line1->setFrameShape(QFrame::HLine);
00129
00130 gridLayout->addWidget(line1, 1, 0, 1, 1);
00131
00132 line1_2 = new QFrame(GroupBox5);
00133 line1_2->setObjectName(QString::fromUtf8("line1_2"));
00134 line1_2->setFrameShape(QFrame::HLine);
00135 line1_2->setFrameShadow(QFrame::Sunken);
00136 line1_2->setFrameShape(QFrame::HLine);
00137
00138 gridLayout->addWidget(line1_2, 3, 0, 1, 1);
00139
00140 prefUndoRedo = new Gui::PrefCheckBox(GroupBox5);
00141 prefUndoRedo->setObjectName(QString::fromUtf8("prefUndoRedo"));
00142 prefUndoRedo->setChecked(true);
00143 prefUndoRedo->setProperty("prefEntry", QVariant(QByteArray("UsingUndo")));
00144 prefUndoRedo->setProperty("prefPath", QVariant(QByteArray("Document")));
00145
00146 gridLayout->addWidget(prefUndoRedo, 4, 0, 1, 1);
00147
00148
00149 gridLayout_3->addWidget(GroupBox5, 0, 0, 1, 1);
00150
00151 groupBox = new QGroupBox(Gui__Dialog__DlgSettingsDocument);
00152 groupBox->setObjectName(QString::fromUtf8("groupBox"));
00153 gridLayout_2 = new QGridLayout(groupBox);
00154 gridLayout_2->setSpacing(6);
00155 gridLayout_2->setMargin(11);
00156 gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
00157 prefSaveTransaction = new Gui::PrefCheckBox(groupBox);
00158 prefSaveTransaction->setObjectName(QString::fromUtf8("prefSaveTransaction"));
00159 prefSaveTransaction->setEnabled(false);
00160 prefSaveTransaction->setProperty("prefEntry", QVariant(QByteArray("SaveTransactions")));
00161 prefSaveTransaction->setProperty("prefPath", QVariant(QByteArray("Document")));
00162
00163 gridLayout_2->addWidget(prefSaveTransaction, 0, 0, 1, 1);
00164
00165 prefDiscardTransaction = new Gui::PrefCheckBox(groupBox);
00166 prefDiscardTransaction->setObjectName(QString::fromUtf8("prefDiscardTransaction"));
00167 prefDiscardTransaction->setEnabled(false);
00168 prefDiscardTransaction->setProperty("prefEntry", QVariant(QByteArray("TransactionsDiscard")));
00169 prefDiscardTransaction->setProperty("prefPath", QVariant(QByteArray("Document")));
00170
00171 gridLayout_2->addWidget(prefDiscardTransaction, 1, 0, 1, 1);
00172
00173 line1_2_3 = new QFrame(groupBox);
00174 line1_2_3->setObjectName(QString::fromUtf8("line1_2_3"));
00175 line1_2_3->setFrameShape(QFrame::HLine);
00176 line1_2_3->setFrameShadow(QFrame::Sunken);
00177 line1_2_3->setFrameShape(QFrame::HLine);
00178
00179 gridLayout_2->addWidget(line1_2_3, 2, 0, 1, 1);
00180
00181 prefSaveThumbnail = new Gui::PrefCheckBox(groupBox);
00182 prefSaveThumbnail->setObjectName(QString::fromUtf8("prefSaveThumbnail"));
00183 prefSaveThumbnail->setProperty("prefEntry", QVariant(QByteArray("SaveThumbnail")));
00184 prefSaveThumbnail->setProperty("prefPath", QVariant(QByteArray("Document")));
00185
00186 gridLayout_2->addWidget(prefSaveThumbnail, 3, 0, 1, 1);
00187
00188 hboxLayout2 = new QHBoxLayout();
00189 hboxLayout2->setSpacing(6);
00190 hboxLayout2->setMargin(0);
00191 hboxLayout2->setObjectName(QString::fromUtf8("hboxLayout2"));
00192 prefSaveBackupFiles = new Gui::PrefCheckBox(groupBox);
00193 prefSaveBackupFiles->setObjectName(QString::fromUtf8("prefSaveBackupFiles"));
00194 prefSaveBackupFiles->setChecked(true);
00195 prefSaveBackupFiles->setProperty("prefEntry", QVariant(QByteArray("CreateBackupFiles")));
00196 prefSaveBackupFiles->setProperty("prefPath", QVariant(QByteArray("Document")));
00197
00198 hboxLayout2->addWidget(prefSaveBackupFiles);
00199
00200 spacerItem = new QSpacerItem(91, 20, QSizePolicy::Maximum, QSizePolicy::Minimum);
00201
00202 hboxLayout2->addItem(spacerItem);
00203
00204 prefCountBackupFiles = new Gui::PrefSpinBox(groupBox);
00205 prefCountBackupFiles->setObjectName(QString::fromUtf8("prefCountBackupFiles"));
00206 prefCountBackupFiles->setMinimum(1);
00207 prefCountBackupFiles->setProperty("prefEntry", QVariant(QByteArray("CountBackupFiles")));
00208 prefCountBackupFiles->setProperty("prefPath", QVariant(QByteArray("Document")));
00209
00210 hboxLayout2->addWidget(prefCountBackupFiles);
00211
00212
00213 gridLayout_2->addLayout(hboxLayout2, 4, 0, 1, 1);
00214
00215
00216 gridLayout_3->addWidget(groupBox, 1, 0, 1, 1);
00217
00218 groupBox_2 = new QGroupBox(Gui__Dialog__DlgSettingsDocument);
00219 groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
00220 gridLayout1 = new QGridLayout(groupBox_2);
00221 gridLayout1->setSpacing(6);
00222 gridLayout1->setMargin(11);
00223 gridLayout1->setObjectName(QString::fromUtf8("gridLayout1"));
00224 prefDuplicateLabel = new Gui::PrefCheckBox(groupBox_2);
00225 prefDuplicateLabel->setObjectName(QString::fromUtf8("prefDuplicateLabel"));
00226 prefDuplicateLabel->setProperty("prefEntry", QVariant(QByteArray("DuplicateLabels")));
00227 prefDuplicateLabel->setProperty("prefPath", QVariant(QByteArray("Document")));
00228
00229 gridLayout1->addWidget(prefDuplicateLabel, 0, 0, 1, 1);
00230
00231
00232 gridLayout_3->addWidget(groupBox_2, 2, 0, 1, 1);
00233
00234 spacerItem1 = new QSpacerItem(429, 37, QSizePolicy::Minimum, QSizePolicy::Expanding);
00235
00236 gridLayout_3->addItem(spacerItem1, 3, 0, 1, 1);
00237
00238 QWidget::setTabOrder(prefCheckNewDoc, prefCompression);
00239 QWidget::setTabOrder(prefCompression, prefUndoRedo);
00240 QWidget::setTabOrder(prefUndoRedo, prefUndoRedoSize);
00241 QWidget::setTabOrder(prefUndoRedoSize, prefSaveTransaction);
00242 QWidget::setTabOrder(prefSaveTransaction, prefDiscardTransaction);
00243 QWidget::setTabOrder(prefDiscardTransaction, prefSaveThumbnail);
00244
00245 retranslateUi(Gui__Dialog__DlgSettingsDocument);
00246 QObject::connect(prefSaveBackupFiles, SIGNAL(toggled(bool)), prefCountBackupFiles, SLOT(setEnabled(bool)));
00247
00248 QMetaObject::connectSlotsByName(Gui__Dialog__DlgSettingsDocument);
00249 }
00250
00251 void retranslateUi(QWidget *Gui__Dialog__DlgSettingsDocument)
00252 {
00253 Gui__Dialog__DlgSettingsDocument->setWindowTitle(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Document", 0, QApplication::UnicodeUTF8));
00254 GroupBox5->setTitle(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "General", 0, QApplication::UnicodeUTF8));
00255 textLabel1->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Document save compression level\n"
00256 "(0 = none, 9 = highest, 3 = default)", 0, QApplication::UnicodeUTF8));
00257 textLabel1_2->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Maximum Undo/Redo steps", 0, QApplication::UnicodeUTF8));
00258 prefCheckNewDoc->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Create new document at start up", 0, QApplication::UnicodeUTF8));
00259 prefUndoRedo->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Using Undo/Redo on documents", 0, QApplication::UnicodeUTF8));
00260 groupBox->setTitle(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Storage", 0, QApplication::UnicodeUTF8));
00261 prefSaveTransaction->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Saving transactions (Auto-save)", 0, QApplication::UnicodeUTF8));
00262 prefDiscardTransaction->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Discard saved transaction after saving document", 0, QApplication::UnicodeUTF8));
00263 prefSaveThumbnail->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Save thumbnail into project file when saving document", 0, QApplication::UnicodeUTF8));
00264 prefSaveBackupFiles->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Create up to backup files when resaving document", 0, QApplication::UnicodeUTF8));
00265 groupBox_2->setTitle(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Document objects", 0, QApplication::UnicodeUTF8));
00266 prefDuplicateLabel->setText(QApplication::translate("Gui::Dialog::DlgSettingsDocument", "Allow duplicate object labels in one document", 0, QApplication::UnicodeUTF8));
00267 Q_UNUSED(Gui__Dialog__DlgSettingsDocument);
00268 }
00269
00270 };
00271
00272 }
00273 }
00274
00275 namespace Gui {
00276 namespace Dialog {
00277 namespace Ui {
00278 class DlgSettingsDocument: public Ui_DlgSettingsDocument {};
00279 }
00280 }
00281 }
00282
00283 #endif // UI_DLGSETTINGSDOCUMENT_H