Added GPLv3 headers all over the place.
[fail.git] / src / gui / tool / VGroup.h
blob8ba46955f77f988148e87c7f997ce4915caaff6b
1 /*
2 Fail game engine
3 Copyright 2007 Antoine Chavasse <a.chavasse@gmail.com>
5 This file is part of Fail.
7 Fail is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3
9 as published by the Free Software Foundation.
11 Fail is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef FAIL_GUI_TOOL_VGROUP_H_
20 #define FAIL_GUI_TOOL_VGROUP_H_
22 #include "core/core.h"
23 #include "gui/tool/guitool_export.h"
24 #include "SimpleContainer.h"
25 #include "gui/VGroup_i.h"
26 #include <QVBoxLayout>
27 #include <QPointer>
29 namespace fail { namespace gui { namespace tool
31 class FLGUITOOL_EXPORT VGroup : public VGroup_i, public SimpleContainer
33 public:
34 VGroup( Container* pParent );
35 VGroup( QWidget* pParent );
36 virtual void addChild( const Pointer< Widget >& pChild_ );
38 protected:
39 VGroup() :
40 m_pLayout( new QVBoxLayout )
42 m_pQWidget->setLayout( m_pLayout );
45 private:
46 QPointer< QVBoxLayout > m_pLayout;
48 }}}
50 #endif