<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>AlbumShaper: questionDialog.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>File Members</span></a></li> </ul> </div> <h1>questionDialog.h</h1><a href="questionDialog_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==============================================</span> <a name="l00002"></a>00002 <span class="comment">// copyright : (C) 2003-2005 by Will Stokes</span> <a name="l00003"></a>00003 <span class="comment">//==============================================</span> <a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it</span> <a name="l00005"></a>00005 <span class="comment">// and/or modify it under the terms of the GNU General</span> <a name="l00006"></a>00006 <span class="comment">// Public License as published by the Free Software</span> <a name="l00007"></a>00007 <span class="comment">// Foundation; either version 2 of the License, or</span> <a name="l00008"></a>00008 <span class="comment">// (at your option) any later version.</span> <a name="l00009"></a>00009 <span class="comment">//==============================================</span> <a name="l00010"></a>00010 <a name="l00011"></a>00011 <span class="preprocessor">#ifndef GUI_DIALOGS_QUESTIONDIALOG_H</span> <a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define GUI_DIALOGS_QUESTIONDIALOG_H</span> <a name="l00013"></a>00013 <span class="preprocessor"></span> <a name="l00014"></a>00014 <span class="comment">//--------------------</span> <a name="l00015"></a>00015 <span class="comment">//forward delcarations</span> <a name="l00016"></a>00016 <span class="keyword">class </span>QGridLayout; <a name="l00017"></a>00017 <span class="keyword">class </span><a class="code" href="classQLabel.html">QLabel</a>; <a name="l00018"></a>00018 <span class="keyword">class </span><a class="code" href="classQTextEdit.html">QTextEdit</a>; <a name="l00019"></a>00019 <span class="keyword">class </span>QPushButton; <a name="l00020"></a>00020 <span class="keyword">class </span>QPixmap; <a name="l00021"></a>00021 <span class="keyword">class </span><a class="code" href="classQFrame.html">QFrame</a>; <a name="l00022"></a>00022 <span class="comment">//--------------------</span> <a name="l00023"></a>00023 <a name="l00024"></a>00024 <span class="preprocessor">#include <qdialog.h></span> <a name="l00025"></a>00025 <a name="l00026"></a>00026 <span class="comment">//=====================================</span> <a name="l00029"></a>00029 <span class="comment"></span><span class="comment">//=====================================</span> <a name="l00030"></a>00030 <a name="l00031"></a><a class="code" href="classQuestionDialog.html">00031</a> <span class="keyword">class </span><a class="code" href="classQuestionDialog.html" title="A configurable question dialog that returns true/false.">QuestionDialog</a> : <span class="keyword">public</span> <a class="code" href="classQDialog.html">QDialog</a> <a name="l00032"></a>00032 { <a name="l00033"></a>00033 Q_OBJECT <a name="l00034"></a>00034 <span class="comment">//----------------------</span> <a name="l00035"></a>00035 <span class="keyword">public</span>: <a name="l00037"></a>00037 <a class="code" href="classQuestionDialog.html#a780ed48e9f32a8cc419c7f0ef6cef268" title="Basic constructor.">QuestionDialog</a>( QString question, <a name="l00038"></a>00038 QString message, <a name="l00039"></a>00039 QString questionIconName, <a name="l00040"></a>00040 <a class="code" href="classQWidget.html">QWidget</a> *parent=0, <a name="l00041"></a>00041 <span class="keyword">const</span> <span class="keywordtype">char</span>* name=0); <a name="l00042"></a>00042 <a name="l00044"></a>00044 <a class="code" href="classQuestionDialog.html#afcaa4a33e727449cd8be02c6cfa25547" title="Destructor.">~QuestionDialog</a>(); <a name="l00045"></a>00045 <span class="comment">//----------------------</span> <a name="l00046"></a>00046 <span class="keyword">private</span>: <a name="l00048"></a><a class="code" href="classQuestionDialog.html#a66adc6c635d8d62b08253c98c2ca28d4">00048</a> QGridLayout *<a class="code" href="classQuestionDialog.html#a66adc6c635d8d62b08253c98c2ca28d4" title="Grids objects placed in.">gridTop</a>, *<a class="code" href="classQuestionDialog.html#a8186cd4978482e24b1aca449431eb68a">gridBottom</a>, *<a class="code" href="classQuestionDialog.html#a7ae3b01bd0ed0bfb97f748c979a01dad">gridFull</a>; <a name="l00049"></a>00049 <a name="l00051"></a><a class="code" href="classQuestionDialog.html#ae6eb096d3cf375665180773ebbecc211">00051</a> <a class="code" href="classQLabel.html">QLabel</a>* <a class="code" href="classQuestionDialog.html#ae6eb096d3cf375665180773ebbecc211" title="Question displayed in window.">questionText</a>; <a name="l00052"></a>00052 <a name="l00054"></a><a class="code" href="classQuestionDialog.html#a7794bebfc7ffb1a73b7915979db17487">00054</a> <a class="code" href="classQTextEdit.html">QTextEdit</a>* <a class="code" href="classQuestionDialog.html#a7794bebfc7ffb1a73b7915979db17487" title="Message displayed in window.">messageText</a>; <a name="l00055"></a>00055 <a name="l00057"></a><a class="code" href="classQuestionDialog.html#ace32e486cdc1127d24d61c581e2d3dc1">00057</a> QPushButton* <a class="code" href="classQuestionDialog.html#ace32e486cdc1127d24d61c581e2d3dc1" title="Ok button.">okButton</a>; <a name="l00058"></a>00058 <a name="l00060"></a><a class="code" href="classQuestionDialog.html#a03954dc297b33dff234f9ce254a97e12">00060</a> QPushButton* <a class="code" href="classQuestionDialog.html#a03954dc297b33dff234f9ce254a97e12" title="Cancel button.">cancelButton</a>; <a name="l00061"></a>00061 <a name="l00063"></a><a class="code" href="classQuestionDialog.html#ae0b0f1b855bbc45d711884dabec3a16e">00063</a> QPixmap* <a class="code" href="classQuestionDialog.html#ae0b0f1b855bbc45d711884dabec3a16e" title="Question icon.">questionIcon</a>; <a name="l00064"></a>00064 <a name="l00066"></a><a class="code" href="classQuestionDialog.html#abdf466aaa74797c0797e20c7fa8b92aa">00066</a> <a class="code" href="classQLabel.html">QLabel</a>* <a class="code" href="classQuestionDialog.html#abdf466aaa74797c0797e20c7fa8b92aa" title="Label which shows question icon.">questionIconLabel</a>; <a name="l00067"></a>00067 <a name="l00069"></a><a class="code" href="classQuestionDialog.html#ae71f25f7e07f46e7c950489c5b79f4c9">00069</a> <a class="code" href="classQFrame.html">QFrame</a> *<a class="code" href="classQuestionDialog.html#ae71f25f7e07f46e7c950489c5b79f4c9" title="Top and bottom frames.">topFrame</a>, *<a class="code" href="classQuestionDialog.html#a6bded3756a3b3f4e52207579d97d5443">bottomFrame</a>; <a name="l00070"></a>00070 <span class="comment">//----------------------</span> <a name="l00071"></a>00071 }; <a name="l00072"></a>00072 <span class="comment">//======================</span> <a name="l00073"></a>00073 <a name="l00074"></a>00074 <span class="preprocessor">#endif //GUI_DIALOGS_QUESTIONDIALOG_H</span> </pre></div></div> <hr size="1"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2 </small></address> </body> </html>