-rw-r--r-- | noncore/apps/opie-console/emulation_widget.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/emulation_widget.h b/noncore/apps/opie-console/emulation_widget.h index 9d0f63e..a57803d 100644 --- a/noncore/apps/opie-console/emulation_widget.h +++ b/noncore/apps/opie-console/emulation_widget.h | |||
@@ -1,80 +1,80 @@ | |||
1 | // opie console includes | 1 | // opie console includes |
2 | #include "widget_layer.h" | 2 | #include "widget_layer.h" |
3 | #include "profile.h" | 3 | #include "profile.h" |
4 | #include "common.h" | 4 | #include "common.h" |
5 | 5 | ||
6 | // qt includes | 6 | // qt includes |
7 | #include <qwidget.h> | 7 | #include <qwidget.h> |
8 | #include <qpainter.h> | 8 | #include <qpainter.h> |
9 | #include <qstring.h> | 9 | #include <qstring.h> |
10 | #include <qarray.h> | 10 | #include <qarray.h> |
11 | #include <qrect.h> | 11 | #include <qrect.h> |
12 | 12 | ||
13 | 13 | ||
14 | /** | 14 | /** |
15 | * EmulationWidget | 15 | * EmulationWidget |
16 | * simple implementation of EmulationLayer | 16 | * simple implementation of EmulationLayer |
17 | * (doesn't support scrollbar, history, etc, yet) | 17 | * (doesn't support scrollbar, history, etc, yet) |
18 | */ | 18 | */ |
19 | class EmulationWidget : public WidgetLayer | 19 | class EmulationWidget : public WidgetLayer |
20 | { Q_OBJECT | 20 | { Q_OBJECT |
21 | 21 | ||
22 | public: | 22 | public: |
23 | 23 | ||
24 | /** | 24 | /** |
25 | * constructor | 25 | * constructor |
26 | * @param const Profile& config, the configuration | 26 | * @param const Profile& config, the configuration |
27 | * @param QWidget* parent, parent widget | 27 | * @param QWidget* parent, parent widget |
28 | * @param const char* name, the name of the widget | 28 | * @param const char* name, the name of the widget |
29 | */ | 29 | */ |
30 | EmulationWidget( const Profile& config, QWidget *parent=0, const char *name =0 ); | 30 | EmulationWidget( const Profile& config, QWidget *parent=0, const char *name =0 ); |
31 | 31 | ||
32 | /** | 32 | /** |
33 | * destructor | 33 | * destructor |
34 | */ | 34 | */ |
35 | ~EmulationWidget(); | 35 | ~EmulationWidget(); |
36 | 36 | ||
37 | /** | 37 | /** |
38 | * sets the image | 38 | * sets the image |
39 | * @param QArray<Character> const newimg, the new image | 39 | * @param QArray<Character> const newimg, the new image |
40 | * @param int lines, lines of the new image | 40 | * @param int lines, lines of the new image |
41 | * @param int columns, columns of the new image | 41 | * @param int columns, columns of the new image |
42 | */ | 42 | */ |
43 | virtual void setImage( QArray<Character> const newimg, int columns, int lines ); | 43 | virtual void setImage( QArray<Character> const newimg, int columns, int lines ); |
44 | 44 | ||
45 | /** | 45 | /** |
46 | * reloads configuration | 46 | * reloads configuration |
47 | * @param const Profile& config, configuration | 47 | * @param const Profile& config, configuration |
48 | */ | 48 | */ |
49 | virtual void reloadConfig( const Profile& config ); | 49 | virtual void reloadConfig( const Profile& config ); |
50 | 50 | ||
51 | /** | 51 | /** |
52 | * sets the scrollbar (not yet implemented) | 52 | * sets the scrollbar (not yet implemented) |
53 | */ | 53 | */ |
54 | virtual void setScroll( int cursor, int slines ); | 54 | virtual void setScroll( int cursor, int slines ); |
55 | 55 | ||
56 | /** | 56 | /** |
57 | * scrolls (not yet implemented) | 57 | * scrolls (not yet implemented) |
58 | * @param int value, scroll by this value | 58 | * @param int value, scroll by this value |
59 | */ | 59 | */ |
60 | virtual void scroll( int value ); | 60 | virtual void scroll( int value ); |
61 | 61 | ||
62 | protected: | 62 | protected: |
63 | 63 | ||
64 | /** | 64 | /** |
65 | * calculates current image bounds | 65 | * calculates current image bounds |
66 | */ | 66 | */ |
67 | virtual void calcGeometry(); | 67 | virtual void calcGeometry(); |
68 | 68 | ||
69 | /** | 69 | /** |
70 | * draws a String | 70 | * draws a String |
71 | * @param QString& string, string to be drawn | 71 | * @param QString& string, string to be drawn |
72 | * @param QPainter& painter, painter, that should draw | 72 | * @param QPainter& painter, painter, that should draw |
73 | * @param QRect rect, rect to be drawn into | 73 | * @param QRect rect, rect to be drawn into |
74 | * @param Character attr, attributes of Characters | 74 | * @param Character attr, attributes of Characters |
75 | * @param bool usePixmap, if to use the background pixmap (currently not supported) | 75 | * @param bool usePixmap, if to use the background pixmap (currently not supported) |
76 | * @param bool clear, if rect should be cleared | 76 | * @param bool clear, if rect should be cleared |
77 | */ | 77 | */ |
78 | void drawAttrString( QString& string, QPainter& painter, QRect rect, Character attr, bool pm, bool clear ); | 78 | void drawAttrString( QString& string, QPainter& painter, QRect rect, Character attr, bool pm, bool clear ); |
79 | 79 | ||
80 | } | 80 | }; |