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

Last change on this file was 15, checked in by Bayard Gildas, 6 years ago

sources reformatted with flair-format-dir script

File size: 1.0 KB
RevLine 
[2]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]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
[15]24namespace flair {
25namespace gui {
[2]26
[15]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();
[2]34
[15]35  delete position;
[2]36}
37
[15]38TabWidget::~TabWidget() {}
[2]39
40} // end namespace gui
41} // end namespace flair
Note: See TracBrowser for help on using the repository browser.