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

tdeui

  • tdeui
kstatusbar.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1997 Mark Donohoe (donohoe@kde.org)
3  Copyright (C) 1997, 1998 1998 Sven Radej (sven@lisa.exp.univie.ac.at)
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef __KSTATUSBAR_H__
22 #define __KSTATUSBAR_H__
23 
24 #include <tqstatusbar.h>
25 #include <tqintdict.h>
26 #include <tqlabel.h>
27 #include <tdelibs_export.h>
28 
29 class KStatusBar;
30 
35 class TDEUI_EXPORT KStatusBarLabel : public TQLabel
36 {
37  Q_OBJECT
38 
39 public:
40 
41 
42  KStatusBarLabel( const TQString& text, int _id, KStatusBar* parent = 0L, const char *name=0L );
43  ~KStatusBarLabel () {}
44 
45 protected:
46 
47  void mousePressEvent (TQMouseEvent* _event);
48  void mouseReleaseEvent (TQMouseEvent* _event);
49 
50 private:
51 
52  int id;
53 
54 signals:
55 
56  void itemPressed (int id);
57  void itemReleased (int id);
58 };
59 
87 class TDEUI_EXPORT KStatusBar : public TQStatusBar
88 {
89  Q_OBJECT
90 
91 public:
97  enum BarStatus{ Toggle, Show, Hide };
98 
102  KStatusBar( TQWidget* parent = 0L, const char* name = 0L );
103 
109  ~KStatusBar();
110 
127  void insertItem(const TQString& text, int id, int stretch=0, bool permanent=false );
128 
138  inline void insertFixedItem(const TQString& text, int id, bool permanent=false)
139  { insertItem(text, id, 0, permanent); setItemFixed(id); }
140 
146  void removeItem( int id );
147 
156  bool hasItem( int id ) const;
157 
167  void changeItem( const TQString& text, int id );
168 
174  void setItemAlignment(int id, int align);
175 
183  void setItemFixed(int id, int width=-1);
184 
185 signals:
186 
193  void pressed( int );
194 
200  void released( int );
201 
202 private:
203  TQIntDict<KStatusBarLabel> items;
204  class KStatusBarPrivate* d;
205 };
206 
207 #endif // __KSTATUSBAR_H__
208 
KStatusBarLabel
Internal label class for use in KStatusBar.
Definition: kstatusbar.h:35
KStatusBar::insertFixedItem
void insertFixedItem(const TQString &text, int id, bool permanent=false)
Inserts a fixed width text label into status bar.
Definition: kstatusbar.h:138
KStatusBar
KDE statusbar widget
Definition: kstatusbar.h:87
KStatusBar::BarStatus
BarStatus
Definition: kstatusbar.h:97

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.