libyui-qt
YQDumbTab.h
1 /*
2  Copyright (C) 2000-2012 Novell, Inc
3  This library is free software; you can redistribute it and/or modify
4  it under the terms of the GNU Lesser General Public License as
5  published by the Free Software Foundation; either version 2.1 of the
6  License, or (at your option) version 3.0 of the License. This library
7  is distributed in the hope that it will be useful, but WITHOUT ANY
8  WARRANTY; without even the implied warranty of MERCHANTABILITY or
9  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10  License for more details. You should have received a copy of the GNU
11  Lesser General Public License along with this library; if not, write
12  to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13  Floor, Boston, MA 02110-1301 USA
14 */
15 
16 
17 /*-/
18 
19  File: YQDumbTab.h
20 
21  Author: Stefan Hundhammer <shundhammer@suse.de>
22 
23 /-*/
24 
25 
26 #ifndef YQDumbTab_h
27 #define YQDumbTab_h
28 
29 #include <qwidget.h>
30 #include <yui/YDumbTab.h>
31 
32 class QTabBar;
33 class QPaintEvent;
34 
35 
36 class YQDumbTab : public QWidget, public YDumbTab
37 {
38  Q_OBJECT
39 
40 public:
41 
45  YQDumbTab( YWidget * parent );
46 
50  virtual ~YQDumbTab();
51 
57  virtual void addItem( YItem * item );
58 
64  virtual void selectItem( YItem * item, bool selected = true );
65 
71  virtual void deselectAllItems();
72 
78  virtual void deleteAllItems();
79 
85  virtual void shortcutChanged();
86 
92  virtual void setEnabled( bool enabled );
93 
99  virtual int preferredWidth();
100 
106  virtual int preferredHeight();
107 
113  virtual void setSize( int newWidth, int newHeight );
114 
120  virtual void activate();
121 
122 public slots:
123 
127  void slotSelected( int index );
128 
129 protected:
130 
131  QTabBar * _tabBar;
132 };
133 
134 #endif // YQDumbTab_h
virtual void addItem(YItem *item)
Definition: YQDumbTab.cc:77
virtual void activate()
Definition: YQDumbTab.cc:241
virtual void deleteAllItems()
Definition: YQDumbTab.cc:106
YQDumbTab(YWidget *parent)
Definition: YQDumbTab.cc:48
void slotSelected(int index)
Definition: YQDumbTab.cc:127
virtual int preferredHeight()
Definition: YQDumbTab.cc:173
virtual ~YQDumbTab()
Definition: YQDumbTab.cc:70
Definition: YQDumbTab.h:36
virtual void shortcutChanged()
Definition: YQDumbTab.cc:139
virtual void setEnabled(bool enabled)
Definition: YQDumbTab.cc:155
virtual int preferredWidth()
Definition: YQDumbTab.cc:163
virtual void selectItem(YItem *item, bool selected=true)
Definition: YQDumbTab.cc:91
virtual void deselectAllItems()
Definition: YQDumbTab.cc:120
virtual void setSize(int newWidth, int newHeight)
Definition: YQDumbTab.cc:183