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

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

flaircore

File size: 1.1 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: 2011/10/07
6// filename: Layout.cpp
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: Abstract class to display a layout on the ground station
14//
15//
16/*********************************************************************/
17#include "Layout.h"
18#include "LayoutPosition.h"
19#include "Mutex.h"
20
21using std::string;
22
23namespace flair
24{
25namespace gui
26{
27
28Layout::Layout(const Widget* parent,string name,string type): Widget(parent,name,type)
29{
30 mutex=new core::Mutex(this,name);
31}
32
33Layout::~Layout()
34{
35
36}
37
38LayoutPosition* Layout::LastRowLastCol(void) const
39{
40 return new LayoutPosition(this,-1,0);
41}
42
43LayoutPosition* Layout::NewRow(void) const
44{
45 return new LayoutPosition(this,-1,-1);
46}
47
48LayoutPosition* Layout::At(uint16_t row,uint16_t col) const
49{
50 return new LayoutPosition(this,row,col);
51}
52
53} // end namespace gui
54} // end namespace flair
Note: See TracBrowser for help on using the repository browser.