source: flair-src/trunk/lib/FlairCore/src/Label.h@ 242

Last change on this file since 242 was 15, checked in by Bayard Gildas, 9 years ago

sources reformatted with flair-format-dir script

File size: 1.3 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/*!
6 * \file Label.h
7 * \brief Class displaying a QLabel on the ground station
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2012/08/17
10 * \version 4.0
11 */
12
13#ifndef LABEL_H
14#define LABEL_H
15
16#include <Widget.h>
17
18namespace flair {
19namespace gui {
20
21class LayoutPosition;
22
23/*! \class Label
24*
25* \brief Class displaying a QLabel on the ground station
26*
27*/
28class Label : public Widget {
29public:
30 /*!
31 * \brief Constructor
32 *
33 * Construct a QLabel at given position. \n
34 * The Label will automatically be child of position->getLayout() Layout. After
35 *calling this constructor,
36 * position will be deleted as it is no longer usefull.
37 *
38 * \param parent parent
39 * \param name name
40 * \param buf_size size of the text buffer
41 */
42 Label(const LayoutPosition *position, std::string name,
43 size_t buf_size = 255);
44
45 /*!
46 * \brief Destructor
47 *
48 */
49 ~Label();
50
51 /*!
52 * \brief Set text
53 *
54 * \param format text string to display, see standard printf
55 */
56 void SetText(const char *format, ...);
57
58private:
59 char *printf_buffer;
60};
61
62} // end namespace gui
63} // end namespace flair
64
65#endif // LABEL_H
Note: See TracBrowser for help on using the repository browser.