close Warning: Can't use blame annotator:
svn blame failed on trunk/lib/FlairCore/src/TextEdit.h: 200029 - Couldn't perform atomic initialization

source: flair-src/trunk/lib/FlairCore/src/TextEdit.h@ 2

Last change on this file since 2 was 2, checked in by Sanahuja Guillaume, 8 years ago

flaircore

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