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

tdeui

tdemenubar.h

00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1997, 1998, 1999, 2000  Sven Radej (radej@kde.org)
00003     Copyright (C) 1997, 1998, 1999, 2000 Matthias Ettrich (ettrich@kde.org)
00004     Copyright (C) 1999, 2000 Daniel "Mosfet" Duley (mosfet@kde.org)
00005 
00006 
00007     This library is free software; you can redistribute it and/or
00008     modify it under the terms of the GNU Library General Public
00009     License as published by the Free Software Foundation; either
00010     version 2 of the License, or (at your option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015     Library General Public License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to
00019     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020     Boston, MA 02110-1301, USA.
00021 */
00022 
00023 //$Id$
00024 
00025 #ifndef _TDEMENUBAR_H
00026 #define _TDEMENUBAR_H
00027 
00028 #include <tqmenubar.h>
00029 
00030 #include <tdelibs_export.h>
00031 
00042 class TDEUI_EXPORT KMenuBar : public TQMenuBar
00043 {
00044     Q_OBJECT
00045 
00046 public:
00047 
00048     KMenuBar (TQWidget *parent=0, const char *name=0);
00049     ~KMenuBar ();
00050 
00068     void setTopLevelMenu(bool top_level = true);
00069 
00075     bool isTopLevelMenu() const;
00076 
00077     // TT are overloading virtuals :(
00078     virtual void setGeometry( const TQRect &r );
00079     virtual void setGeometry( int x, int y, int w, int h );
00080     virtual void resize( int w, int h );
00081     void resize( const TQSize& s ) { TQMenuBar::resize( s ); }
00082 
00083     virtual void show();
00084     virtual void setFrameStyle( int );
00085     virtual void setLineWidth( int );
00086     virtual void setMargin( int );
00087     virtual TQSize sizeHint() const;
00088 protected slots:
00089     void slotReadConfig();
00090 protected:
00091     virtual void showEvent( TQShowEvent* );
00092     virtual void resizeEvent( TQResizeEvent* );
00093     virtual bool eventFilter(TQObject *, TQEvent *);
00094 #ifdef Q_WS_X11
00095     virtual bool x11Event( XEvent* );
00096 #endif
00097     virtual void closeEvent( TQCloseEvent* );
00098     virtual void drawContents( TQPainter* );
00099 private slots:
00100     void updateFallbackSize();
00101     void selectionTimeout();
00102 private:
00103     void setTopLevelMenuInternal(bool top_level);
00104     void updateMenuBarSize();
00105     void checkSize( int& w, int& h );
00106     static int block_resize;
00107 protected:
00108     virtual void virtual_hook( int id, void* data );
00109 private:
00110     class KMenuBarPrivate;
00111     KMenuBarPrivate *d;
00112 };
00113 
00114 #endif

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.6.3
This website is maintained by Timothy Pearson.