libyui  3.3.2
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  * A widget with zero size, useful as a placeholder.
36  **/
37 class YEmpty : public YWidget
38 {
39 protected:
40  /**
41  * Constructor.
42  **/
43  YEmpty( YWidget * parent );
44 
45 public:
46  /**
47  * Destructor.
48  **/
49  virtual ~YEmpty();
50 
51  /**
52  * Returns a descriptive name of this widget class for logging,
53  * debugging etc.
54  **/
55  virtual const char * widgetClass() const { return "YEmpty"; }
56 
57  /**
58  * Preferred width of the widget.
59  *
60  * Reimplemented from YWidget.
61  **/
62  virtual int preferredWidth();
63 
64  /**
65  * Preferred height of the widget.
66  *
67  * Reimplemented from YWidget.
68  **/
69  virtual int preferredHeight();
70 
71 private:
72 
74 };
75 
76 
77 #endif // YEmpty_h
virtual ~YEmpty()
Destructor.
Definition: YEmpty.cc:44
YWidget * parent() const
Return this widget&#39;s parent or 0 if it doesn&#39;t have a parent.
Definition: YWidget.cc:269
A widget with zero size, useful as a placeholder.
Definition: YEmpty.h:37
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
virtual const char * widgetClass() const
Returns a descriptive name of this widget class for logging, debugging etc.
Definition: YEmpty.h:55
Abstract base class of all UI widgets.
Definition: YWidget.h:54