source: tspsg/docs/html/settingsdialog_8h_source.html @ 3b1caa32d0

0.1.3.145-beta1-symbian0.1.4.170-beta2-bb10appveyorimgbotreadme
Last change on this file since 3b1caa32d0 was 8af59c4aa3, checked in by Oleksii Serdiuk, 15 years ago

Adding documentation generated by doxygen.

  • Property mode set to 100644
File size: 8.5 KB
RevLine 
[8af59c4aa3]1<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml">
4<head>
5<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
6<title>TSPSG: TSP Solver and Generator: src/settingsdialog.h Source File</title>
7<link href="tabs.css" rel="stylesheet" type="text/css"/>
8<link href="search/search.css" rel="stylesheet" type="text/css"/>
9<script type="text/javaScript" src="search/search.js"></script>
10<link href="doxygen.css" rel="stylesheet" type="text/css"/>
11</head>
12<body onload='searchBox.OnSelectItem(0);'>
13<!-- Generated by Doxygen 1.6.1 -->
14<script type="text/javascript"><!--
15var searchBox = new SearchBox("searchBox", "search",false,'Search');
16--></script>
17<script type="text/javascript">
18<!--
19function changeDisplayState (e){
20  var num=this.id.replace(/[^[0-9]/g,'');
21  var button=this.firstChild;
22  var sectionDiv=document.getElementById('dynsection'+num);
23  if (sectionDiv.style.display=='none'||sectionDiv.style.display==''){
24    sectionDiv.style.display='block';
25    button.src='open.gif';
26  }else{
27    sectionDiv.style.display='none';
28    button.src='closed.gif';
29  }
30}
31function initDynSections(){
32  var divs=document.getElementsByTagName('div');
33  var sectionCounter=1;
34  for(var i=0;i<divs.length-1;i++){
35    if(divs[i].className=='dynheader'&&divs[i+1].className=='dynsection'){
36      var header=divs[i];
37      var section=divs[i+1];
38      var button=header.firstChild;
39      if (button!='IMG'){
40        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
41        button=document.createElement('img');
42        divs[i].insertBefore(button,divs[i].firstChild);
43      }
44      header.style.cursor='pointer';
45      header.onclick=changeDisplayState;
46      header.id='dynheader'+sectionCounter;
47      button.src='closed.gif';
48      section.id='dynsection'+sectionCounter;
49      section.style.display='none';
50      section.style.marginLeft='14px';
51      sectionCounter++;
52    }
53  }
54}
55window.onload = initDynSections;
56-->
57</script>
58<div class="navigation" id="top">
59  <div class="tabs">
60    <ul>
61      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
62      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
63      <li><a href="annotated.html"><span>Classes</span></a></li>
64      <li class="current"><a href="files.html"><span>Files</span></a></li>
65      <li>
66        <div id="MSearchBox" class="MSearchBoxInactive">
67        <img id="MSearchSelect" src="search/search.png"
68             onmouseover="return searchBox.OnSearchSelectShow()"
69             onmouseout="return searchBox.OnSearchSelectHide()"
70             alt=""/>
71        <input type="text" id="MSearchField" value="Search" accesskey="S"
72             onfocus="searchBox.OnSearchFieldFocus(true)" 
73             onblur="searchBox.OnSearchFieldFocus(false)" 
74             onkeyup="searchBox.OnSearchFieldChange(event)"/>
75        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
76        </div>
77      </li>
78    </ul>
79  </div>
80  <div class="tabs">
81    <ul>
82      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
83      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
84    </ul>
85  </div>
86<h1>src/settingsdialog.h</h1><a href="settingsdialog_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
87<a name="l00028"></a>00028 <span class="preprocessor">#ifndef SETTINGSDIALOG_H</span>
88<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define SETTINGSDIALOG_H</span>
89<a name="l00030"></a>00030 <span class="preprocessor"></span>
90<a name="l00031"></a>00031 <span class="preprocessor">#include &quot;<a class="code" href="globals_8h.html" title="Contains TSPSG global defines.">globals.h</a>&quot;</span>
91<a name="l00032"></a>00032
92<a name="l00033"></a>00033 <span class="preprocessor">#include &quot;ui_settingsdialog.h&quot;</span>
93<a name="l00034"></a>00034
94<a name="l00039"></a><a class="code" href="class_settings_dialog.html">00039</a> <span class="keyword">class </span><a class="code" href="class_settings_dialog.html" title="Class for handling Settings Dialog UI and logic.">SettingsDialog</a>: <span class="keyword">public</span> QDialog, Ui::<a class="code" href="class_settings_dialog.html" title="Class for handling Settings Dialog UI and logic.">SettingsDialog</a>
95<a name="l00040"></a>00040 {
96<a name="l00041"></a>00041     Q_OBJECT
97<a name="l00042"></a>00042 <span class="keyword">public</span>:
98<a name="l00043"></a>00043     <a class="code" href="class_settings_dialog.html#a9933956b777b2c0451e9119581cc22fb" title="Class constructor.">SettingsDialog</a>(QWidget *parent = 0);
99<a name="l00044"></a>00044     <span class="keywordtype">bool</span> <a class="code" href="class_settings_dialog.html#a582255a7b2b320d0efa7e97a97e432c1" title="Indicates whether or not the font color has been changed.">colorChanged</a>() <span class="keyword">const</span>;
100<a name="l00045"></a>00045     <span class="keywordtype">bool</span> <a class="code" href="class_settings_dialog.html#a3bbdd390758bf15a2c5e1fa69586560d" title="Indicates whether or not the font properties have been changed.">fontChanged</a>() <span class="keyword">const</span>;
101<a name="l00046"></a>00046
102<a name="l00047"></a>00047 <span class="keyword">private</span>:
103<a name="l00048"></a>00048     QColor color;
104<a name="l00049"></a>00049     QFont font;
105<a name="l00050"></a>00050     <span class="keywordtype">bool</span> newFont;
106<a name="l00051"></a>00051     <span class="keywordtype">bool</span> newColor;
107<a name="l00052"></a>00052     QSettings *settings;
108<a name="l00053"></a>00053 <span class="preprocessor">#ifndef Q_OS_WINCE</span>
109<a name="l00054"></a>00054 <span class="preprocessor"></span>    QCheckBox *cbSaveState;
110<a name="l00055"></a>00055     QLabel *imgIcon;
111<a name="l00056"></a>00056     QLabel *labelHint;
112<a name="l00057"></a>00057     QFrame *lineVertical;
113<a name="l00058"></a>00058
114<a name="l00059"></a>00059     <span class="keywordtype">bool</span> event(QEvent *);
115<a name="l00060"></a>00060 <span class="preprocessor">#endif // Q_OS_WINCE</span>
116<a name="l00061"></a>00061 <span class="preprocessor"></span>
117<a name="l00062"></a>00062 <span class="keyword">private</span> slots:
118<a name="l00063"></a>00063     <span class="keywordtype">void</span> accept();
119<a name="l00064"></a>00064     <span class="keywordtype">void</span> buttonColorClicked();
120<a name="l00065"></a>00065     <span class="keywordtype">void</span> buttonFontClicked();
121<a name="l00066"></a>00066     <span class="keywordtype">void</span> spinRandMinValueChanged(<span class="keywordtype">int</span>);
122<a name="l00067"></a>00067 };
123<a name="l00068"></a>00068
124<a name="l00069"></a>00069 <span class="preprocessor">#endif // SETTINGSDIALOG_H</span>
125</pre></div></div>
126<!--- window showing the filter options -->
127<div id="MSearchSelectWindow"
128     onmouseover="return searchBox.OnSearchSelectShow()"
129     onmouseout="return searchBox.OnSearchSelectHide()"
130     onkeydown="return searchBox.OnSearchSelectKey(event)">
131<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>
132
133<!-- iframe showing the search results (closed by default) -->
134<div id="MSearchResultsWindow">
135<iframe src="" frameborder="0" 
136        name="MSearchResults" id="MSearchResults">
137</iframe>
138</div>
139
140<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Oct 24 16:33:19 2009 for TSPSG: TSP Solver and Generator by&nbsp;
141<a href="http://www.doxygen.org/index.html">
142<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
143</body>
144</html>
Note: See TracBrowser for help on using the repository browser.