• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDE3Support

  • kde3support
  • kdeui
k3panelmenu.h
Go to the documentation of this file.
1/*****************************************************************
2
3Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
4 (c) 2001 Michael Goffioul <kdeprint@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
29#include <kde3support_export.h>
30#include <kmenu.h>
31#include <kgenericfactory.h>
32
52class KDE3SUPPORT_EXPORT K3PanelMenu : public KMenu
53{
54 Q_OBJECT
55
56public:
61 K3PanelMenu(QWidget *parent);
69 K3PanelMenu(const QString &startDir, QWidget *parent);
73 virtual ~K3PanelMenu();
74
81 const QString& path() const;
87 void setPath(const QString &p);
95 bool initialized() const;
102 void setInitialized(bool on);
103
110 void disableAutoClear();
111
112public Q_SLOTS:
118 void reinitialize();
124 void deinitialize();
125
126protected Q_SLOTS:
135 virtual void slotAboutToShow();
142 virtual void slotExec(int id) = 0;
151 virtual void initialize() = 0;
156 void slotClear();
157
158protected:
162 virtual void hideEvent(QHideEvent *ev);
166 void init(const QString& path = QString());
167
168private:
169 void internalInitialize();
170 class Private;
171 Private *d;
172};
173
174#define K_EXPORT_KICKER_MENUEXT( libname, classname ) \
175 K_EXPORT_COMPONENT_FACTORY( \
176 kickermenu_##libname, \
177 KGenericFactory<classname>("libkickermenu_" #libname) )
178
179#endif
K3PanelMenu
Base class to build dynamically loaded menu entries for the K-menu, or the panel.
Definition: k3panelmenu.h:53
K3PanelMenu::initialize
virtual void initialize()=0
This slots is called to initialize the menu.
K3PanelMenu::slotExec
virtual void slotExec(int id)=0
This is slot is called when an item from the menu has been selected.
KMenu
QWidget
kde3support_export.h
kgenericfactory.h
kmenu.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDE3Support

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal