21#ifndef __KSTATUSBAR_H__
22#define __KSTATUSBAR_H__
24#include <tqstatusbar.h>
27#include <tdelibs_export.h>
35class TDEUI_EXPORT KStatusBarLabel :
public TQLabel
42 KStatusBarLabel(
const TQString& text,
int _id,
KStatusBar* parent = 0L,
const char *name=0L );
43 ~KStatusBarLabel () {}
47 void mousePressEvent (TQMouseEvent* _event);
48 void mouseReleaseEvent (TQMouseEvent* _event);
56 void itemPressed (
int id);
57 void itemReleased (
int id);
102 KStatusBar( TQWidget* parent = 0L,
const char* name = 0L );
127 void insertItem(
const TQString& text,
int id,
int stretch=0,
bool permanent=
false );
146 void removeItem(
int id );
156 bool hasItem(
int id )
const;
167 void changeItem(
const TQString& text,
int id );
174 void setItemAlignment(
int id,
int align);
183 void setItemFixed(
int id,
int width=-1);
203 TQIntDict<KStatusBarLabel> items;
204 class KStatusBarPrivate* d;
void released(int)
Emitted when mouse is released over item id.
void insertFixedItem(const TQString &text, int id, bool permanent=false)
Inserts a fixed width text label into status bar.
KStatusBar(TQWidget *parent=0L, const char *name=0L)
Constructs a status bar.
void setItemFixed(int id, int width=-1)
Sets item id to have fixed width.
void insertItem(const TQString &text, int id, int stretch=0, bool permanent=false)
Inserts a text label into the status bar.
void pressed(int)
Emitted when mouse is pressed over item id.