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

Last change on this file since 2 was 2, checked in by Sanahuja Guillaume, 6 years ago

flaircore

File size: 1015 bytes
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
25{
26namespace gui
27{
28
29TabWidget::TabWidget(const LayoutPosition* position,string name,TabPosition_t tabPosition): Widget(position->getLayout(),name,"TabWidget")
30{
31    SetVolatileXmlProp("row",position->Row());
32    SetVolatileXmlProp("col",position->Col());
33    SetVolatileXmlProp("position",(int)tabPosition);
34    SendXml();
35
36    delete position;
37}
38
39TabWidget::~TabWidget()
40{
41}
42
43} // end namespace gui
44} // end namespace flair
Note: See TracBrowser for help on using the repository browser.