Rev | Line | |
---|
[2] | 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 |
|
---|
| 21 | using std::string;
|
---|
| 22 |
|
---|
| 23 | namespace flair
|
---|
| 24 | {
|
---|
| 25 | namespace gui
|
---|
| 26 | {
|
---|
| 27 |
|
---|
| 28 | Layout::Layout(const Widget* parent,string name,string type): Widget(parent,name,type)
|
---|
| 29 | {
|
---|
| 30 | mutex=new core::Mutex(this,name);
|
---|
| 31 | }
|
---|
| 32 |
|
---|
| 33 | Layout::~Layout()
|
---|
| 34 | {
|
---|
| 35 |
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | LayoutPosition* Layout::LastRowLastCol(void) const
|
---|
| 39 | {
|
---|
| 40 | return new LayoutPosition(this,-1,0);
|
---|
| 41 | }
|
---|
| 42 |
|
---|
| 43 | LayoutPosition* Layout::NewRow(void) const
|
---|
| 44 | {
|
---|
| 45 | return new LayoutPosition(this,-1,-1);
|
---|
| 46 | }
|
---|
| 47 |
|
---|
| 48 | LayoutPosition* 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.