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

KDEUI

kstatusbar.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 1997 Mark Donohoe (donohoe@kde.org)
00003    Copyright (C) 1997, 1998 1998 Sven Radej (sven@lisa.exp.univie.ac.at)
00004    Copyright (C) 2007 Aron Boström (aron.bostrom@gmail.com)
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019    Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef KSTATUSBAR_H
00023 #define KSTATUSBAR_H
00024 
00025 #include <kdeui_export.h>
00026 #include <QtGui/QStatusBar>
00027 
00028 class QObject;
00029 class QEvent;
00030 class KStatusBarPrivate;
00031 
00059 class KDEUI_EXPORT KStatusBar : public QStatusBar
00060 {
00061   Q_OBJECT
00062 
00063 public:
00067   explicit KStatusBar( QWidget* parent = 0 );
00068 
00074   ~KStatusBar();
00075 
00087   void insertItem(const QString& text, int id, int stretch=0 );
00088 
00100   void insertPermanentItem(const QString& text, int id, int stretch=0 );
00101 
00110   void insertFixedItem(const QString& text, int id);
00111 
00120   void insertPermanentFixedItem(const QString& text, int id);
00121 
00127   void removeItem( int id );
00128 
00135   bool hasItem( int id ) const;
00136 
00140   QString itemText( int id ) const;
00141 
00151   void changeItem( const QString& text, int id );
00152 
00158   void setItemAlignment(int id, Qt::Alignment alignment);
00159 
00167   void setItemFixed(int id, int width=-1);
00168 
00169 Q_SIGNALS:
00170 
00177   void pressed( int );
00178 
00184   void released( int );
00185 
00186 protected:
00187   bool eventFilter(QObject* object, QEvent *event);
00188 
00189 private:
00190   KStatusBarPrivate* const d;
00191 };
00192 
00193 #endif // KSTATUSBAR_H
00194 

KDEUI

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal