• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeui
 

tdeui

  • tdeui
kpanelmenu.h
1/*****************************************************************
2
3Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
4 (c) 2001 Michael Goffioul <tdeprint@swing.be>
5
6Permission is hereby granted, free of charge, to any person obtaining a copy
7of this software and associated documentation files (the "Software"), to deal
8in the Software without restriction, including without limitation the rights
9to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10copies of the Software, and to permit persons to whom the Software is
11furnished to do so, subject to the following conditions:
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23******************************************************************/
24
25#ifndef __KPANELMENU_H__
26#define __KPANELMENU_H__
27
28#include <tqstring.h>
29#include <tdepopupmenu.h>
30#include <kgenericfactory.h>
31
32class KPanelMenuPrivate;
33
53class TDEUI_EXPORT KPanelMenu : public TDEPopupMenu
54{
55 TQ_OBJECT
56
57public:
62 KPanelMenu(TQWidget *parent=0, const char *name=0);
70 KPanelMenu(const TQString &startDir, TQWidget *parent=0, const char *name=0);
74 virtual ~KPanelMenu();
75
82 const TQString& path() const;
88 void setPath(const TQString &p);
96 bool initialized() const;
103 void setInitialized(bool on);
104
111 void disableAutoClear();
112
113public slots:
119 void reinitialize();
126 void deinitialize();
127
128protected slots:
137 virtual void slotAboutToShow();
144 virtual void slotExec(int id) = 0;
153 virtual void initialize() = 0;
158 void slotClear();
159
160protected:
164 virtual void hideEvent(TQHideEvent *ev);
168 void init(const TQString& path = TQString::null);
169
170protected:
171 virtual void virtual_hook( int id, void* data );
172private:
173 void internalInitialize();
174 KPanelMenuPrivate *d;
175};
176
177#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \
178 K_EXPORT_COMPONENT_FACTORY( \
179 kickermenu_##libname, \
180 KGenericFactory<classname>("libkickermenu_" #libname) )
181
182#endif
KPanelMenu
Base class to build dynamically loaded menu entries for the K-menu, or the panel.
Definition: kpanelmenu.h:54
KPanelMenu::slotExec
virtual void slotExec(int id)=0
This is slot is called when an item from the menu has been selected.
KPanelMenu::initialize
virtual void initialize()=0
This slots is called to initialize the menu.
TDEPopupMenu
A menu with title items.
Definition: tdepopupmenu.h:123

tdeui

Skip menu "tdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.