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

tdeui

  • tdeui
tdemenubar.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997, 1998, 1999, 2000 Sven Radej (radej@kde.org)
3  Copyright (C) 1997, 1998, 1999, 2000 Matthias Ettrich (ettrich@kde.org)
4  Copyright (C) 1999, 2000 Daniel "Mosfet" Duley (mosfet@kde.org)
5 
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Library General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Library General Public License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to
19  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  Boston, MA 02110-1301, USA.
21 */
22 
23 //$Id$
24 
25 #ifndef _TDEMENUBAR_H
26 #define _TDEMENUBAR_H
27 
28 #include <tqmenubar.h>
29 
30 #include <tdelibs_export.h>
31 
42 class TDEUI_EXPORT KMenuBar : public TQMenuBar
43 {
44  Q_OBJECT
45 
46 public:
47 
48  KMenuBar (TQWidget *parent=0, const char *name=0);
49  ~KMenuBar ();
50 
68  void setTopLevelMenu(bool top_level = true);
69 
75  bool isTopLevelMenu() const;
76 
77  // TT are overloading virtuals :(
78  virtual void setGeometry( const TQRect &r );
79  virtual void setGeometry( int x, int y, int w, int h );
80  virtual void resize( int w, int h );
81  void resize( const TQSize& s ) { TQMenuBar::resize( s ); }
82 
83  virtual void show();
84  virtual void setFrameStyle( int );
85  virtual void setLineWidth( int );
86  virtual void setMargin( int );
87  virtual TQSize sizeHint() const;
88 protected slots:
89  void slotReadConfig();
90 protected:
91  virtual void showEvent( TQShowEvent* );
92  virtual void resizeEvent( TQResizeEvent* );
93  virtual bool eventFilter(TQObject *, TQEvent *);
94 #ifdef Q_WS_X11
95  virtual bool x11Event( XEvent* );
96 #endif
97  virtual void closeEvent( TQCloseEvent* );
98  virtual void drawContents( TQPainter* );
99 private slots:
100  void updateFallbackSize();
101  void selectionTimeout();
102 private:
103  void setTopLevelMenuInternal(bool top_level);
104  void updateMenuBarSize();
105  void checkSize( int& w, int& h );
106  static int block_resize;
107 protected:
108  virtual void virtual_hook( int id, void* data );
109 private:
110  class KMenuBarPrivate;
111  KMenuBarPrivate *d;
112 };
113 
114 #endif
KMenuBar
KDE Style-able menubar.
Definition: tdemenubar.h:42

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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.8.8
This website is maintained by Timothy Pearson.