Flair
Framework Libre Air
TextEdit.h
Go to the documentation of this file.
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}
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 
30 class TextEdit : public Widget {
31 public:
44  TextEdit(const LayoutPosition *position, std::string name,
45  size_t buf_size = 255);
46 
51  ~TextEdit();
52 
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
~TextEdit()
Destructor.
TextEdit(const LayoutPosition *position, std::string name, size_t buf_size=255)
Constructor.
namespace of the flair Framework
Definition: Ahrs.h:19
Abstract class for all Framework's widget classes.
Class displaying a QTextEdit on the ground station.
Definition: TextEdit.h:30
Abstract class for all Framework's widget classes.
Definition: Widget.h:38
Class to define a position in a layout on the ground station.
Definition: LayoutPosition.h:28
void Append(const char *format,...)
Append a line.