kbuttonbox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef __KBUTTONBOX__H__
00021
#define __KBUTTONBOX__H__
00022
00023
#include <qwidget.h>
00024
class QPushButton;
00025
00026
class KButtonBoxPrivate;
00039 class KButtonBox :
public QWidget
00040 {
00041 Q_OBJECT
00042
00043
public:
00051
KButtonBox(
QWidget *parent, Orientation _orientation = Horizontal,
00052
int border = 0,
int _autoborder = 6);
00053
00057
~KButtonBox();
00058
00065
virtual QSize sizeHint()
const;
00066
virtual QSizePolicy sizePolicy()
const;
00067
virtual void resizeEvent(
QResizeEvent *);
00068
00080
QPushButton *
addButton(
const QString& text,
bool noexpand =
false);
00081
00095
QPushButton *
addButton(
const QString& text,
QObject * receiver,
const char * slot,
bool noexpand =
false);
00096
00108
void addStretch(
int scale = 1);
00109
00116
void layout();
00117
00118
public:
00119
class Item;
00120
protected:
00125
QSize bestButtonSize()
const;
00126
void placeButtons();
00127
QSize buttonSizeHint(
QPushButton *)
const;
00128
00129
protected:
00130
virtual void virtual_hook(
int id,
void* data );
00131
private:
00132 KButtonBoxPrivate *data;
00133 };
00134
00135
#endif
This file is part of the documentation for kdeui Library Version 3.2.3.