• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • sources
  • kde-4.12
  • kdesdk
  • okteta
  • libs
  • kasten
  • gui
  • shell
viewareabox.h
Go to the documentation of this file.
1 /*
2  This file is part of the Kasten Framework, made within the KDE community.
3 
4  Copyright 2009 Friedrich W. H. Kossebau <kossebau@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) version 3, or any
10  later version accepted by the membership of KDE e.V. (or its
11  successor approved by the membership of KDE e.V.), which shall
12  act as a proxy defined in Section 6 of version 3 of the license.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef VIEWAREABOX_H
24 #define VIEWAREABOX_H
25 
26 // Qt
27 #include <QtGui/QWidget>
28 
29 class QShortcut;
30 
31 
32 namespace Kasten2
33 {
34 
35 class ViewAreaBox : public QWidget
36 {
37  Q_OBJECT
38 
39  public:
40  enum Area { TopArea, BottomArea };
41 
42  public:
44  explicit ViewAreaBox( QWidget* centralWidget, QWidget* parent = 0 );
45  virtual ~ViewAreaBox();
46 
47  public:
48  QWidget* centralWidget() const;
49  QWidget* bottomWidget() const;
50 
51  public:
53  void setCentralWidget( QWidget* centralWidget );
55  void setBottomWidget( QWidget* bottomWidget );
56 
57  protected Q_SLOTS:
58  void onDone();
59 
60  protected:
61  QWidget* mCentralWidget;
62 
63  QWidget* mBottomWidget;
64  QShortcut* mEscapeShortcut;
65 };
66 
67 }
68 
69 #endif
Kasten2::ViewAreaBox::mBottomWidget
QWidget * mBottomWidget
Definition: viewareabox.h:63
Kasten2::ViewAreaBox::setBottomWidget
void setBottomWidget(QWidget *bottomWidget)
takes ownership of bottomWidget, deletes current bottom widget. Can be 0.
Definition: viewareabox.cpp:82
Kasten2::ViewAreaBox::BottomArea
Definition: viewareabox.h:40
Kasten2::ViewAreaBox::onDone
void onDone()
Definition: viewareabox.cpp:108
QWidget
Kasten2::ViewAreaBox::mEscapeShortcut
QShortcut * mEscapeShortcut
Definition: viewareabox.h:64
Kasten2::ViewAreaBox::bottomWidget
QWidget * bottomWidget() const
Definition: viewareabox.cpp:53
Kasten2::ViewAreaBox
Definition: viewareabox.h:35
Kasten2::ViewAreaBox::ViewAreaBox
ViewAreaBox(QWidget *centralWidget, QWidget *parent=0)
does not take ownership of centralWidget, can be 0.
Definition: viewareabox.cpp:33
Kasten2::ViewAreaBox::TopArea
Definition: viewareabox.h:40
Kasten2::ViewAreaBox::centralWidget
QWidget * centralWidget() const
Definition: viewareabox.cpp:52
Kasten2::ViewAreaBox::setCentralWidget
void setCentralWidget(QWidget *centralWidget)
does not take ownership of centralWidget, can be 0.
Definition: viewareabox.cpp:55
Kasten2::ViewAreaBox::Area
Area
Definition: viewareabox.h:40
Kasten2::ViewAreaBox::~ViewAreaBox
virtual ~ViewAreaBox()
Definition: viewareabox.cpp:113
Kasten2::ViewAreaBox::mCentralWidget
QWidget * mCentralWidget
Definition: viewareabox.h:61
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal