Last change
on this file since 219 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
1.4 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 TextEdit.h
|
---|
7 | * \brief Class displaying a QTextEdit 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 TEXTEDIT_H
|
---|
14 | #define TEXTEDIT_H
|
---|
15 |
|
---|
16 | #include <Widget.h>
|
---|
17 |
|
---|
18 | namespace flair {
|
---|
19 | namespace gui {
|
---|
20 |
|
---|
21 | class LayoutPosition;
|
---|
22 |
|
---|
23 | /*! \class TextEdit
|
---|
24 | *
|
---|
25 | * \brief Class displaying a QTextEdit on the ground station
|
---|
26 | *
|
---|
27 | * QTextEdit allows printing on multiple lines. \n
|
---|
28 | *
|
---|
29 | */
|
---|
30 | class TextEdit : public Widget {
|
---|
31 | public:
|
---|
32 | /*!
|
---|
33 | * \brief Constructor
|
---|
34 | *
|
---|
35 | * Construct a QTabWidget at given position. \n
|
---|
36 | * The TextEdit will automatically be child of position->getLayout() Layout.
|
---|
37 | *After calling this constructor,
|
---|
38 | * position will be deleted as it is no longer usefull.
|
---|
39 | *
|
---|
40 | * \param parent parent
|
---|
41 | * \param name name
|
---|
42 | * \param buf_size size of the text buffer
|
---|
43 | */
|
---|
44 | TextEdit(const LayoutPosition *position, std::string name,
|
---|
45 | size_t buf_size = 255);
|
---|
46 |
|
---|
47 | /*!
|
---|
48 | * \brief Destructor
|
---|
49 | *
|
---|
50 | */
|
---|
51 | ~TextEdit();
|
---|
52 |
|
---|
53 | /*!
|
---|
54 | * \brief Append a line
|
---|
55 | *
|
---|
56 | * \param format text string to display, see standard printf
|
---|
57 | */
|
---|
58 | void Append(const char *format, ...);
|
---|
59 |
|
---|
60 | private:
|
---|
61 | char *printf_buffer;
|
---|
62 | xmlNodePtr text_node;
|
---|
63 | };
|
---|
64 |
|
---|
65 | } // end namespace gui
|
---|
66 | } // end namespace flair
|
---|
67 |
|
---|
68 | #endif // TEXTEDIT_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.