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

KDE3Support

  • sources
  • kde-4.14
  • kdelibs
  • kde3support
  • kdeui
k3panelmenu.h
Go to the documentation of this file.
1 /*****************************************************************
2 
3 Copyright (c) 1996-2000 the kicker authors. See file AUTHORS.
4  (c) 2001 Michael Goffioul <kdeprint@swing.be>
5 
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12 
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15 
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION 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 
52 class KDE3SUPPORT_EXPORT K3PanelMenu : public KMenu
53 {
54  Q_OBJECT
55 
56 public:
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 
112 public Q_SLOTS:
118  void reinitialize();
124  void deinitialize();
125 
126 protected Q_SLOTS:
135  virtual void slotAboutToShow();
142  virtual void slotExec(int id) = 0;
151  virtual void initialize() = 0;
156  void slotClear();
157 
158 protected:
162  virtual void hideEvent(QHideEvent *ev);
166  void init(const QString& path = QString());
167 
168 private:
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
QHideEvent
QWidget
KMenu
KMenu::hideEvent
virtual void hideEvent(QHideEvent *)
kde3support_export.h
kmenu.h
QString
K3PanelMenu
Base class to build dynamically loaded menu entries for the K-menu, or the panel. ...
Definition: k3panelmenu.h:52
kgenericfactory.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:26:48 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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