Last change
on this file since 215 was 15, checked in by Bayard Gildas, 8 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.1 KB
|
Rev | Line | |
---|
[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: 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 |
|
---|
[15] | 23 | namespace flair {
|
---|
| 24 | namespace gui {
|
---|
[2] | 25 |
|
---|
[15] | 26 | Layout::Layout(const Widget *parent, string name, string type)
|
---|
| 27 | : Widget(parent, name, type) {
|
---|
| 28 | mutex = new core::Mutex(this, name);
|
---|
[2] | 29 | }
|
---|
| 30 |
|
---|
[15] | 31 | Layout::~Layout() {}
|
---|
[2] | 32 |
|
---|
[15] | 33 | LayoutPosition *Layout::LastRowLastCol(void) const {
|
---|
| 34 | return new LayoutPosition(this, -1, 0);
|
---|
[2] | 35 | }
|
---|
| 36 |
|
---|
[15] | 37 | LayoutPosition *Layout::NewRow(void) const {
|
---|
| 38 | return new LayoutPosition(this, -1, -1);
|
---|
[2] | 39 | }
|
---|
| 40 |
|
---|
[15] | 41 | LayoutPosition *Layout::At(uint16_t row, uint16_t col) const {
|
---|
| 42 | return new LayoutPosition(this, row, col);
|
---|
[2] | 43 | }
|
---|
| 44 |
|
---|
| 45 | } // end namespace gui
|
---|
| 46 | } // end namespace flair
|
---|
Note:
See
TracBrowser
for help on using the repository browser.