source: flair-src/trunk/lib/FlairCore/src/TabWidget.h@ 348

Last change on this file since 348 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

File size: 1.4 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
4// %flair:license}
5/*!
6 * \file TabWidget.h
7 * \brief Class displaying a QTabWidget on the ground station
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2012/07/30
10 * \version 4.0
11 */
12
13#ifndef TABWIDGET_H
14#define TABWIDGET_H
15
16#include <Widget.h>
17
18namespace flair {
19namespace gui {
20class LayoutPosition;
21
22/*! \class TabWidget
23*
24* \brief Class displaying a QTabWidget on the ground station
25*
26* TabWidget contains Tabs.
27*
28*/
29class TabWidget : public Widget {
30public:
31 /*!
32 * \enum TabPosition_t
33 * \brief Position of tabs
34 */
35 typedef enum {
36 North /*! north */,
37 South /*! south */,
38 West /*! west */,
39 East /*! east */
40 } TabPosition_t;
41
42 /*!
43 * \brief Constructor
44 *
45 * Construct a QTabWidget at given position. \n
46 * The TabWidget will automatically be child of position->getLayout() Layout.
47 *After calling this constructor,
48 * position will be deleted as it is no longer usefull.
49 *
50 * \param position position
51 * \param name name
52 * \param tabPosition position of tabs
53 */
54 TabWidget(const LayoutPosition *position, std::string name,
55 TabPosition_t tabPosition = TabWidget::West);
56
57 /*!
58 * \brief Destructor
59 *
60 */
61 ~TabWidget();
62
63private:
64};
65
66} // end namespace core
67} // end namespace flair
68
69#endif // TABWIDGET_H
Note: See TracBrowser for help on using the repository browser.