58 #ifndef ACG_QT_FLAPBOX_HH
59 #define ACG_QT_FLAPBOX_HH
65 #include <QPushButton>
67 #include <QResizeEvent>
69 #include <QScrollArea>
70 #include "../Config/ACGDefines.hh"
85 QtFlapBox( QWidget * _parent = 0, Qt::WindowFlags _f = 0 );
88 int addItem( QWidget * _widget,
const QIcon & _icon,
const QString & _text );
89 int addItem( QWidget * _widget,
const QString & _text );
93 int indexOf( QWidget * _widget )
const;
94 int insertItem(
int _index, QWidget * _widget,
95 const QIcon & _icon,
const QString & _text );
96 int insertItem(
int _index, QWidget * _widget,
const QString & _text );
98 bool isItemEnabled(
int _index )
const;
99 QIcon itemIcon(
int _index )
const;
101 QString itemText(
int _index )
const;
102 QString itemToolTip(
int _index )
const;
103 void removeItem(
int _index );
104 void setItemEnabled(
int _index,
bool _enabled );
105 void setItemIcon(
int _index,
const QIcon & _icon );
106 void setItemText(
int _index,
const QString & _text );
107 void setItemToolTip(
int _index,
const QString & _toolTip );
108 QWidget * widget(
int _index )
const;
112 bool isItemHidden(
int _index )
const;
113 void setItemHidden(
int _index,
bool _hidden );
115 virtual QSize sizeHint()
const;
118 virtual void resizeEvent ( QResizeEvent * _event );
122 void sizeHintChanged();
144 QPushButton * button;
147 void setText(
const QString & _text )
149 button->setText( _text );
152 void setIcon(
const QIcon & _icon )
154 button->setIcon( _icon );
157 void setToolTip(
const QString & _tip )
159 button->setToolTip( _tip );
164 return button->text();
169 return button->icon();
172 QString toolTip()
const
174 return button->toolTip();
177 bool operator==(
const Flap & _other )
const
179 return widget == _other.widget;
187 void buttonClicked();
188 void widgetDestroyed(QObject*);
192 typedef QList< Flap > FlapList;
194 Flap * flap( QWidget * _widget )
const;
195 const Flap * flap(
int _index )
const;
196 Flap * flap(
int _index );
202 QVBoxLayout * boxlayout;
211 #endif // ACG_QT_FLAPBOX_HH defined
Namespace providing different geometric functions concerning angles.