source: flair-dev/trunk/include/FlairCore/Label.h@ 13

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

formatting script + include reformatted

File size: 1.3 KB
RevLine 
[2]1// %flair:license{
[13]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[2]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
[13]18namespace flair {
19namespace gui {
[2]20
[13]21class LayoutPosition;
[2]22
[13]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);
[2]44
[13]45 /*!
46 * \brief Destructor
47 *
48 */
49 ~Label();
[2]50
[13]51 /*!
52 * \brief Set text
53 *
54 * \param format text string to display, see standard printf
55 */
56 void SetText(const char *format, ...);
[2]57
[13]58private:
59 char *printf_buffer;
60};
[2]61
62} // end namespace gui
63} // end namespace flair
64
65#endif // LABEL_H
Note: See TracBrowser for help on using the repository browser.