libyui  3.1.5
 All Classes Files Functions Variables Typedefs Enumerations Friends Pages
YEmpty.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: YEmpty.h
20 
21  Author: Stefan Hundhammer <sh@suse.de>
22 
23 /-*/
24 
25 #ifndef YEmpty_h
26 #define YEmpty_h
27 
28 #include "YWidget.h"
29 #include "ImplPtr.h"
30 
31 
32 class YEmptyPrivate;
33 
34 
35 class YEmpty : public YWidget
36 {
37 protected:
38  /**
39  * Constructor.
40  **/
41  YEmpty( YWidget * parent );
42 
43 public:
44  /**
45  * Destructor.
46  **/
47  virtual ~YEmpty();
48 
49  /**
50  * Returns a descriptive name of this widget class for logging,
51  * debugging etc.
52  **/
53  virtual const char * widgetClass() const { return "YEmpty"; }
54 
55  /**
56  * Preferred width of the widget.
57  *
58  * Reimplemented from YWidget.
59  **/
60  virtual int preferredWidth();
61 
62  /**
63  * Preferred height of the widget.
64  *
65  * Reimplemented from YWidget.
66  **/
67  virtual int preferredHeight();
68 
69 private:
70 
72 };
73 
74 
75 #endif // YEmpty_h
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
Definition: YEmpty.h:53
virtual ~YEmpty()
Destructor.
Definition: YEmpty.cc:44
YWidget * parent() const
Return this widget's parent or 0 if it doesn't have a parent.
Definition: YWidget.cc:269
Definition: YEmpty.h:35
virtual int preferredHeight()
Preferred height of the widget.
Definition: YEmpty.cc:56
virtual int preferredWidth()
Preferred width of the widget.
Definition: YEmpty.cc:50
YEmpty(YWidget *parent)
Constructor.
Definition: YEmpty.cc:36
Abstract base class of all UI widgets.
Definition: YWidget.h:54