<!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>Vidalia: VMessageBox Class Reference</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.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="dirs.html"><span>Directories</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>VMessageBox Class Reference</h1><!-- doxytag: class="VMessageBox" --> <p><code>#include <<a class="el" href="_v_message_box_8h_source.html">VMessageBox.h</a>></code></p> <p><a href="class_v_message_box-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0a">Button</a> { <br/> <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa167e61034e5430c389e78d651f341d48">NoButton</a> = 0, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aafc0d4bb792dca848f92d28e60dec4fe4">Ok</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa59f97f6727d326522ba5b132be867d52">Cancel</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa577bff592dc54f371a778c2da4371531">Yes</a>, <br/> <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa2f751522b897d818813d04087e3ca181">No</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa68f832e8b6b8e204234b95741e1ebadc">Help</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa5230f2ab252df55b2bd88744e8127612">Retry</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa86d321b14db59f70d818d09220a21ae9">ShowLog</a>, <br/> <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa4585cee521bc7bf3576babf9f4321800">ShowSettings</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aab1c7c6bed0ef690b9fdda7fdb96771fe">Continue</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa040699bf336710b612071815492258df">Quit</a>, <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0aa7c333a4810dd939154c8735522ab3960">Browse</a> <br/> }</td></tr> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#ae75dec0c6c4882b4d4def98520c4b32e">VMessageBox</a> (QWidget *parent=0)</td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#a4967bd8c77b7539360160964ed5154e7">critical</a> (QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#a3fa399ecd05615e0b8df5db3b1f08742">information</a> (QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#ab13cdbaf47040d9c0312ba5854185b15">warning</a> (QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#a93d207010ff4260cdb0f7b07f4ec35c5">question</a> (QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static QString </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#a7765faa20d29b89ee07ba56d9554b6df">buttonText</a> (int button)</td></tr> <tr><td colspan="2"><h2>Static Private Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#af867b7ec81bcec7f08dd311f857d6772">defaultButton</a> (int button0, int button1, int button2)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#ac098089f0263dab43f9ecd4d8c849342">escapeButton</a> (int button0, int button1, int button2)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="class_v_message_box.html#a6796d499354c214c2ca52cd14bd7eb0d">selected</a> (int ret, int button0, int button1, int button2)</td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>Definition at line <a class="el" href="_v_message_box_8h_source.html#l00024">24</a> of file <a class="el" href="_v_message_box_8h_source.html">VMessageBox.h</a>.</p> <hr/><h2>Member Enumeration Documentation</h2> <a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0a"></a><!-- doxytag: member="VMessageBox::Button" ref="ad9a3aafc6d9076268b6b4b6b1357fe0a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="class_v_message_box.html#ad9a3aafc6d9076268b6b4b6b1357fe0a">VMessageBox::Button</a></td> </tr> </table> </div> <div class="memdoc"> <dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa167e61034e5430c389e78d651f341d48"></a><!-- doxytag: member="NoButton" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa167e61034e5430c389e78d651f341d48" args="" -->NoButton</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aafc0d4bb792dca848f92d28e60dec4fe4"></a><!-- doxytag: member="Ok" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aafc0d4bb792dca848f92d28e60dec4fe4" args="" -->Ok</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa59f97f6727d326522ba5b132be867d52"></a><!-- doxytag: member="Cancel" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa59f97f6727d326522ba5b132be867d52" args="" -->Cancel</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa577bff592dc54f371a778c2da4371531"></a><!-- doxytag: member="Yes" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa577bff592dc54f371a778c2da4371531" args="" -->Yes</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa2f751522b897d818813d04087e3ca181"></a><!-- doxytag: member="No" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa2f751522b897d818813d04087e3ca181" args="" -->No</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa68f832e8b6b8e204234b95741e1ebadc"></a><!-- doxytag: member="Help" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa68f832e8b6b8e204234b95741e1ebadc" args="" -->Help</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa5230f2ab252df55b2bd88744e8127612"></a><!-- doxytag: member="Retry" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa5230f2ab252df55b2bd88744e8127612" args="" -->Retry</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa86d321b14db59f70d818d09220a21ae9"></a><!-- doxytag: member="ShowLog" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa86d321b14db59f70d818d09220a21ae9" args="" -->ShowLog</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa4585cee521bc7bf3576babf9f4321800"></a><!-- doxytag: member="ShowSettings" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa4585cee521bc7bf3576babf9f4321800" args="" -->ShowSettings</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aab1c7c6bed0ef690b9fdda7fdb96771fe"></a><!-- doxytag: member="Continue" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aab1c7c6bed0ef690b9fdda7fdb96771fe" args="" -->Continue</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa040699bf336710b612071815492258df"></a><!-- doxytag: member="Quit" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa040699bf336710b612071815492258df" args="" -->Quit</em> </td><td> </td></tr> <tr><td valign="top"><em><a class="anchor" id="ad9a3aafc6d9076268b6b4b6b1357fe0aa7c333a4810dd939154c8735522ab3960"></a><!-- doxytag: member="Browse" ref="ad9a3aafc6d9076268b6b4b6b1357fe0aa7c333a4810dd939154c8735522ab3960" args="" -->Browse</em> </td><td> </td></tr> </table> </dd> </dl> <p>Definition at line <a class="el" href="_v_message_box_8h_source.html#l00029">29</a> of file <a class="el" href="_v_message_box_8h_source.html">VMessageBox.h</a>.</p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ae75dec0c6c4882b4d4def98520c4b32e"></a><!-- doxytag: member="VMessageBox::VMessageBox" ref="ae75dec0c6c4882b4d4def98520c4b32e" args="(QWidget *parent=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">VMessageBox::VMessageBox </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em> = <code>0</code></td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Default constructor. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00023">23</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a7765faa20d29b89ee07ba56d9554b6df"></a><!-- doxytag: member="VMessageBox::buttonText" ref="a7765faa20d29b89ee07ba56d9554b6df" args="(int button)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QString VMessageBox::buttonText </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>btn</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Converts a Button enum value to a translated string. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00073">73</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>References <a class="el" href="_v_message_box_8h_source.html#l00041">Browse</a>, <a class="el" href="_v_message_box_8h_source.html#l00032">Cancel</a>, <a class="el" href="_v_message_box_8h_source.html#l00039">Continue</a>, <a class="el" href="_v_message_box_8h_source.html#l00035">Help</a>, <a class="el" href="_v_message_box_8h_source.html#l00034">No</a>, <a class="el" href="_v_message_box_8h_source.html#l00031">Ok</a>, <a class="el" href="_v_message_box_8h_source.html#l00040">Quit</a>, <a class="el" href="_v_message_box_8h_source.html#l00036">Retry</a>, <a class="el" href="_v_message_box_8h_source.html#l00037">ShowLog</a>, <a class="el" href="_v_message_box_8h_source.html#l00038">ShowSettings</a>, and <a class="el" href="_v_message_box_8h_source.html#l00033">Yes</a>.</p> <p>Referenced by <a class="el" href="_v_message_box_8cpp_source.html#l00099">critical()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00133">information()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00116">question()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00150">warning()</a>.</p> </div> </div> <a class="anchor" id="a4967bd8c77b7539360160964ed5154e7"></a><!-- doxytag: member="VMessageBox::critical" ref="a4967bd8c77b7539360160964ed5154e7" args="(QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::critical </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>caption</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em> = <code>NoButton</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em> = <code>NoButton</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Displays an critical message box with the given caption, message text, and visible buttons. To specify a button as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively.</p> <p>Displays a critical message box with the given caption, message text, and visible buttons. To specify a button as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00099">99</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>References <a class="el" href="_v_message_box_8cpp_source.html#l00073">buttonText()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00031">defaultButton()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00046">escapeButton()</a>, <a class="el" href="html_8cpp_source.html#l00023">p()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00061">selected()</a>.</p> <p>Referenced by <a class="el" href="vidalia_2main_8cpp_source.html#l00135">main()</a>.</p> </div> </div> <a class="anchor" id="af867b7ec81bcec7f08dd311f857d6772"></a><!-- doxytag: member="VMessageBox::defaultButton" ref="af867b7ec81bcec7f08dd311f857d6772" args="(int button0, int button1, int button2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::defaultButton </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static, private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the button (0, 1, or 2) that is OR-ed with QMessageBox::Default, or 0 if none are. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00031">31</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>Referenced by <a class="el" href="_v_message_box_8cpp_source.html#l00099">critical()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00133">information()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00116">question()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00150">warning()</a>.</p> </div> </div> <a class="anchor" id="ac098089f0263dab43f9ecd4d8c849342"></a><!-- doxytag: member="VMessageBox::escapeButton" ref="ac098089f0263dab43f9ecd4d8c849342" args="(int button0, int button1, int button2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::escapeButton </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static, private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the button (0, 1, or 2) that is OR-ed with QMessageBox::Escape, or -1 if none are. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00046">46</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>Referenced by <a class="el" href="_v_message_box_8cpp_source.html#l00099">critical()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00133">information()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00116">question()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00150">warning()</a>.</p> </div> </div> <a class="anchor" id="a3fa399ecd05615e0b8df5db3b1f08742"></a><!-- doxytag: member="VMessageBox::information" ref="a3fa399ecd05615e0b8df5db3b1f08742" args="(QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::information </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>caption</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em> = <code>NoButton</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em> = <code>NoButton</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Displays an information message box with the given caption, message text, and visible buttons. To specify a button as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00133">133</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>References <a class="el" href="_v_message_box_8cpp_source.html#l00073">buttonText()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00031">defaultButton()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00046">escapeButton()</a>, <a class="el" href="html_8cpp_source.html#l00023">p()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00061">selected()</a>.</p> <p>Referenced by <a class="el" href="_main_window_8cpp_source.html#l01563">MainWindow::displayTorVersionWarning()</a>, <a class="el" href="_message_log_8cpp_source.html#l00414">MessageLog::find()</a>, <a class="el" href="_main_window_8cpp_source.html#l01728">MainWindow::newIdentity()</a>, <a class="el" href="_help_text_browser_8cpp_source.html#l00068">HelpTextBrowser::setSource()</a>, and <a class="el" href="_vidalia_8cpp_source.html#l00195">Vidalia::showUsageMessageBox()</a>.</p> </div> </div> <a class="anchor" id="a93d207010ff4260cdb0f7b07f4ec35c5"></a><!-- doxytag: member="VMessageBox::question" ref="a93d207010ff4260cdb0f7b07f4ec35c5" args="(QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::question </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>caption</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em> = <code>NoButton</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em> = <code>NoButton</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Displays a warning message box with the given caption, message text, and visible buttons. To specify as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively.</p> <p>Displays an question message box with the given caption, message text, and visible buttons. To specify a button as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00116">116</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>References <a class="el" href="_v_message_box_8cpp_source.html#l00073">buttonText()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00031">defaultButton()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00046">escapeButton()</a>, <a class="el" href="html_8cpp_source.html#l00023">p()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00061">selected()</a>.</p> <p>Referenced by <a class="el" href="_main_window_8cpp_source.html#l01260">MainWindow::authenticate()</a>, <a class="el" href="_advanced_page_8cpp_source.html#l00220">AdvancedPage::browseTorConfig()</a>, <a class="el" href="_help_text_browser_8cpp_source.html#l00068">HelpTextBrowser::setSource()</a>, and <a class="el" href="_main_window_8cpp_source.html#l01140">MainWindow::stop()</a>.</p> </div> </div> <a class="anchor" id="a6796d499354c214c2ca52cd14bd7eb0d"></a><!-- doxytag: member="VMessageBox::selected" ref="a6796d499354c214c2ca52cd14bd7eb0d" args="(int ret, int button0, int button1, int button2)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::selected </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>ret</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static, private]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the Button enum value from the given return value. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00061">61</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>Referenced by <a class="el" href="_v_message_box_8cpp_source.html#l00099">critical()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00133">information()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00116">question()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00150">warning()</a>.</p> </div> </div> <a class="anchor" id="ab13cdbaf47040d9c0312ba5854185b15"></a><!-- doxytag: member="VMessageBox::warning" ref="ab13cdbaf47040d9c0312ba5854185b15" args="(QWidget *parent, QString caption, QString text, int button0, int button1=NoButton, int button2=NoButton)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int VMessageBox::warning </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"> <em>parent</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>caption</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QString </td> <td class="paramname"> <em>text</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button0</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button1</em> = <code>NoButton</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>button2</em> = <code>NoButton</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Displays a warning message box with the given caption, message text, and visible buttons. To specify as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively.</p> <p>Displays a warning message box with the given caption, message text, and visible buttons. To specify a button as a default button or an escape button, OR the Button enum value with QMessageBox::Default or QMessageBox::Escape, respectively. </p> <p>Definition at line <a class="el" href="_v_message_box_8cpp_source.html#l00150">150</a> of file <a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a>.</p> <p>References <a class="el" href="_v_message_box_8cpp_source.html#l00073">buttonText()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00031">defaultButton()</a>, <a class="el" href="_v_message_box_8cpp_source.html#l00046">escapeButton()</a>, <a class="el" href="html_8cpp_source.html#l00023">p()</a>, and <a class="el" href="_v_message_box_8cpp_source.html#l00061">selected()</a>.</p> <p>Referenced by <a class="el" href="_network_page_8cpp_source.html#l00176">NetworkPage::addBridge()</a>, <a class="el" href="_config_dialog_8cpp_source.html#l00213">ConfigDialog::applyChanges()</a>, <a class="el" href="_main_window_8cpp_source.html#l01334">MainWindow::authenticated()</a>, <a class="el" href="_main_window_8cpp_source.html#l01384">MainWindow::authenticationFailed()</a>, <a class="el" href="_service_page_8cpp_source.html#l00451">ServicePage::browseDirectory()</a>, <a class="el" href="_advanced_page_8cpp_source.html#l00220">AdvancedPage::browseTorConfig()</a>, <a class="el" href="_main_window_8cpp_source.html#l01115">MainWindow::connectFailed()</a>, <a class="el" href="_service_page_8cpp_source.html#l00431">ServicePage::copyToClipboard()</a>, <a class="el" href="_net_viewer_8cpp_source.html#l00495">NetViewer::displayRouterInfo()</a>, <a class="el" href="_main_window_8cpp_source.html#l01728">MainWindow::newIdentity()</a>, <a class="el" href="_server_page_8cpp_source.html#l00140">ServerPage::onAuthenticated()</a>, <a class="el" href="_main_window_8cpp_source.html#l00733">MainWindow::onBrowserFailed()</a>, <a class="el" href="_main_window_8cpp_source.html#l00746">MainWindow::onIMFailed()</a>, <a class="el" href="_main_window_8cpp_source.html#l00768">MainWindow::onProxyFailed()</a>, <a class="el" href="_message_log_8cpp_source.html#l00197">MessageLog::registerLogEvents()</a>, <a class="el" href="_service_page_8cpp_source.html#l00408">ServicePage::removeService()</a>, <a class="el" href="_message_log_8cpp_source.html#l00224">MessageLog::rotateLogFile()</a>, <a class="el" href="_message_log_8cpp_source.html#l00315">MessageLog::save()</a>, <a class="el" href="_config_dialog_8cpp_source.html#l00183">ConfigDialog::saveChanges()</a>, <a class="el" href="_message_log_8cpp_source.html#l00244">MessageLog::saveSettings()</a>, <a class="el" href="_main_window_8cpp_source.html#l01062">MainWindow::startFailed()</a>, <a class="el" href="_main_window_8cpp_source.html#l01140">MainWindow::stop()</a>, <a class="el" href="_main_window_8cpp_source.html#l01199">MainWindow::stopped()</a>, and <a class="el" href="_service_page_8cpp_source.html#l00530">ServicePage::valueChanged()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="_v_message_box_8h_source.html">VMessageBox.h</a></li> <li><a class="el" href="_v_message_box_8cpp_source.html">VMessageBox.cpp</a></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Mon Aug 30 22:58:57 2010 for Vidalia by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>