KVIrc  4.9.2
DeveloperAPIs
KviTalVBox.h
Go to the documentation of this file.
1 #ifndef _KVI_TAL_VBOX_H_
2 #define _KVI_TAL_VBOX_H_
3 
4 //=============================================================================
5 //
6 // File : KviTalVBox.h
7 // Creation date : Mon Jan 22 2007 11:25:08 by Szymon Stefanek
8 //
9 // This file is part of the KVIrc IRC client distribution
10 // Copyright (C) 2007 Szymon Stefanek (pragma at kvirc dot net)
11 // Copyright (C) 2008 Elvio Basello (hellvis69 at netsons dot org)
12 //
13 // This program is FREE software. You can redistribute it and/or
14 // modify it under the terms of the GNU General Public License
15 // as published by the Free Software Foundation; either version 2
16 // of the License, or (at your option) any later version.
17 //
18 // This program is distributed in the HOPE that it will be USEFUL,
19 // but WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21 // See the GNU General Public License for more details.
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program. If not, write to the Free Software Foundation,
25 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 //
27 //=============================================================================
28 
35 #include "kvi_settings.h"
36 
37 #include <QWidget>
38 #include <QVBoxLayout>
39 
44 class KVILIB_API KviTalVBox : public QWidget
45 {
46  Q_OBJECT
47 public:
54  KviTalVBox(QWidget * pParent, char * pcName = 0);
55 
59  ~KviTalVBox();
60 
61 private:
62  QVBoxLayout * m_pLayout;
63 
64 public:
71  void setStretchFactor(QWidget * pChild, int iStretch);
72 
78  void setSpacing(int iSpacing);
79 
85  void setMargin(int iMargin);
86 
92  void setAlignment(Qt::Alignment alignment);
93 
100  void setAlignment(QWidget * pChild, Qt::Alignment alignment);
101 
107  void addStretch(int iStretch);
108 
109 protected:
110  virtual void childEvent(QChildEvent * e);
111 };
112 
113 #endif // _KVI_TAL_VBOX_H_
QVBoxLayout * m_pLayout
Definition: KviTalVBox.h:62
#define e
Definition: detector.cpp:69
Toolkit Abstraction Layer: vbox class.
Definition: KviTalVBox.h:44
This file contains compile time settings.
#define KVILIB_API
Definition: kvi_settings.h:125