Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 902

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class KEditToolbarWidget</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class KEditToolbarWidget</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">A widget used to customize or configure toolbars. <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="kedittoolbar_h.html">kedittoolbar.h</A>&gt;</code></TD></TR>
<TR><TH>Inherits</TH><TD><A HREF="KXMLGUIClient.html">KXMLGUIClient</A> <small>[virtual public ]</small>, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> <small>(qt)</small> <small>[public ]</small></TD></TR>
<TR><TH><A HREF="full-list-KEditToolbarWidget.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref1">KEditToolbarWidget</A></b> (<A HREF="KActionCollection.html">KActionCollection</A> *collection,
                     const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& file = QString::null,
                     bool global = true, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent = 0L) 
</LI>
<LI>&nbsp;<b><A HREF="#ref2">KEditToolbarWidget</A></b> (<A HREF="KXMLGUIFactory.html">KXMLGUIFactory</A>* factory, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent = 0L) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref3">~KEditToolbarWidget</A></b> () 
</LI>
<LI>virtual  <A HREF="KActionCollection.html">KActionCollection</A> *&nbsp;<b><A HREF="#ref4">actionCollection</A></b> ()  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref5">save</A></b> () 
</LI>
</ul><h4>Signals</h4><ul><LI>void &nbsp;<b><A HREF="#ref6">enableOk</A></b> (bool) 
</LI>
</ul><h4>Protected Methods</h4><ul><LI>void &nbsp;<b><A HREF="#ref14">setupLayout</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref15">loadToolbarCombo</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref16">loadActionList</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdomelement.html">QDomElement</A>& elem) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref17">updateLocal</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdomelement.html">QDomElement</A>& elem) 
</LI>
</ul><h4>Protected Slots</h4><ul><LI>void &nbsp;<b><A HREF="#ref7">slotToolbarSelected</A></b> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& text) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref8">slotInactiveSelected</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistviewitem.html">QListViewItem</A> *item) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref9">slotActiveSelected</A></b> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistviewitem.html">QListViewItem</A> *item) 
</LI>
<LI>void &nbsp;<b><A HREF="#ref10">slotInsertButton</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref11">slotRemoveButton</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref12">slotUpButton</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref13">slotDownButton</A></b> () 
</LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 This is a widget used to customize or configure toolbars
</p>
<p> This is the widget that does all of the work for the
 <A HREF="KEditToolbar.html">KEditToolbar</A> dialog.  In most cases, you will want to use the
 dialog instead of this widget directly.
</p>
<p> Typically, you would use this widget only if you wanted to embed
 the toolbar editing directly into your existing configure or
 preferences dialog.
</p>
<p> This widget only works if your application uses the XML UI
 framework for creating menus and toolbars.  It depends on the XML
 files to describe the toolbar layouts and it requires the actions
 to determine which buttons are active.
</p>
<p></p>
<A NAME="KEditToolbarWidget"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KEditToolbarWidget</strong> (<A HREF="KActionCollection.html">KActionCollection</A> *collection,
                     const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& file = QString::null,
                     bool global = true, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent = 0L)
<br></td><td align="right"><h3><strong>KEditToolbarWidget</strong></h3></td></tr></table><p></p><p>
 Constructor.  This is the only entry point to this class.  You
 <code>must</code> pass along your collection of actions (some of which
 appear in your toolbars).  The other three parameters are
 optional.
</p>
<p> The second parameter, xmlfile, is the name (absolute or
 relative) of your application's UI resource file.  If it is
 left blank, then the resource file: share/apps/appname/appnameui.rc
 is used.  This is the same resource file that is used by the
 default createGUI function in KMainWindow so you're usually
 pretty safe in leaving it blank.
</p>
<p> The third parameter, global, controls whether or not the
 global resource file is used.  If this is true, then you may
 edit all of the actions in your toolbars -- global ones and
 local one.  If it is false, then you may edit only your
 application's entries.  The only time you should set this to
 false is if your application does not use the global resource
 file at all (very rare)
</p>
<p> The last parameter, parent, is the standard parent stuff.
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>collection</i></TD><TD align="left" valign="top">The collection of actions to work on
</TD></TR>
<TR><TD align="left" valign="top"><i>xmlfile</i></TD><TD align="left" valign="top">The application's local resource file
</TD></TR>
<TR><TD align="left" valign="top"><i>global</i></TD><TD align="left" valign="top">If true, then the global resource file will also
               be parsed
</TD></TR>
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">This widget's parent
   </TD></TR>
