- Timestamp:
- Jun 15, 2009, 5:10:25 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 5 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 *. vcproj*1 *.idb 2 2 *.ncb 3 *.pdb 3 4 *.sln 4 5 *.suo 5 *.idb 6 *.pdb 7 ui_* 6 *.vcproj* 7 Makefile* 8 Win32 9 Windows Mobile* 10 debug 8 11 moc_* 9 12 qrc_* 10 tspsg11 Makefile*12 debug13 13 release 14 ui_*
-
- Property svn:ignore
-
trunk/resources
-
Property
svn:ignore
set to
*.aps
-
Property
svn:ignore
set to
-
trunk/src/main.cpp
r9 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 46 46 return app.exec(); 47 47 } 48 -
trunk/src/mainwindow.cpp
r15 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 23 23 24 24 #include <QtGui> 25 #ifndef Q_OS_WINCE 26 #include <QPrintDialog> 27 #endif // Q_OS_WINCE 25 28 #include "mainwindow.h" 26 29 … … 32 35 setupUi(this); 33 36 connect(actionSettingsSettings,SIGNAL(triggered()),this,SLOT(ChangeSettings())); 37 #ifndef Q_OS_WINCE 38 connect(actionFilePrintSetup,SIGNAL(triggered()),this,SLOT(PrintSetup())); 39 #endif // Q_OS_WINCE 34 40 connect(buttonSolve,SIGNAL(clicked()),this,SLOT(Solve())); 35 41 connect(buttonRandom,SIGNAL(clicked()),this,SLOT(Random())); 36 42 connect(spinCities,SIGNAL(valueChanged(int)),this,SLOT(CitiesNumberChanged(int))); 43 QRect rect = geometry(); 44 #ifdef Q_OS_WINCE 45 // HACK: Fix for all tabWidget elements becoming "unclickable" if making it central widget. 46 rect.setSize(QApplication::desktop()->availableGeometry().size()); 47 rect.setHeight(rect.height() - (QApplication::desktop()->screenGeometry().height() - QApplication::desktop()->availableGeometry().height())); 48 tabWidget->resize(rect.width(),rect.height() - toolBar->size().height()); 49 #else 37 50 // Centering MainWindow 38 51 // TODO: Loading of saved window state 39 QRect rect = geometry();40 rect.moveCenter(QApplication::desktop()->screenGeometry(QApplication::desktop()->primaryScreen()).center()); 52 rect.moveCenter(QApplication::desktop()->availableGeometry().center()); 53 #endif // Q_OS_WINCE 41 54 setGeometry(rect); 42 55 qsrand(QDateTime().currentDateTime().toTime_t()); … … 63 76 } 64 77 } 78 79 #ifndef Q_OS_WINCE 80 void MainWindow::PrintSetup() 81 { 82 QPrintDialog pd; 83 pd.exec(); 84 } 85 #endif // Q_OS_WINCE 65 86 66 87 void MainWindow::Random() … … 93 114 // tabWidget->setCurrentIndex(1); 94 115 } 95 -
trunk/src/mainwindow.h
r15 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 26 26 27 27 #include <QMainWindow> 28 #include "ui_mainwindow.h" 28 #ifdef Q_OS_WINCE 29 #include "ui_mainwindow.ce.h" 30 #else 31 #include "ui_mainwindow.h" 32 #endif // Q_OS_WINCE 29 33 #include "settingsdialog.h" 30 34 #include "tspsolver.h" … … 38 42 private slots: 39 43 void ChangeSettings(); 44 #ifndef Q_OS_WINCE 45 void PrintSetup(); 46 #endif // Q_OS_WINCE 40 47 void Solve(); 41 48 void Random(); … … 48 55 49 56 #endif // MAINWINDOW_H 50 -
trunk/src/settingsdialog.cpp
r10 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 24 24 #include <QMessageBox> 25 25 #include <QStatusTipEvent> 26 #include <QFontDialog> 26 27 #include "settingsdialog.h" 27 28 … … 33 34 connect(buttonCancel,SIGNAL(clicked()),this,SLOT(reject())); 34 35 connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int))); 36 connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked())); 35 37 // setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::MSWindowsFixedSizeDialogHint); 36 38 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 37 39 layout()->setSizeConstraint(layout()->SetFixedSize); 40 #ifndef Q_OS_WINCE 38 41 // Setting initial text of dialog hint label to own status tip 39 42 // text. … … 43 46 labelHint->setMaximumHeight(labelHint->height()); 44 47 labelHint->setMinimumHeight(labelHint->height()); 48 #endif // Q_OS_WINCE 45 49 } 46 50 51 #ifndef Q_OS_WINCE 47 52 bool SettingsDialog::event(QEvent *ev) 48 53 { … … 60 65 return QDialog::event(ev); 61 66 } 67 #endif // Q_OS_WINCE 62 68 69 void SettingsDialog::buttonFontClicked() 70 { 71 // TODO: Pass current font to dialog and save selected. 72 QFontDialog fd; 73 fd.exec(); 74 } -
trunk/src/settingsdialog.h
r12 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 26 26 27 27 #include <QDialog> 28 #include "ui_settingsdialog.h" 28 #ifdef Q_OS_WINCE 29 #include "ui_settingsdialog.ce.h" 30 #else 31 #include "ui_settingsdialog.h" 32 #endif // Q_OS_WINCE 29 33 30 34 class SettingsDialog: public QDialog, public Ui::SettingsDialog … … 35 39 36 40 private: 41 #ifndef WINCE 37 42 bool event(QEvent *); 43 #endif 38 44 39 45 private slots: 40 46 void spinRandMinValueChanged(int val) { spinRandMax->setMinimum(val + 1); } 47 void buttonFontClicked(); 41 48 }; 42 49 43 50 #endif // SETTINGSDIALOG_H 44 -
trunk/src/tspmodel.cpp
r16 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 45 45 } 46 46 47 QVariant CTSPModel::headerData(int section, Qt::Orientation , int role) const47 QVariant CTSPModel::headerData(int section, Qt::Orientation orientation, int role) const 48 48 { 49 49 if (role == Qt::DisplayRole) 50 return trUtf8("Город %1").arg(section + 1); 50 if (orientation == Qt::Vertical) 51 return trUtf8("Город %1").arg(section + 1); 52 else 53 return trUtf8("%1").arg(section + 1); 51 54 return QVariant(); 52 55 } … … 143 146 emit dataChanged(index(0,0),index(nCities - 1,nCities - 1)); 144 147 } 145 -
trunk/src/tspmodel.h
r15 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 Lёppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 60 60 61 61 #endif // TSPMODEL_H 62 -
trunk/src/tspsolver.cpp
r15 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 L¸ppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 58 58 return step; 59 59 } 60 -
trunk/src/tspsolver.h
r15 r17 1 1 /* 2 2 * TSPSG - TSP Solver and Generator 3 * Copyright (C) 2007 L¸ppa <lacontacts[at]gmail[dot]com>3 * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 4 4 * 5 5 * $Id$ … … 53 53 54 54 #endif // TSPSOLVER_H 55 -
trunk/tspsg.pro
r14 r17 1 1 ###################################################################### 2 # Automatically generated by qmake (2.01a) ?? 30. ??? 22:14:47 2007 2 # 3 # TSPSG - TSP Solver and Generator 4 # Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> 5 # 6 # $Id$ 7 # $URL$ 8 # 9 # This file is part of TSPSG. 10 # 3 11 ###################################################################### 4 12 5 TEMPLATE = app 6 TARGET = 7 DEPENDPATH += . i18n resources src ui 13 win32 { 14 TEMPLATE = vcapp 15 } else { 16 TEMPLATE = app 17 } 18 TARGET = tspsg 19 DEPENDPATH += . 8 20 INCLUDEPATH += . 9 21 10 # Input 11 HEADERS += src/mainwindow.h src/settingsdialog.h src/tspmodel.h src/tspsolver.h 12 FORMS += ui/mainwindow.ui ui/settingsdialog.ui 13 SOURCES += src/main.cpp \ 14 src/mainwindow.cpp \ 15 src/settingsdialog.cpp \ 16 src/tspmodel.cpp \ 17 src/tspsolver.cpp 18 RESOURCES += resources/tspsg.qrc 19 TRANSLATIONS += i18n/English.ts i18n/Ukrainian.ts 22 #Include file(s) 23 include(tspsg.pri) 24 25 #Windows resource file 26 win32:RC_FILE = resources/tspsg.rc -
trunk/ui/mainwindow.ui
r16 r17 1 <ui version="4.0" > 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 2 3 <class>MainWindow</class> 3 <widget class="QMainWindow" name="MainWindow" 4 <property name="geometry" 4 <widget class="QMainWindow" name="MainWindow"> 5 <property name="geometry"> 5 6 <rect> 6 7 <x>0</x> … … 10 11 </rect> 11 12 </property> 12 <property name="windowTitle" 13 <property name="windowTitle"> 13 14 <string>Задача коммивояжера</string> 14 15 </property> 15 <property name="windowIcon" > 16 <iconset resource="../resources/tspsg.qrc" >:/images/Icon.png</iconset> 16 <property name="windowIcon"> 17 <iconset resource="../resources/tspsg.qrc"> 18 <normaloff>:/images/Icon.png</normaloff>:/images/Icon.png</iconset> 17 19 </property> 18 <widget class="QWidget" name="centralwidget" 19 <layout class="QGridLayout" 20 <item row="0" column="0" 21 <widget class="QTabWidget" name="tabWidget" 22 <property name="sizePolicy" 23 <sizepolicy vsizetype="Expanding" hsizetype="Expanding">20 <widget class="QWidget" name="centralwidget"> 21 <layout class="QGridLayout"> 22 <item row="0" column="0"> 23 <widget class="QTabWidget" name="tabWidget"> 24 <property name="sizePolicy"> 25 <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 24 26 <horstretch>0</horstretch> 25 27 <verstretch>0</verstretch> 26 28 </sizepolicy> 27 29 </property> 28 <property name="currentIndex" 30 <property name="currentIndex"> 29 31 <number>0</number> 30 32 </property> 31 <widget class="QWidget" name="tabTask" 32 <attribute name="title" 33 <widget class="QWidget" name="tabTask"> 34 <attribute name="title"> 33 35 <string>Задача</string> 34 36 </attribute> 35 <layout class="QVBoxLayout" 37 <layout class="QVBoxLayout"> 36 38 <item> 37 <layout class="QHBoxLayout" 39 <layout class="QHBoxLayout"> 38 40 <item> 39 41 <spacer> 40 <property name="orientation" 42 <property name="orientation"> 41 43 <enum>Qt::Horizontal</enum> 42 44 </property> 43 <property name="sizeHint" >45 <property name="sizeHint" stdset="0"> 44 46 <size> 45 47 <width>40</width> … … 50 52 </item> 51 53 <item> 52 <widget class="QLabel" name="labelVariant" 53 <property name="text" 54 <widget class="QLabel" name="labelVariant"> 55 <property name="text"> 54 56 <string>&Вариант:</string> 55 57 </property> 56 <property name="buddy" 58 <property name="buddy"> 57 59 <cstring>spinVariant</cstring> 58 60 </property> … … 60 62 </item> 61 63 <item> 62 <widget class="QSpinBox" name="spinVariant" 63 <property name="cursor" 64 <widget class="QSpinBox" name="spinVariant"> 65 <property name="cursor"> 64 66 <cursorShape>PointingHandCursor</cursorShape> 65 67 </property> 66 <property name="statusTip" 68 <property name="statusTip"> 67 69 <string>Номер варианта</string> 68 70 </property> 69 <property name="minimum" 71 <property name="minimum"> 70 72 <number>1</number> 71 73 </property> … … 73 75 </item> 74 76 <item> 75 <widget class="QLabel" name="labelCities" 76 <property name="text" 77 <widget class="QLabel" name="labelCities"> 78 <property name="text"> 77 79 <string>&Городов:</string> 78 80 </property> 79 <property name="buddy" 81 <property name="buddy"> 80 82 <cstring>spinCities</cstring> 81 83 </property> … … 83 85 </item> 84 86 <item> 85 <widget class="QSpinBox" name="spinCities" 86 <property name="cursor" 87 <widget class="QSpinBox" name="spinCities"> 88 <property name="cursor"> 87 89 <cursorShape>PointingHandCursor</cursorShape> 88 90 </property> 89 <property name="statusTip" 91 <property name="statusTip"> 90 92 <string>Количество городов, которые обходит коммивояжер</string> 91 93 </property> 92 <property name="minimum" 94 <property name="minimum"> 93 95 <number>3</number> 94 96 </property> 95 <property name="maximum" 97 <property name="maximum"> 96 98 <number>5</number> 97 99 </property> 98 <property name="value" 100 <property name="value"> 99 101 <number>5</number> 100 102 </property> … … 103 105 <item> 104 106 <spacer> 105 <property name="orientation" 107 <property name="orientation"> 106 108 <enum>Qt::Horizontal</enum> 107 109 </property> 108 <property name="sizeHint" >110 <property name="sizeHint" stdset="0"> 109 111 <size> 110 112 <width>40</width> … … 117 119 </item> 118 120 <item> 119 <widget class="QTableView" name="taskView" 120 <property name="statusTip" 121 <widget class="QTableView" name="taskView"> 122 <property name="statusTip"> 121 123 <string>Стоимости переходов/переездов из города в город</string> 122 124 </property> 123 <property name="selectionMode" 125 <property name="selectionMode"> 124 126 <enum>QAbstractItemView::NoSelection</enum> 125 127 </property> … … 127 129 </item> 128 130 <item> 129 <layout class="QHBoxLayout" 131 <layout class="QHBoxLayout"> 130 132 <item> 131 133 <spacer> 132 <property name="orientation" 134 <property name="orientation"> 133 135 <enum>Qt::Horizontal</enum> 134 136 </property> 135 <property name="sizeHint" >137 <property name="sizeHint" stdset="0"> 136 138 <size> 137 139 <width>40</width> … … 142 144 </item> 143 145 <item> 144 <widget class="QPushButton" name="buttonRandom" 145 <property name="cursor" 146 <widget class="QPushButton" name="buttonRandom"> 147 <property name="cursor"> 146 148 <cursorShape>PointingHandCursor</cursorShape> 147 149 </property> 148 <property name="statusTip" 150 <property name="statusTip"> 149 151 <string>Заполнить таблицу случайными значениями</string> 150 152 </property> 151 <property name="text" 153 <property name="text"> 152 154 <string>Случайно</string> 153 155 </property> … … 155 157 </item> 156 158 <item> 157 <widget class="QPushButton" name="buttonSolve" 158 <property name="cursor" 159 <widget class="QPushButton" name="buttonSolve"> 160 <property name="cursor"> 159 161 <cursorShape>PointingHandCursor</cursorShape> 160 162 </property> 161 <property name="statusTip" 163 <property name="statusTip"> 162 164 <string>Решить текущую задачу</string> 163 165 </property> 164 <property name="text" 166 <property name="text"> 165 167 <string>Решить</string> 166 168 </property> 167 <property name="icon" > 168 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OK.png</iconset> 169 <property name="icon"> 170 <iconset resource="../resources/tspsg.qrc"> 171 <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset> 169 172 </property> 170 173 </widget> … … 174 177 </layout> 175 178 </widget> 176 <widget class="QWidget" name="tabSolution" 177 <attribute name="title" 179 <widget class="QWidget" name="tabSolution"> 180 <attribute name="title"> 178 181 <string>Решение</string> 179 182 </attribute> 180 <layout class="QVBoxLayout" 183 <layout class="QVBoxLayout"> 181 184 <item> 182 <layout class="QHBoxLayout" 183 <property name="spacing" 185 <layout class="QHBoxLayout"> 186 <property name="spacing"> 184 187 <number>0</number> 185 188 </property> 186 189 <item> 187 <widget class="QTextEdit" name="textEdit" 188 <property name="sizePolicy" 189 <sizepolicy vsizetype="Expanding" hsizetype="Fixed">190 <widget class="QTextEdit" name="textEdit"> 191 <property name="sizePolicy"> 192 <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> 190 193 <horstretch>0</horstretch> 191 194 <verstretch>0</verstretch> 192 195 </sizepolicy> 193 196 </property> 194 <property name="statusTip" 197 <property name="statusTip"> 195 198 <string>Ход решения</string> 196 199 </property> 197 <property name="readOnly" 200 <property name="readOnly"> 198 201 <bool>true</bool> 199 202 </property> … … 201 204 </item> 202 205 <item> 203 <widget class="QGraphicsView" name="graphicsView" 204 <property name="statusTip" 206 <widget class="QGraphicsView" name="graphicsView"> 207 <property name="statusTip"> 205 208 <string>Граф решения</string> 206 209 </property> … … 215 218 </layout> 216 219 </widget> 217 <widget class="QMenuBar" name="menubar" 218 <property name="geometry" 220 <widget class="QMenuBar" name="menubar"> 221 <property name="geometry"> 219 222 <rect> 220 223 <x>0</x> 221 224 <y>0</y> 222 225 <width>640</width> 223 <height>2 1</height>226 <height>22</height> 224 227 </rect> 225 228 </property> 226 <widget class="QMenu" name="menuFile" > 227 <property name="windowIcon" > 228 <iconset/> 229 <widget class="QMenu" name="menuFile"> 230 <property name="windowIcon"> 231 <iconset> 232 <normaloff/> 233 </iconset> 229 234 </property> 230 <property name="title" 235 <property name="title"> 231 236 <string>&Файл</string> 232 237 </property> 233 <widget class="QMenu" name="menuFileSave" 234 <property name="statusTip" 238 <widget class="QMenu" name="menuFileSave"> 239 <property name="statusTip"> 235 240 <string/> 236 241 </property> 237 <property name="title" 242 <property name="title"> 238 243 <string>Со&хранить</string> 239 244 </property> 240 <property name="icon" > 241 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Save.png</iconset> 245 <property name="icon"> 246 <iconset resource="../resources/tspsg.qrc"> 247 <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset> 242 248 </property> 243 <addaction name="actionFileSaveTask" 244 <addaction name="separator" 245 <addaction name="actionFileSaveResultAll" 246 <addaction name="actionFileSaveResultMatrices" 247 <addaction name="actionFileSaveResultGraph" 249 <addaction name="actionFileSaveTask"/> 250 <addaction name="separator"/> 251 <addaction name="actionFileSaveResultAll"/> 252 <addaction name="actionFileSaveResultMatrices"/> 253 <addaction name="actionFileSaveResultGraph"/> 248 254 </widget> 249 <addaction name="actionFileNew" 250 <addaction name="actionFileOpen" 251 <addaction name="menuFileSave" 252 <addaction name="separator" 253 <addaction name="actionFilePrintSetup" 254 <addaction name="actionFilePrint" 255 <addaction name="separator" 256 <addaction name="actionFileExit" 255 <addaction name="actionFileNew"/> 256 <addaction name="actionFileOpen"/> 257 <addaction name="menuFileSave"/> 258 <addaction name="separator"/> 259 <addaction name="actionFilePrintSetup"/> 260 <addaction name="actionFilePrint"/> 261 <addaction name="separator"/> 262 <addaction name="actionFileExit"/> 257 263 </widget> 258 <widget class="QMenu" name="menuSettings" 259 <property name="title" 264 <widget class="QMenu" name="menuSettings"> 265 <property name="title"> 260 266 <string>&Настройки</string> 261 267 </property> 262 <addaction name="actionSettingsSettings" 268 <addaction name="actionSettingsSettings"/> 263 269 </widget> 264 <widget class="QMenu" name="menuHelp" 265 <property name="title" 270 <widget class="QMenu" name="menuHelp"> 271 <property name="title"> 266 272 <string>&Помощь</string> 267 273 </property> 268 <addaction name="actionHelpContents" 269 <addaction name="actionHelpContextual" 270 <addaction name="separator" 271 <addaction name="actionHelpAbout" 274 <addaction name="actionHelpContents"/> 275 <addaction name="actionHelpContextual"/> 276 <addaction name="separator"/> 277 <addaction name="actionHelpAbout"/> 272 278 </widget> 273 <addaction name="menuFile" 274 <addaction name="menuSettings" 275 <addaction name="menuHelp" 279 <addaction name="menuFile"/> 280 <addaction name="menuSettings"/> 281 <addaction name="menuHelp"/> 276 282 </widget> 277 <widget class="QStatusBar" name="statusbar" 278 <widget class="QToolBar" name="toolBar" 279 <property name="cursor" 283 <widget class="QStatusBar" name="statusbar"/> 284 <widget class="QToolBar" name="toolBar"> 285 <property name="cursor"> 280 286 <cursorShape>ArrowCursor</cursorShape> 281 287 </property> 282 <property name="iconSize" 288 <property name="iconSize"> 283 289 <size> 284 290 <width>17</width> … … 286 292 </size> 287 293 </property> 288 <attribute name="toolBarArea" 294 <attribute name="toolBarArea"> 289 295 <enum>TopToolBarArea</enum> 290 296 </attribute> 291 <attribute name="toolBarBreak" 297 <attribute name="toolBarBreak"> 292 298 <bool>false</bool> 293 299 </attribute> 294 <addaction name="actionFileNew" 295 <addaction name="actionFileOpen" 296 <addaction name="actionFileSaveTask" 297 <addaction name="separator" 298 <addaction name="actionFilePrint" 299 <addaction name="actionSettingsSettings" 300 <addaction name="separator" 301 <addaction name="actionFileExit" 300 <addaction name="actionFileNew"/> 301 <addaction name="actionFileOpen"/> 302 <addaction name="actionFileSaveTask"/> 303 <addaction name="separator"/> 304 <addaction name="actionFilePrint"/> 305 <addaction name="actionSettingsSettings"/> 306 <addaction name="separator"/> 307 <addaction name="actionFileExit"/> 302 308 </widget> 303 <action name="actionFilePrintSetup" > 304 <property name="icon" > 305 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/PrintSetup.png</iconset> 306 </property> 307 <property name="text" > 309 <action name="actionFilePrintSetup"> 310 <property name="icon"> 311 <iconset resource="../resources/tspsg.qrc"> 312 <normaloff>:/images/buttons/buttons/PrintSetup.png</normaloff>:/images/buttons/buttons/PrintSetup.png</iconset> 313 </property> 314 <property name="text"> 308 315 <string>&Настройка печати</string> 309 316 </property> 310 <property name="statusTip" 317 <property name="statusTip"> 311 318 <string>Настроить принтер для печати</string> 312 319 </property> 313 320 </action> 314 <action name="actionFilePrint" 315 <property name="enabled" 321 <action name="actionFilePrint"> 322 <property name="enabled"> 316 323 <bool>false</bool> 317 324 </property> 318 <property name="icon" > 319 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Print.png</iconset> 320 </property> 321 <property name="text" > 325 <property name="icon"> 326 <iconset resource="../resources/tspsg.qrc"> 327 <normaloff>:/images/buttons/buttons/Print.png</normaloff>:/images/buttons/buttons/Print.png</iconset> 328 </property> 329 <property name="text"> 322 330 <string>&Печать...</string> 323 331 </property> 324 <property name="statusTip" 332 <property name="statusTip"> 325 333 <string>Распечатать результаты решения</string> 326 334 </property> 327 <property name="shortcut" 335 <property name="shortcut"> 328 336 <string>Ctrl+P</string> 329 337 </property> 330 338 </action> 331 <action name="actionFileSaveResultMatrices" 332 <property name="enabled" 339 <action name="actionFileSaveResultMatrices"> 340 <property name="enabled"> 333 341 <bool>false</bool> 334 342 </property> 335 <property name="text" 343 <property name="text"> 336 344 <string>&Ход решения</string> 337 345 </property> 338 <property name="statusTip" 346 <property name="statusTip"> 339 347 <string>Сохранить только хоод решения</string> 340 348 </property> 341 349 </action> 342 <action name="actionFileSaveResultGraph" 343 <property name="enabled" 350 <action name="actionFileSaveResultGraph"> 351 <property name="enabled"> 344 352 <bool>false</bool> 345 353 </property> 346 <property name="text" 354 <property name="text"> 347 355 <string>&Граф решения</string> 348 356 </property> 349 <property name="statusTip" 357 <property name="statusTip"> 350 358 <string>Сохранить только граф решения</string> 351 359 </property> 352 360 </action> 353 <action name="actionFileSaveResultAll" 354 <property name="enabled" 361 <action name="actionFileSaveResultAll"> 362 <property name="enabled"> 355 363 <bool>false</bool> 356 364 </property> 357 <property name="text" 365 <property name="text"> 358 366 <string>&Решение</string> 359 367 </property> 360 <property name="statusTip" 368 <property name="statusTip"> 361 369 <string>Сохранить ход и граф решения</string> 362 370 </property> 363 <property name="shortcut" 371 <property name="shortcut"> 364 372 <string>Ctrl+S</string> 365 373 </property> 366 374 </action> 367 <action name="actionFileNew" > 368 <property name="icon" > 369 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Document.png</iconset> 370 </property> 371 <property name="text" > 375 <action name="actionFileNew"> 376 <property name="icon"> 377 <iconset resource="../resources/tspsg.qrc"> 378 <normaloff>:/images/buttons/buttons/Document.png</normaloff>:/images/buttons/buttons/Document.png</iconset> 379 </property> 380 <property name="text"> 372 381 <string>&Создать</string> 373 382 </property> 374 <property name="statusTip" 383 <property name="statusTip"> 375 384 <string>Создать новую задачу</string> 376 385 </property> 377 <property name="shortcut" 386 <property name="shortcut"> 378 387 <string>Ctrl+N</string> 379 388 </property> 380 389 </action> 381 <action name="actionFileOpen" > 382 <property name="icon" > 383 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OpenFolder.png</iconset> 384 </property> 385 <property name="text" > 390 <action name="actionFileOpen"> 391 <property name="icon"> 392 <iconset resource="../resources/tspsg.qrc"> 393 <normaloff>:/images/buttons/buttons/OpenFolder.png</normaloff>:/images/buttons/buttons/OpenFolder.png</iconset> 394 </property> 395 <property name="text"> 386 396 <string>&Открыть</string> 387 397 </property> 388 <property name="toolTip" 398 <property name="toolTip"> 389 399 <string>Открыть задачу</string> 390 400 </property> 391 <property name="statusTip" 401 <property name="statusTip"> 392 402 <string>Открыть сохраненное условие задачи</string> 393 403 </property> 394 <property name="shortcut" 404 <property name="shortcut"> 395 405 <string>Ctrl+O</string> 396 406 </property> 397 407 </action> 398 <action name="actionSettingsSettings" > 399 <property name="icon" > 400 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Properties.png</iconset> 401 </property> 402 <property name="text" > 408 <action name="actionSettingsSettings"> 409 <property name="icon"> 410 <iconset resource="../resources/tspsg.qrc"> 411 <normaloff>:/images/buttons/buttons/Properties.png</normaloff>:/images/buttons/buttons/Properties.png</iconset> 412 </property> 413 <property name="text"> 403 414 <string>&Параметры</string> 404 415 </property> 405 <property name="statusTip" 416 <property name="statusTip"> 406 417 <string>Настройка параметров программмы</string> 407 418 </property> 408 419 </action> 409 <action name="actionHelpContents" > 410 <property name="icon" > 411 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/book_open.png</iconset> 412 </property> 413 <property name="text" > 420 <action name="actionHelpContents"> 421 <property name="icon"> 422 <iconset resource="../resources/tspsg.qrc"> 423 <normaloff>:/images/buttons/buttons/book_open.png</normaloff>:/images/buttons/buttons/book_open.png</iconset> 424 </property> 425 <property name="text"> 414 426 <string>&Содежание</string> 415 427 </property> 416 <property name="statusTip" 428 <property name="statusTip"> 417 429 <string>Вызвать справку по программе</string> 418 430 </property> 419 431 </action> 420 <action name="actionHelpContextual" > 421 <property name="icon" > 422 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Help.png</iconset> 423 </property> 424 <property name="text" > 432 <action name="actionHelpContextual"> 433 <property name="icon"> 434 <iconset resource="../resources/tspsg.qrc"> 435 <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset> 436 </property> 437 <property name="text"> 425 438 <string>&Контекстная справка</string> 426 439 </property> 427 <property name="statusTip" 440 <property name="statusTip"> 428 441 <string>Вызвать контекстную справку</string> 429 442 </property> 430 443 </action> 431 <action name="actionHelpAbout" > 432 <property name="icon" > 433 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/infoBubble.png</iconset> 434 </property> 435 <property name="text" > 444 <action name="actionHelpAbout"> 445 <property name="icon"> 446 <iconset resource="../resources/tspsg.qrc"> 447 <normaloff>:/images/buttons/buttons/infoBubble.png</normaloff>:/images/buttons/buttons/infoBubble.png</iconset> 448 </property> 449 <property name="text"> 436 450 <string>&Про...</string> 437 451 </property> 438 <property name="statusTip" 452 <property name="statusTip"> 439 453 <string>Получить информацию о программе</string> 440 454 </property> 441 455 </action> 442 <action name="actionFileExit" > 443 <property name="icon" > 444 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/NoAction.png</iconset> 445 </property> 446 <property name="text" > 456 <action name="actionFileExit"> 457 <property name="icon"> 458 <iconset resource="../resources/tspsg.qrc"> 459 <normaloff>:/images/buttons/buttons/NoAction.png</normaloff>:/images/buttons/buttons/NoAction.png</iconset> 460 </property> 461 <property name="text"> 447 462 <string>В&ыход</string> 448 463 </property> 449 <property name="statusTip" 464 <property name="statusTip"> 450 465 <string>Выйти из программы</string> 451 466 </property> 452 467 </action> 453 <action name="actionFileSaveTask" > 454 <property name="icon" > 455 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Save.png</iconset> 456 </property> 457 <property name="text" > 468 <action name="actionFileSaveTask"> 469 <property name="icon"> 470 <iconset resource="../resources/tspsg.qrc"> 471 <normaloff>:/images/buttons/buttons/Save.png</normaloff>:/images/buttons/buttons/Save.png</iconset> 472 </property> 473 <property name="text"> 458 474 <string>&Задачу</string> 459 475 </property> 460 <property name="iconText" 476 <property name="iconText"> 461 477 <string>Сохранить</string> 462 478 </property> 463 <property name="toolTip" 479 <property name="toolTip"> 464 480 <string>Сохранить задачу</string> 465 481 </property> 466 <property name="statusTip" 482 <property name="statusTip"> 467 483 <string>Сохранить условие задачи в файл</string> 468 484 </property> 469 <property name="shortcut" 485 <property name="shortcut"> 470 486 <string>Ctrl+S</string> 471 487 </property> … … 473 489 </widget> 474 490 <resources> 475 <include location="../resources/tspsg.qrc" 491 <include location="../resources/tspsg.qrc"/> 476 492 </resources> 477 493 <connections> … … 482 498 <slot>close()</slot> 483 499 <hints> 484 <hint type="sourcelabel" 500 <hint type="sourcelabel"> 485 501 <x>-1</x> 486 502 <y>-1</y> 487 503 </hint> 488 <hint type="destinationlabel" 504 <hint type="destinationlabel"> 489 505 <x>294</x> 490 506 <y>229</y> -
trunk/ui/settingsdialog.ui
r10 r17 1 <ui version="4.0" > 1 <?xml version="1.0" encoding="UTF-8"?> 2 <ui version="4.0"> 2 3 <class>SettingsDialog</class> 3 <widget class="QWidget" name="SettingsDialog" 4 <property name="geometry" 4 <widget class="QWidget" name="SettingsDialog"> 5 <property name="geometry"> 5 6 <rect> 6 7 <x>0</x> … … 10 11 </rect> 11 12 </property> 12 <property name="windowTitle" 13 <property name="windowTitle"> 13 14 <string>Параметры</string> 14 15 </property> 15 <property name="windowIcon" > 16 <iconset resource="../resources/tspsg.qrc" >:/images/Settings.png</iconset> 16 <property name="windowIcon"> 17 <iconset resource="../resources/tspsg.qrc"> 18 <normaloff>:/images/Settings.png</normaloff>:/images/Settings.png</iconset> 17 19 </property> 18 <layout class="QVBoxLayout" 19 <property name="spacing" 20 <layout class="QVBoxLayout"> 21 <property name="spacing"> 20 22 <number>0</number> 21 23 </property> 22 <property name="leftMargin" > 23 <number>0</number> 24 </property> 25 <property name="topMargin" > 26 <number>0</number> 27 </property> 28 <property name="rightMargin" > 29 <number>0</number> 30 </property> 31 <property name="bottomMargin" > 24 <property name="margin"> 32 25 <number>0</number> 33 26 </property> 34 27 <item> 35 <layout class="QHBoxLayout" 36 <property name="spacing" 28 <layout class="QHBoxLayout"> 29 <property name="spacing"> 37 30 <number>0</number> 38 31 </property> 39 32 <item> 40 <widget class="QLabel" name="imageSide" 41 <property name="minimumSize" 33 <widget class="QLabel" name="imageSide"> 34 <property name="minimumSize"> 42 35 <size> 43 36 <width>130</width> … … 45 38 </size> 46 39 </property> 47 <property name="styleSheet" 40 <property name="styleSheet"> 48 41 <string>background-color: #0080C0</string> 49 42 </property> 50 <property name="frameShape" 43 <property name="frameShape"> 51 44 <enum>QFrame::StyledPanel</enum> 52 45 </property> 53 <property name="lineWidth" 46 <property name="lineWidth"> 54 47 <number>0</number> 55 48 </property> 56 <property name="text" 49 <property name="text"> 57 50 <string/> 58 51 </property> 59 <property name="pixmap" 60 <pixmap resource="../resources/tspsg.qrc" 61 </property> 62 <property name="alignment" 52 <property name="pixmap"> 53 <pixmap resource="../resources/tspsg.qrc">:/images/Settings.png</pixmap> 54 </property> 55 <property name="alignment"> 63 56 <set>Qt::AlignCenter</set> 64 57 </property> … … 66 59 </item> 67 60 <item> 68 <widget class="Line" name="lineVertical" 69 <property name="frameShadow" 61 <widget class="Line" name="lineVertical"> 62 <property name="frameShadow"> 70 63 <enum>QFrame::Plain</enum> 71 64 </property> 72 <property name="lineWidth" 65 <property name="lineWidth"> 73 66 <number>2</number> 74 67 </property> 75 <property name="orientation" 68 <property name="orientation"> 76 69 <enum>Qt::Vertical</enum> 77 70 </property> … … 79 72 </item> 80 73 <item> 81 <widget class="QWidget" na tive="1" name="background">82 <property name="palette" 74 <widget class="QWidget" name="background" native="true"> 75 <property name="palette"> 83 76 <palette> 84 77 <active> 85 <colorrole role="Base" 86 <brush brushstyle="SolidPattern" 87 <color alpha="255" 88 <red>255</red> 89 <green>255</green> 90 <blue>255</blue> 91 </color> 92 </brush> 93 </colorrole> 94 <colorrole role="Window" 95 <brush brushstyle="SolidPattern" 96 <color alpha="255" 78 <colorrole role="Base"> 79 <brush brushstyle="SolidPattern"> 80 <color alpha="255"> 81 <red>255</red> 82 <green>255</green> 83 <blue>255</blue> 84 </color> 85 </brush> 86 </colorrole> 87 <colorrole role="Window"> 88 <brush brushstyle="SolidPattern"> 89 <color alpha="255"> 97 90 <red>255</red> 98 91 <green>255</green> … … 103 96 </active> 104 97 <inactive> 105 <colorrole role="Base" 106 <brush brushstyle="SolidPattern" 107 <color alpha="255" 108 <red>255</red> 109 <green>255</green> 110 <blue>255</blue> 111 </color> 112 </brush> 113 </colorrole> 114 <colorrole role="Window" 115 <brush brushstyle="SolidPattern" 116 <color alpha="255" 98 <colorrole role="Base"> 99 <brush brushstyle="SolidPattern"> 100 <color alpha="255"> 101 <red>255</red> 102 <green>255</green> 103 <blue>255</blue> 104 </color> 105 </brush> 106 </colorrole> 107 <colorrole role="Window"> 108 <brush brushstyle="SolidPattern"> 109 <color alpha="255"> 117 110 <red>255</red> 118 111 <green>255</green> … … 123 116 </inactive> 124 117 <disabled> 125 <colorrole role="Base" 126 <brush brushstyle="SolidPattern" 127 <color alpha="255" 128 <red>255</red> 129 <green>255</green> 130 <blue>255</blue> 131 </color> 132 </brush> 133 </colorrole> 134 <colorrole role="Window" 135 <brush brushstyle="SolidPattern" 136 <color alpha="255" 118 <colorrole role="Base"> 119 <brush brushstyle="SolidPattern"> 120 <color alpha="255"> 121 <red>255</red> 122 <green>255</green> 123 <blue>255</blue> 124 </color> 125 </brush> 126 </colorrole> 127 <colorrole role="Window"> 128 <brush brushstyle="SolidPattern"> 129 <color alpha="255"> 137 130 <red>255</red> 138 131 <green>255</green> … … 144 137 </palette> 145 138 </property> 146 <property name="autoFillBackground" 139 <property name="autoFillBackground"> 147 140 <bool>true</bool> 148 141 </property> 149 <layout class="QVBoxLayout" 142 <layout class="QVBoxLayout"> 150 143 <item> 151 <layout class="QHBoxLayout" 152 <property name="spacing" 144 <layout class="QHBoxLayout"> 145 <property name="spacing"> 153 146 <number>6</number> 154 147 </property> 155 148 <item> 156 <widget class="QGroupBox" name="groupRandomSettings" 157 <property name="title" 149 <widget class="QGroupBox" name="groupRandomSettings"> 150 <property name="title"> 158 151 <string>Случайные значения:</string> 159 152 </property> 160 <layout class="QVBoxLayout" 153 <layout class="QVBoxLayout"> 161 154 <item> 162 <layout class="QHBoxLayout" 163 <item> 164 <widget class="QLabel" name="labelRandMin" 165 <property name="sizePolicy" 166 <sizepolicy vsizetype="Preferred" hsizetype="Expanding">155 <layout class="QHBoxLayout"> 156 <item> 157 <widget class="QLabel" name="labelRandMin"> 158 <property name="sizePolicy"> 159 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> 167 160 <horstretch>0</horstretch> 168 161 <verstretch>0</verstretch> 169 162 </sizepolicy> 170 163 </property> 171 <property name="text" 164 <property name="text"> 172 165 <string>Ми&нимум:</string> 173 166 </property> 174 <property name="buddy" 167 <property name="buddy"> 175 168 <cstring>spinRandMin</cstring> 176 169 </property> … … 178 171 </item> 179 172 <item> 180 <widget class="QSpinBox" name="spinRandMin" 181 <property name="cursor" 173 <widget class="QSpinBox" name="spinRandMin"> 174 <property name="cursor"> 182 175 <cursorShape>PointingHandCursor</cursorShape> 183 176 </property> 184 <property name="statusTip" 177 <property name="statusTip"> 185 178 <string>Нижняя граница для генерации случайных значений</string> 186 179 </property> 187 <property name="maximum" 180 <property name="maximum"> 188 181 <number>1000</number> 189 182 </property> 190 <property name="value" 183 <property name="value"> 191 184 <number>1</number> 192 185 </property> … … 196 189 </item> 197 190 <item> 198 <layout class="QHBoxLayout" 199 <item> 200 <widget class="QLabel" name="labelRandMax" 201 <property name="sizePolicy" 202 <sizepolicy vsizetype="Preferred" hsizetype="Expanding">191 <layout class="QHBoxLayout"> 192 <item> 193 <widget class="QLabel" name="labelRandMax"> 194 <property name="sizePolicy"> 195 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> 203 196 <horstretch>0</horstretch> 204 197 <verstretch>0</verstretch> 205 198 </sizepolicy> 206 199 </property> 207 <property name="text" 200 <property name="text"> 208 201 <string>&Максимум:</string> 209 202 </property> 210 <property name="buddy" 203 <property name="buddy"> 211 204 <cstring>spinRandMax</cstring> 212 205 </property> … … 214 207 </item> 215 208 <item> 216 <widget class="QSpinBox" name="spinRandMax" 217 <property name="cursor" 209 <widget class="QSpinBox" name="spinRandMax"> 210 <property name="cursor"> 218 211 <cursorShape>PointingHandCursor</cursorShape> 219 212 </property> 220 <property name="statusTip" 213 <property name="statusTip"> 221 214 <string>Верхняя граница для генерации случайных значений</string> 222 215 </property> 223 <property name="minimum" 216 <property name="minimum"> 224 217 <number>1</number> 225 218 </property> 226 <property name="maximum" 219 <property name="maximum"> 227 220 <number>1000</number> 228 221 </property> 229 <property name="value" 222 <property name="value"> 230 223 <number>10</number> 231 224 </property> … … 238 231 </item> 239 232 <item> 240 <widget class="QGroupBox" name="groupPrintSetup" 241 <property name="title" 233 <widget class="QGroupBox" name="groupPrintSetup"> 234 <property name="title"> 242 235 <string>Настройки печати:</string> 243 236 </property> 244 <layout class="QVBoxLayout" 237 <layout class="QVBoxLayout"> 245 238 <item> 246 <layout class="QHBoxLayout" 247 <item> 248 <widget class="QLabel" name="labelLeftMargin" 249 <property name="text" 239 <layout class="QHBoxLayout"> 240 <item> 241 <widget class="QLabel" name="labelLeftMargin"> 242 <property name="text"> 250 243 <string>&Левый отступ:</string> 251 244 </property> 252 <property name="buddy" 245 <property name="buddy"> 253 246 <cstring>spinLeftMargin</cstring> 254 247 </property> … … 256 249 </item> 257 250 <item> 258 <widget class="QSpinBox" name="spinLeftMargin" 259 <property name="cursor" 251 <widget class="QSpinBox" name="spinLeftMargin"> 252 <property name="cursor"> 260 253 <cursorShape>PointingHandCursor</cursorShape> 261 254 </property> 262 <property name="statusTip" 255 <property name="statusTip"> 263 256 <string>Размер отступа от левого края страницы</string> 264 257 </property> 265 <property name="maximum" 258 <property name="maximum"> 266 259 <number>999</number> 267 260 </property> 268 <property name="singleStep" 261 <property name="singleStep"> 269 262 <number>10</number> 270 263 </property> 271 <property name="value" 264 <property name="value"> 272 265 <number>100</number> 273 266 </property> … … 277 270 </item> 278 271 <item> 279 <widget class="QPushButton" name="buttonFont" 280 <property name="cursor" 272 <widget class="QPushButton" name="buttonFont"> 273 <property name="cursor"> 281 274 <cursorShape>PointingHandCursor</cursorShape> 282 275 </property> 283 <property name="statusTip" 276 <property name="statusTip"> 284 277 <string>Задать параметры шрифта, используемого при печати</string> 285 278 </property> 286 <property name="text" 279 <property name="text"> 287 280 <string>&Шрифт...</string> 288 281 </property> 289 <property name="icon" > 290 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Font.png</iconset> 282 <property name="icon"> 283 <iconset resource="../resources/tspsg.qrc"> 284 <normaloff>:/images/buttons/buttons/Font.png</normaloff>:/images/buttons/buttons/Font.png</iconset> 291 285 </property> 292 286 </widget> … … 298 292 </item> 299 293 <item> 300 <widget class="QCheckBox" name="checkBox" 301 <property name="cursor" 294 <widget class="QCheckBox" name="checkBox"> 295 <property name="cursor"> 302 296 <cursorShape>PointingHandCursor</cursorShape> 303 297 </property> 304 <property name="statusTip" 298 <property name="statusTip"> 305 299 <string>Восстанавливать состояние и размеры окна после перезапуска программы</string> 306 300 </property> 307 <property name="text" 301 <property name="text"> 308 302 <string>Сохранять состояние и положение главного окна</string> 309 303 </property> … … 316 310 </item> 317 311 <item> 318 <widget class="Line" name="lineHorizontal" 319 <property name="maximumSize" 312 <widget class="Line" name="lineHorizontal"> 313 <property name="maximumSize"> 320 314 <size> 321 315 <width>16777215</width> … … 323 317 </size> 324 318 </property> 325 <property name="frameShadow" 319 <property name="frameShadow"> 326 320 <enum>QFrame::Plain</enum> 327 321 </property> 328 <property name="lineWidth" 322 <property name="lineWidth"> 329 323 <number>2</number> 330 324 </property> 331 <property name="orientation" 325 <property name="orientation"> 332 326 <enum>Qt::Horizontal</enum> 333 327 </property> … … 335 329 </item> 336 330 <item> 337 <layout class="QHBoxLayout" 338 <property name="spacing" 331 <layout class="QHBoxLayout"> 332 <property name="spacing"> 339 333 <number>6</number> 340 334 </property> 341 <property name=" leftMargin">335 <property name="margin"> 342 336 <number>6</number> 343 337 </property> 344 <property name="topMargin" > 345 <number>6</number> 346 </property> 347 <property name="rightMargin" > 348 <number>6</number> 349 </property> 350 <property name="bottomMargin" > 351 <number>6</number> 352 </property> 353 <item> 354 <widget class="QToolButton" name="toolButton" > 355 <property name="cursor" > 338 <item> 339 <widget class="QToolButton" name="toolButton"> 340 <property name="cursor"> 356 341 <cursorShape>PointingHandCursor</cursorShape> 357 342 </property> 358 <property name="toolTip" 343 <property name="toolTip"> 359 344 <string>Справка</string> 360 345 </property> 361 <property name="statusTip" 346 <property name="statusTip"> 362 347 <string>Получить помощь по настройкам</string> 363 348 </property> 364 <property name="text" 349 <property name="text"> 365 350 <string>Помощь</string> 366 351 </property> 367 <property name="icon" > 368 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Help.png</iconset> 369 </property> 370 <property name="autoRaise" > 352 <property name="icon"> 353 <iconset resource="../resources/tspsg.qrc"> 354 <normaloff>:/images/buttons/buttons/Help.png</normaloff>:/images/buttons/buttons/Help.png</iconset> 355 </property> 356 <property name="autoRaise"> 371 357 <bool>true</bool> 372 358 </property> … … 374 360 </item> 375 361 <item> 376 <widget class="QLabel" name="labelHint" 377 <property name="sizePolicy" 378 <sizepolicy vsizetype="Preferred" hsizetype="Expanding">362 <widget class="QLabel" name="labelHint"> 363 <property name="sizePolicy"> 364 <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> 379 365 <horstretch>0</horstretch> 380 366 <verstretch>0</verstretch> 381 367 </sizepolicy> 382 368 </property> 383 <property name="statusTip" 369 <property name="statusTip"> 384 370 <string>Наведите указатель мыши на элемент диалога, чтоб получить подсказку</string> 385 371 </property> 386 <property name="text" 372 <property name="text"> 387 373 <string/> 388 374 </property> 389 <property name="textFormat" 375 <property name="textFormat"> 390 376 <enum>Qt::PlainText</enum> 391 377 </property> 392 <property name="alignment" 378 <property name="alignment"> 393 379 <set>Qt::AlignJustify|Qt::AlignTop</set> 394 380 </property> 395 <property name="wordWrap" 381 <property name="wordWrap"> 396 382 <bool>true</bool> 397 383 </property> … … 399 385 </item> 400 386 <item> 401 <widget class="QPushButton" name="buttonOK" 402 <property name="cursor" 387 <widget class="QPushButton" name="buttonOK"> 388 <property name="cursor"> 403 389 <cursorShape>PointingHandCursor</cursorShape> 404 390 </property> 405 <property name="statusTip" 391 <property name="statusTip"> 406 392 <string>Сохранить новые параметры</string> 407 393 </property> 408 <property name="text" 394 <property name="text"> 409 395 <string>&OK</string> 410 396 </property> 411 <property name="icon" > 412 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/OK.png</iconset> 413 </property> 414 <property name="default" > 397 <property name="icon"> 398 <iconset resource="../resources/tspsg.qrc"> 399 <normaloff>:/images/buttons/buttons/OK.png</normaloff>:/images/buttons/buttons/OK.png</iconset> 400 </property> 401 <property name="default"> 415 402 <bool>true</bool> 416 403 </property> … … 418 405 </item> 419 406 <item> 420 <widget class="QPushButton" name="buttonCancel" 421 <property name="cursor" 407 <widget class="QPushButton" name="buttonCancel"> 408 <property name="cursor"> 422 409 <cursorShape>PointingHandCursor</cursorShape> 423 410 </property> 424 <property name="statusTip" 411 <property name="statusTip"> 425 412 <string>Закрыть окно без сохранения параметров</string> 426 413 </property> 427 <property name="text" 414 <property name="text"> 428 415 <string>&Отмена</string> 429 416 </property> 430 <property name="icon" > 431 <iconset resource="../resources/tspsg.qrc" >:/images/buttons/buttons/Critical.png</iconset> 417 <property name="icon"> 418 <iconset resource="../resources/tspsg.qrc"> 419 <normaloff>:/images/buttons/buttons/Critical.png</normaloff>:/images/buttons/buttons/Critical.png</iconset> 432 420 </property> 433 421 </widget> … … 438 426 </widget> 439 427 <resources> 440 <include location="../resources/tspsg.qrc" 428 <include location="../resources/tspsg.qrc"/> 441 429 </resources> 442 430 <connections/>
Note: See TracChangeset
for help on using the changeset viewer.