source: flair-src/trunk/lib/FlairCore/src/TabWidget.cpp@ 26

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

sources reformatted with flair-format-dir script

File size: 1.0 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// created: 2012/07/30
6// filename: TabWidget.cpp
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Class displaying a QTabWidget on the ground station
14//
15//
16/*********************************************************************/
17#include "TabWidget.h"
18#include "Tab.h"
19#include "Layout.h"
20#include "LayoutPosition.h"
21
22using std::string;
23
24namespace flair {
25namespace gui {
26
27TabWidget::TabWidget(const LayoutPosition *position, string name,
28 TabPosition_t tabPosition)
29 : Widget(position->getLayout(), name, "TabWidget") {
30 SetVolatileXmlProp("row", position->Row());
31 SetVolatileXmlProp("col", position->Col());
32 SetVolatileXmlProp("position", (int)tabPosition);
33 SendXml();
34
35 delete position;
36}
37
38TabWidget::~TabWidget() {}
39
40} // end namespace gui
41} // end namespace flair
Note: See TracBrowser for help on using the repository browser.