<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.15"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>libyui-qt: QY2ComboTabWidget Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtreedata.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(initResizable); /* @license-end */</script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectalign" style="padding-left: 0.5em;"> <div id="projectname">libyui-qt  <span id="projectnumber">2.49.11</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.15 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ var searchBox = new SearchBox("searchBox", "search",false,'Search'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */</script> <div id="main-nav"></div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('classQY2ComboTabWidget.html','');}); /* @license-end */ </script> <div id="doc-content"> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div class="header"> <div class="summary"> <a href="#pub-slots">Public Slots</a> | <a href="#signals">Signals</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-slots">Protected Slots</a> | <a href="#pro-attribs">Protected Attributes</a> | <a href="classQY2ComboTabWidget-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">QY2ComboTabWidget Class Reference</div> </div> </div><!--header--> <div class="contents"> <p>This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a ( scrolled ) one-line row of tabs. <a href="classQY2ComboTabWidget.html#details">More...</a></p> <p><code>#include <<a class="el" href="QY2ComboTabWidget_8h_source.html">QY2ComboTabWidget.h</a>></code></p> <div class="dynheader"> Inheritance diagram for QY2ComboTabWidget:</div> <div class="dyncontent"> <div class="center"><img src="classQY2ComboTabWidget__inherit__graph.png" border="0" usemap="#QY2ComboTabWidget_inherit__map" alt="Inheritance graph"/></div> <map name="QY2ComboTabWidget_inherit__map" id="QY2ComboTabWidget_inherit__map"> <area shape="rect" title="This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a..." alt="" coords="5,80,159,107"/> <area shape="rect" title=" " alt="" coords="45,5,119,32"/> </map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for QY2ComboTabWidget:</div> <div class="dyncontent"> <div class="center"><img src="classQY2ComboTabWidget__coll__graph.png" border="0" usemap="#QY2ComboTabWidget_coll__map" alt="Collaboration graph"/></div> <map name="QY2ComboTabWidget_coll__map" id="QY2ComboTabWidget_coll__map"> <area shape="rect" title="This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a..." alt="" coords="5,80,159,107"/> <area shape="rect" title=" " alt="" coords="45,5,119,32"/> </map> <center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-slots"></a> Public Slots</h2></td></tr> <tr class="memitem:ac8f54e413db738b92c0eb03cce0947a9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#ac8f54e413db738b92c0eb03cce0947a9">showPage</a> (QWidget *page)</td></tr> <tr class="memdesc:ac8f54e413db738b92c0eb03cce0947a9"><td class="mdescLeft"> </td><td class="mdescRight">Show a page. <a href="#ac8f54e413db738b92c0eb03cce0947a9">More...</a><br /></td></tr> <tr class="separator:ac8f54e413db738b92c0eb03cce0947a9"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="signals"></a> Signals</h2></td></tr> <tr class="memitem:a43bd0d65f889e783cc801970009bb24c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#a43bd0d65f889e783cc801970009bb24c">currentChanged</a> (QWidget *newCurrentPage)</td></tr> <tr class="memdesc:a43bd0d65f889e783cc801970009bb24c"><td class="mdescLeft"> </td><td class="mdescRight">Emitted when the current page changes. <a href="#a43bd0d65f889e783cc801970009bb24c">More...</a><br /></td></tr> <tr class="separator:a43bd0d65f889e783cc801970009bb24c"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr class="memitem:a40531e1b800c85ce5a5685c954df6a46"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#a40531e1b800c85ce5a5685c954df6a46">QY2ComboTabWidget</a> (const QString &combo_box_label, QWidget *parent=0, const char *name=0)</td></tr> <tr class="memdesc:a40531e1b800c85ce5a5685c954df6a46"><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#a40531e1b800c85ce5a5685c954df6a46">More...</a><br /></td></tr> <tr class="separator:a40531e1b800c85ce5a5685c954df6a46"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a8b7dc978db3dbecf19a42ea5bed7da5d"><td class="memItemLeft" align="right" valign="top"><a id="a8b7dc978db3dbecf19a42ea5bed7da5d"></a> virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#a8b7dc978db3dbecf19a42ea5bed7da5d">~QY2ComboTabWidget</a> ()</td></tr> <tr class="memdesc:a8b7dc978db3dbecf19a42ea5bed7da5d"><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br /></td></tr> <tr class="separator:a8b7dc978db3dbecf19a42ea5bed7da5d"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aa47189e7efd2946259a00687e68e6244"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#aa47189e7efd2946259a00687e68e6244">addPage</a> (const QString &page_label, QWidget *page)</td></tr> <tr class="memdesc:aa47189e7efd2946259a00687e68e6244"><td class="mdescLeft"> </td><td class="mdescRight">Add a page. <a href="#aa47189e7efd2946259a00687e68e6244">More...</a><br /></td></tr> <tr class="separator:aa47189e7efd2946259a00687e68e6244"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-slots"></a> Protected Slots</h2></td></tr> <tr class="memitem:a505a6d864eb3d37b0f15cd729859833c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classQY2ComboTabWidget.html#a505a6d864eb3d37b0f15cd729859833c">showPageIndex</a> (int index)</td></tr> <tr class="memdesc:a505a6d864eb3d37b0f15cd729859833c"><td class="mdescLeft"> </td><td class="mdescRight">Show a page identified by its index. <a href="#a505a6d864eb3d37b0f15cd729859833c">More...</a><br /></td></tr> <tr class="separator:a505a6d864eb3d37b0f15cd729859833c"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a> Protected Attributes</h2></td></tr> <tr class="memitem:a28756088b3f1f6401ee070c02fc33b6b"><td class="memItemLeft" align="right" valign="top"><a id="a28756088b3f1f6401ee070c02fc33b6b"></a> QComboBox * </td><td class="memItemRight" valign="bottom"><b>combo_box</b></td></tr> <tr class="separator:a28756088b3f1f6401ee070c02fc33b6b"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a1e90819a52cd7f22036bf12fb4040b89"><td class="memItemLeft" align="right" valign="top"><a id="a1e90819a52cd7f22036bf12fb4040b89"></a> QLabel * </td><td class="memItemRight" valign="bottom"><b>combo_label</b></td></tr> <tr class="separator:a1e90819a52cd7f22036bf12fb4040b89"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ad7fea6fc9f83c528a137e6f88e9f8bf1"><td class="memItemLeft" align="right" valign="top"><a id="ad7fea6fc9f83c528a137e6f88e9f8bf1"></a> QStackedWidget * </td><td class="memItemRight" valign="bottom"><b>widget_stack</b></td></tr> <tr class="separator:ad7fea6fc9f83c528a137e6f88e9f8bf1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a0dfc8084747924f3b77072718cb7ba96"><td class="memItemLeft" align="right" valign="top"><a id="a0dfc8084747924f3b77072718cb7ba96"></a> QHash< int, QWidget * > </td><td class="memItemRight" valign="bottom"><b>pages</b></td></tr> <tr class="separator:a0dfc8084747924f3b77072718cb7ba96"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>This widget is very much like a QTabWidget, but it uses a combo box above the tab pages rather than a ( scrolled ) one-line row of tabs. </p> <p class="definition">Definition at line <a class="el" href="QY2ComboTabWidget_8h_source.html#l00045">45</a> of file <a class="el" href="QY2ComboTabWidget_8h_source.html">QY2ComboTabWidget.h</a>.</p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a id="a40531e1b800c85ce5a5685c954df6a46"></a> <h2 class="memtitle"><span class="permalink"><a href="#a40531e1b800c85ce5a5685c954df6a46">◆ </a></span>QY2ComboTabWidget()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QY2ComboTabWidget::QY2ComboTabWidget </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>combo_box_label</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QWidget * </td> <td class="paramname"><em>parent</em> = <code>0</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"><em>name</em> = <code>0</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Constructor. </p> <p>'combo_box_label' is the user-visible label of the combo box that is used to switch between the different tab pages. </p> <p class="definition">Definition at line <a class="el" href="QY2ComboTabWidget_8cc_source.html#l00047">47</a> of file <a class="el" href="QY2ComboTabWidget_8cc_source.html">QY2ComboTabWidget.cc</a>.</p> <div class="dynheader"> Here is the call graph for this function:</div> <div class="dyncontent"> <div class="center"><img src="classQY2ComboTabWidget_a40531e1b800c85ce5a5685c954df6a46_cgraph.png" border="0" usemap="#classQY2ComboTabWidget_a40531e1b800c85ce5a5685c954df6a46_cgraph" alt=""/></div> <map name="classQY2ComboTabWidget_a40531e1b800c85ce5a5685c954df6a46_cgraph" id="classQY2ComboTabWidget_a40531e1b800c85ce5a5685c954df6a46_cgraph"> <area shape="rect" title="Constructor." alt="" coords="5,5,167,47"/> <area shape="rect" href="classQY2ComboTabWidget.html#a505a6d864eb3d37b0f15cd729859833c" title="Show a page identified by its index." alt="" coords="215,5,376,47"/> </map> </div> </div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a id="aa47189e7efd2946259a00687e68e6244"></a> <h2 class="memtitle"><span class="permalink"><a href="#aa47189e7efd2946259a00687e68e6244">◆ </a></span>addPage()</h2> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QY2ComboTabWidget::addPage </td> <td>(</td> <td class="paramtype">const QString & </td> <td class="paramname"><em>page_label</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">QWidget * </td> <td class="paramname"><em>page</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Add a page. </p> <p>'page_label' will be the user-visible combo box entry for that page. </p> <p class="definition">Definition at line <a class="el" href="QY2ComboTabWidget_8cc_source.html#l00093">93</a> of file <a class="el" href="QY2ComboTabWidget_8cc_source.html">QY2ComboTabWidget.cc</a>.</p> </div> </div> <a id="a43bd0d65f889e783cc801970009bb24c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a43bd0d65f889e783cc801970009bb24c">◆ </a></span>currentChanged</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void QY2ComboTabWidget::currentChanged </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"><em>newCurrentPage</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">signal</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Emitted when the current page changes. </p> <p>NOT emitted initially for the very first page that is shown. </p> </div> </div> <a id="ac8f54e413db738b92c0eb03cce0947a9"></a> <h2 class="memtitle"><span class="permalink"><a href="#ac8f54e413db738b92c0eb03cce0947a9">◆ </a></span>showPage</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void QY2ComboTabWidget::showPage </td> <td>(</td> <td class="paramtype">QWidget * </td> <td class="paramname"><em>page</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">slot</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Show a page. </p> <p>Updates the combo box contents accordingly. This is an expensive operation: All combo box items are searched for the item that corresponds to this page. </p> <p class="definition">Definition at line <a class="el" href="QY2ComboTabWidget_8cc_source.html#l00123">123</a> of file <a class="el" href="QY2ComboTabWidget_8cc_source.html">QY2ComboTabWidget.cc</a>.</p> </div> </div> <a id="a505a6d864eb3d37b0f15cd729859833c"></a> <h2 class="memtitle"><span class="permalink"><a href="#a505a6d864eb3d37b0f15cd729859833c">◆ </a></span>showPageIndex</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">void QY2ComboTabWidget::showPageIndex </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>index</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">slot</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Show a page identified by its index. </p> <p>Does NOT update the combo box contents. </p> <p class="definition">Definition at line <a class="el" href="QY2ComboTabWidget_8cc_source.html#l00105">105</a> of file <a class="el" href="QY2ComboTabWidget_8cc_source.html">QY2ComboTabWidget.cc</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>/home/iurt/rpmbuild/BUILD/libyui-qt-2.49.11/src/<a class="el" href="QY2ComboTabWidget_8h_source.html">QY2ComboTabWidget.h</a></li> <li>/home/iurt/rpmbuild/BUILD/libyui-qt-2.49.11/src/<a class="el" href="QY2ComboTabWidget_8cc_source.html">QY2ComboTabWidget.cc</a></li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="classQY2ComboTabWidget.html">QY2ComboTabWidget</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li> </ul> </div> </body> </html>