libyui-qt
Loading...
Searching...
No Matches
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 <QTabWidget>
30#include <yui/YDumbTab.h>
31
32
33class QTabBar;
34class QChildEvent;
35
36
37class YQDumbTab : public QTabWidget, public YDumbTab
38{
39 Q_OBJECT
40
41public:
42
46 YQDumbTab( YWidget * parent );
47
51 virtual ~YQDumbTab();
52
58 virtual void addItem( YItem * item );
59
65 virtual void selectItem( YItem * item, bool selected = true );
66
72 virtual void deselectAllItems();
73
79 virtual void deleteAllItems();
80
86 virtual void shortcutChanged();
87
93 virtual void setEnabled( bool enabled );
94
100 virtual int preferredWidth();
101
107 virtual int preferredHeight();
108
114 virtual void setSize( int newWidth, int newHeight );
115
121 virtual void activate();
122
123
124public slots:
125
129 void slotSelected( int index );
130
131
132protected:
133
139 void childEvent( QChildEvent * event ) override;
140
141
142 // Data members
143
144 QTabBar * _tabBar;
145 QWidget * _firstPage;
146};
147
148#endif // YQDumbTab_h
Definition YQDumbTab.h:38
void childEvent(QChildEvent *event) override
Definition YQDumbTab.cc:79
YQDumbTab(YWidget *parent)
Definition YQDumbTab.cc:54
virtual int preferredHeight()
Definition YQDumbTab.cc:246
virtual void shortcutChanged()
Definition YQDumbTab.cc:213
virtual int preferredWidth()
Definition YQDumbTab.cc:236
virtual void deleteAllItems()
Definition YQDumbTab.cc:171
virtual void activate()
Definition YQDumbTab.cc:301
virtual ~YQDumbTab()
Definition YQDumbTab.cc:73
virtual void setSize(int newWidth, int newHeight)
Definition YQDumbTab.cc:256
virtual void setEnabled(bool enabled)
Definition YQDumbTab.cc:229
void slotSelected(int index)
Definition YQDumbTab.cc:200
virtual void selectItem(YItem *item, bool selected=true)
Definition YQDumbTab.cc:156
virtual void addItem(YItem *item)
Definition YQDumbTab.cc:120
virtual void deselectAllItems()
Definition YQDumbTab.cc:193