Changeset a218bf2cb2 in tspsg for docs/html/mainwindow_8h_source.html
- Timestamp:
- Dec 7, 2009, 5:50:18 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 53f11f0e6c
- Parents:
- 0ac9690913
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
docs/html/mainwindow_8h_source.html
r0ac9690913 ra218bf2cb2 96 96 <a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="tspmodel_8h.html" title="Defines CTSPModel class.">tspmodel.h</a>"</span> 97 97 <a name="l00038"></a>00038 98 <a name="l00043"></a><a class="code" href="class_main_window.html">00043</a> <span class="keyword">class </span><a class="code" href="class_main_window.html" title="Class for handling Main Window UI and logic.">MainWindow</a>: <span class="keyword">public</span> QMainWindow, Ui::<a class="code" href="class_main_window.html" title="Class for handling Main Window UI and logic.">MainWindow</a>98 <a name="l00043"></a><a class="code" href="class_main_window.html">00043</a> <span class="keyword">class </span><a class="code" href="class_main_window.html" title="Class for handling Main Window UI and logic.">MainWindow</a>: <span class="keyword">public</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmainwindow.html">QMainWindow</a>, Ui::<a class="code" href="class_main_window.html" title="Class for handling Main Window UI and logic.">MainWindow</a> 99 99 <a name="l00044"></a>00044 { 100 100 <a name="l00045"></a>00045 Q_OBJECT 101 101 <a name="l00046"></a>00046 102 102 <a name="l00047"></a>00047 <span class="keyword">public</span>: 103 <a name="l00048"></a>00048 <a class="code" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db" title="Class constructor.">MainWindow</a>( QWidget*parent = 0);104 <a name="l00049"></a>00049 <span class="keywordtype">void</span> <a class="code" href="class_main_window.html#a38edb88d43e844aca9d2e762c8706565" title="Handles Main Window close event.">closeEvent</a>(QCloseEvent *);105 <a name="l00050"></a>00050 106 <a name="l00051"></a>00051 <span class=" keyword">private</span> slots:107 <a name="l00052"></a>00052 <span class="comment">// Actions</span>108 <a name="l00053"></a>00053 <span class="keywordtype">void</span> actionFile NewTriggered();109 <a name="l00054"></a>00054 <span class="keywordtype">void</span> actionFile OpenTriggered();110 <a name="l00055"></a>00055 <span class="keywordtype">void</span> actionFileSave Triggered();111 <a name="l00056"></a>00056 <span class="keywordtype">void</span> actionFileSaveAs TaskTriggered();112 <a name="l00057"></a>00057 <span class="keywordtype">void</span> actionFileSaveAsSolutionTriggered();113 <a name="l00058"></a>00058 <span class="preprocessor"> #ifndef QT_NO_PRINTER</span>114 <a name="l00059"></a>00059 <span class="preprocessor"></span> <span class="keywordtype">void</span> actionFilePrintPreviewTriggered();115 <a name="l00060"></a>00060 <span class="keywordtype">void</span> actionFilePrintTriggered();116 <a name="l00061"></a>00061 <span class="preprocessor"> #endif // QT_NO_PRINTER</span>117 <a name="l00062"></a>00062 <span class="preprocessor"></span> <span class="keywordtype">void</span> actionSettingsPreferencesTriggered();118 <a name="l00063"></a>00063 <span class="keywordtype">void</span> actionSettingsLanguageAutodetectTriggered(<span class="keywordtype">bool</span>);119 <a name="l00064"></a>00064 <span class="keywordtype">void</span> groupSettingsLanguageListTriggered(QAction *);120 <a name="l00065"></a>00065 <span class="keywordtype">void</span> actionHelpAboutTriggered();121 <a name="l00066"></a>00066 <span class="comment">// Buttons</span>122 <a name="l00067"></a>00067 <span class="keywordtype">void</span> button BackToTaskClicked();123 <a name="l00068"></a>00068 <span class="keywordtype">void</span> button RandomClicked();124 <a name="l00069"></a>00069 <span class="keywordtype">void</span> buttonSolveClicked();125 <a name="l00070"></a>00070 126 <a name="l00071"></a>00071 <span class="keywordtype">void</span> dataChanged( );127 <a name="l00072"></a>00072 <span class="keywordtype">void</span> dataChanged(<span class="keyword">const</span> QModelIndex &, <span class="keyword">const</span> QModelIndex &);128 <a name="l00073"></a>00073 <span class="keywordtype">void</span> numCitiesChanged(<span class="keywordtype">int</span>);129 <a name="l00074"></a>00074 <span class="preprocessor"> #ifndef QT_NO_PRINTER</span>130 <a name="l00075"></a>00075 <span class="preprocessor"> </span> <span class="keywordtype">void</span> printPreview(QPrinter *printer);131 <a name="l00076"></a>00076 <span class="preprocessor"> #endif // QT_NO_PRINTER</span>132 <a name="l00077"></a>00077 <span class="preprocessor"></span> <span class="keywordtype">void</span> spinCitiesValueChanged(<span class="keywordtype">int</span>);133 <a name="l00078"></a>00078 134 <a name="l00079"></a>00079 <span class="keyword">private</span>:135 <a name="l00080"></a>00080 QString fileName;136 <a name="l00081"></a>00081 QActionGroup *groupSettingsLanguageList;137 <a name="l00082"></a>00082 QStringList output;138 <a name="l00083"></a>00083 <span class="preprocessor"> #ifndef QT_NO_PRINTER</span>139 <a name="l00084"></a>00084 <span class="preprocessor"> </span> QPrinter *printer;140 <a name="l00085"></a>00085 <span class="preprocessor"> #endif // QT_NO_PRINTER</span>141 <a name="l00086"></a>00086 <span class="preprocessor"></span> QSettings *settings;142 <a name="l00087"></a>00087 <a class="code" href="class_c_t_s_p_model.html" title="This class implements table model for manipulating a task.">CTSPModel</a> *tspmodel;143 <a name="l00088"></a>00088 103 <a name="l00048"></a>00048 <a class="code" href="class_main_window.html#a8b244be8b7b7db1b08de2a2acb9409db" title="Class constructor.">MainWindow</a>(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qwidget.html">QWidget</a> *parent = 0); 104 <a name="l00049"></a>00049 105 <a name="l00050"></a>00050 <span class="keyword">private</span> slots: 106 <a name="l00051"></a>00051 <span class="comment">// Actions</span> 107 <a name="l00052"></a>00052 <span class="keywordtype">void</span> actionFileNewTriggered(); 108 <a name="l00053"></a>00053 <span class="keywordtype">void</span> actionFileOpenTriggered(); 109 <a name="l00054"></a>00054 <span class="keywordtype">void</span> actionFileSaveTriggered(); 110 <a name="l00055"></a>00055 <span class="keywordtype">void</span> actionFileSaveAsTaskTriggered(); 111 <a name="l00056"></a>00056 <span class="keywordtype">void</span> actionFileSaveAsSolutionTriggered(); 112 <a name="l00057"></a>00057 <span class="preprocessor">#ifndef QT_NO_PRINTER</span> 113 <a name="l00058"></a>00058 <span class="preprocessor"></span> <span class="keywordtype">void</span> actionFilePrintPreviewTriggered(); 114 <a name="l00059"></a>00059 <span class="keywordtype">void</span> actionFilePrintTriggered(); 115 <a name="l00060"></a>00060 <span class="preprocessor">#endif // QT_NO_PRINTER</span> 116 <a name="l00061"></a>00061 <span class="preprocessor"></span> <span class="keywordtype">void</span> actionSettingsPreferencesTriggered(); 117 <a name="l00062"></a>00062 <span class="keywordtype">void</span> actionSettingsLanguageAutodetectTriggered(<span class="keywordtype">bool</span> checked); 118 <a name="l00063"></a>00063 <span class="keywordtype">void</span> groupSettingsLanguageListTriggered(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qaction.html">QAction</a> *action); 119 <a name="l00064"></a>00064 <span class="keywordtype">void</span> actionHelpAboutTriggered(); 120 <a name="l00065"></a>00065 <span class="comment">// Buttons</span> 121 <a name="l00066"></a>00066 <span class="keywordtype">void</span> buttonBackToTaskClicked(); 122 <a name="l00067"></a>00067 <span class="keywordtype">void</span> buttonRandomClicked(); 123 <a name="l00068"></a>00068 <span class="keywordtype">void</span> buttonSolveClicked(); 124 <a name="l00069"></a>00069 125 <a name="l00070"></a>00070 <span class="keywordtype">void</span> dataChanged(); 126 <a name="l00071"></a>00071 <span class="keywordtype">void</span> dataChanged(<span class="keyword">const</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmodelindex.html">QModelIndex</a> &tl, <span class="keyword">const</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qmodelindex.html">QModelIndex</a> &br); 127 <a name="l00072"></a>00072 <span class="keywordtype">void</span> numCitiesChanged(<span class="keywordtype">int</span> nCities); 128 <a name="l00073"></a>00073 <span class="preprocessor">#ifndef QT_NO_PRINTER</span> 129 <a name="l00074"></a>00074 <span class="preprocessor"></span> <span class="keywordtype">void</span> printPreview(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qprinter.html">QPrinter</a> *printer); 130 <a name="l00075"></a>00075 <span class="preprocessor">#endif // QT_NO_PRINTER</span> 131 <a name="l00076"></a>00076 <span class="preprocessor"></span> <span class="keywordtype">void</span> spinCitiesValueChanged(<span class="keywordtype">int</span> nCities); 132 <a name="l00077"></a>00077 133 <a name="l00078"></a>00078 <span class="keyword">private</span>: 134 <a name="l00079"></a>00079 <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstring.html">QString</a> fileName; 135 <a name="l00080"></a>00080 <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qactiongroup.html">QActionGroup</a> *groupSettingsLanguageList; 136 <a name="l00081"></a>00081 <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstringlist.html">QStringList</a> output; 137 <a name="l00082"></a>00082 <span class="preprocessor">#ifndef QT_NO_PRINTER</span> 138 <a name="l00083"></a>00083 <span class="preprocessor"></span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qprinter.html">QPrinter</a> *printer; 139 <a name="l00084"></a>00084 <span class="preprocessor">#endif // QT_NO_PRINTER</span> 140 <a name="l00085"></a>00085 <span class="preprocessor"></span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qsettings.html">QSettings</a> *settings; 141 <a name="l00086"></a>00086 <a class="code" href="class_c_t_s_p_model.html" title="This class implements table model for manipulating a task.">CTSPModel</a> *tspmodel; 142 <a name="l00087"></a>00087 143 <a name="l00088"></a>00088 <span class="keywordtype">void</span> closeEvent(<a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qcloseevent.html">QCloseEvent</a> *ev); 144 144 <a name="l00089"></a>00089 <span class="keywordtype">void</span> enableSolutionActions(<span class="keywordtype">bool</span> enable = <span class="keyword">true</span>); 145 145 <a name="l00090"></a>00090 <span class="keywordtype">void</span> initDocStyleSheet(); 146 146 <a name="l00091"></a>00091 <span class="keywordtype">void</span> loadLangList(); 147 <a name="l00092"></a>00092 <span class="keywordtype">bool</span> loadLanguage( QString lang = <span class="stringliteral">""</span>);147 <a name="l00092"></a>00092 <span class="keywordtype">bool</span> loadLanguage(<span class="keyword">const</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstring.html">QString</a> &lang = <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstring.html">QString</a>()); 148 148 <a name="l00093"></a>00093 <span class="keywordtype">bool</span> maybeSave(); 149 <a name="l00094"></a>00094 <span class="keywordtype">void</span> outputMatrix(< a class="code" href="tspsolver_8h.html#a96b95c574161e5013286210c96c581ba" title="A matrix of city-to-city travel costs.">tMatrix</a>, QStringList &, <span class="keywordtype">int</span> nRow = -1, <span class="keywordtype">int</span> nCol = -1);149 <a name="l00094"></a>00094 <span class="keywordtype">void</span> outputMatrix(<span class="keyword">const</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qlist.html">tMatrix</a> &matrix, <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstringlist.html">QStringList</a> &output, <span class="keywordtype">int</span> nRow = -1, <span class="keywordtype">int</span> nCol = -1); 150 150 <a name="l00095"></a>00095 <span class="keywordtype">bool</span> saveTask(); 151 <a name="l00096"></a>00096 <span class="keywordtype">void</span> setFileName( QStringfileName = trUtf8(<span class="stringliteral">"Untitled"</span>) + <span class="stringliteral">".tspt"</span>);151 <a name="l00096"></a>00096 <span class="keywordtype">void</span> setFileName(<span class="keyword">const</span> <a class="codeRef" doxygen="qt-4.6.tag:http://doc.trolltech.com/4.6/" href="http://doc.trolltech.com/4.6/qstring.html">QString</a> &fileName = trUtf8(<span class="stringliteral">"Untitled"</span>) + <span class="stringliteral">".tspt"</span>); 152 152 <a name="l00097"></a>00097 }; 153 153 <a name="l00098"></a>00098 … … 168 168 </div> 169 169 170 <hr size="1"/><address style="text-align: right;"><small>Generated on Sat Oct 24 16:33:192009 for TSPSG: TSP Solver and Generator by 170 <hr size="1"/><address style="text-align: right;"><small>Generated on Mon Dec 7 18:11:34 2009 for TSPSG: TSP Solver and Generator by 171 171 <a href="http://www.doxygen.org/index.html"> 172 172 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
Note: See TracChangeset
for help on using the changeset viewer.