</TABLE></P>
<A NAME="KEditToolbarWidget"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>KEditToolbarWidget</strong> (<A HREF="KXMLGUIFactory.html">KXMLGUIFactory</A>* factory, <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qwidget.html">QWidget</A> *parent = 0L)
<br></td><td align="right"><h3><strong>KEditToolbarWidget</strong></h3></td></tr></table><p></p><p>
 Constructor for KParts based apps.
</p>
<p> The first parameter, factory, is a pointer to the XML GUI
 factory object for your application.  It contains a list of all
 of the GUI clients (along with the action collections and xml
 files) and the toolbar editor uses that.
</p>
<p> The second parameter, parent, is the standard parent
</p>
<p> Use this like so:
</p><table border="0" width="100%">
<tr>
<td bgcolor="#BEEAE0">
<pre>

 <A HREF="KEditToolbar.html">KEditToolbar</A> edit(factory());
 if ( edit.exec() )
 ...

</pre>
</td></tr>

</table> <p>
</p>
<p></p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>factory</i></TD><TD align="left" valign="top">Your application's factory object
</TD></TR>
<TR><TD align="left" valign="top"><i>parent</i></TD><TD align="left" valign="top">This widget's parent
   </TD></TR>
</TABLE></P>
<A NAME="~KEditToolbarWidget"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~KEditToolbarWidget</strong> ()
<br></td><td align="right"><h3><strong>~KEditToolbarWidget</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p>
 Destructor.  Note that any changes done in this widget will
 <code>NOT</code> be saved in the destructor.  You <code>must</code> call <A HREF="KEditToolbarWidget.html#save">save</A>()
 to do that.
   </p>
<A NAME="actionCollection"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <A HREF="KActionCollection.html">KActionCollection</A> *&nbsp;<strong>actionCollection</strong> ()
<br></td><td align="right"><h3><strong>actionCollection</strong></h3></td></tr></table><p> <small>[const virtual]</small></p><p>
 This is overriden so that the KXMLGUIClient internal functions
 have the proper action collections to deal with.  You shouldn't
 have to do anything with this as it was your collection in the
 first place.
</p>
<p></p>
<p><b>Returns</b>: Your application's collection of actions
   </p>
<p>Reimplemented from <A HREF="KXMLGUIClient.html#actionCollection">KXMLGUIClient</A>.</p>
<A NAME="save"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>save</strong> ()
<br></td><td align="right"><h3><strong>save</strong></h3></td></tr></table><p></p><p>
 Save any changes the user made.  The file will be in the user's
 local directory (usually $HOME/.kde/share/apps/<appname>).  The
 filename will be the one specified in the constructor.. or the
 made up one if the filename was NULL.
</p>
<p></p>
<p><b>Returns</b>: The status of whether or not the save succeeded.
   </p>
<A NAME="enableOk"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>enableOk</strong> (bool)
<br></td><td align="right"><h3><strong>enableOk</strong></h3></td></tr></table><p> <small>[signal]</small></p><p>
 Emitted whenever any modifications are made by the user.
   </p>
<A NAME="slotToolbarSelected"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotToolbarSelected</strong> (const <A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qstring.html">QString</A>& text)
<br></td><td align="right"><h3><strong>slotToolbarSelected</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotInactiveSelected"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotInactiveSelected</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistviewitem.html">QListViewItem</A> *item)
<br></td><td align="right"><h3><strong>slotInactiveSelected</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotActiveSelected"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotActiveSelected</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qlistviewitem.html">QListViewItem</A> *item)
<br></td><td align="right"><h3><strong>slotActiveSelected</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotInsertButton"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotInsertButton</strong> ()
<br></td><td align="right"><h3><strong>slotInsertButton</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotRemoveButton"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotRemoveButton</strong> ()
<br></td><td align="right"><h3><strong>slotRemoveButton</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotUpButton"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotUpButton</strong> ()
<br></td><td align="right"><h3><strong>slotUpButton</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="slotDownButton"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>slotDownButton</strong> ()
<br></td><td align="right"><h3><strong>slotDownButton</strong></h3></td></tr></table><p> <small>[protected slots slot]</small></p><A NAME="setupLayout"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>setupLayout</strong> ()
<br></td><td align="right"><h3><strong>setupLayout</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="loadToolbarCombo"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>loadToolbarCombo</strong> ()
<br></td><td align="right"><h3><strong>loadToolbarCombo</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="loadActionList"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>loadActionList</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdomelement.html">QDomElement</A>& elem)
<br></td><td align="right"><h3><strong>loadActionList</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="updateLocal"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>updateLocal</strong> (<A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qdomelement.html">QDomElement</A>& elem)
<br></td><td align="right"><h3><strong>updateLocal</strong></h3></td></tr></table><p> <small>[protected]</small></p><HR><UL><LI><i>Author</i>: Kurt Granroth <granroth@kde.org>
</LI><LI><i>Generated</i>: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:05 2002, using kdoc 2.0a53.</LI></UL></BODY></HTML>