comparison gui/src/terminal/TerminalDisplay.h @ 13515:7eb8cd35454c

Removed unused code in order shrink down the terminal code and hopefully nearing the goal to replace it.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Mon, 18 Jul 2011 22:04:40 +0200
parents c70511cf64ee
children
comparison
equal deleted inserted replaced
13514:9accc22fd9b0 13515:7eb8cd35454c
41 class QScrollBar; 41 class QScrollBar;
42 class QShowEvent; 42 class QShowEvent;
43 class QHideEvent; 43 class QHideEvent;
44 class QTimerEvent; 44 class QTimerEvent;
45 class QWidget; 45 class QWidget;
46
47 class KMenu;
48 46
49 extern unsigned short vt100_graphics[32]; 47 extern unsigned short vt100_graphics[32];
50 48
51 class ScreenWindow; 49 class ScreenWindow;
52 50
79 * Returns the seed used to generate random colors for the display 77 * Returns the seed used to generate random colors for the display
80 * (in color schemes that support them). 78 * (in color schemes that support them).
81 */ 79 */
82 uint randomSeed () const; 80 uint randomSeed () const;
83 81
84 /** Sets the opacity of the terminal display. */
85 void setOpacity (qreal opacity);
86
87 /** 82 /**
88 * This enum describes the location where the scroll bar is positioned in the display widget. 83 * This enum describes the location where the scroll bar is positioned in the display widget.
89 */ 84 */
90 enum ScrollBarPosition 85 enum ScrollBarPosition
91 { 86 {
224 void setKeyboardCursorShape (KeyboardCursorShape shape); 219 void setKeyboardCursorShape (KeyboardCursorShape shape);
225 /** 220 /**
226 * Returns the shape of the keyboard cursor. See setKeyboardCursorShape() 221 * Returns the shape of the keyboard cursor. See setKeyboardCursorShape()
227 */ 222 */
228 KeyboardCursorShape keyboardCursorShape () const; 223 KeyboardCursorShape keyboardCursorShape () const;
229
230 /**
231 * Sets the color used to draw the keyboard cursor.
232 *
233 * The keyboard cursor defaults to using the foreground color of the character
234 * underneath it.
235 *
236 * @param useForegroundColor If true, the cursor color will change to match
237 * the foreground color of the character underneath it as it is moved, in this
238 * case, the @p color parameter is ignored and the color of the character
239 * under the cursor is inverted to ensure that it is still readable.
240 * @param color The color to use to draw the cursor. This is only taken into
241 * account if @p useForegroundColor is false.
242 */
243 void setKeyboardCursorColor (bool useForegroundColor, const QColor & color);
244
245 /**
246 * Returns the color of the keyboard cursor, or an invalid color if the keyboard
247 * cursor color is set to change according to the foreground color of the character
248 * underneath it.
249 */
250 QColor keyboardCursorColor () const;
251 224
252 /** 225 /**
253 * Returns the number of lines of text which can be displayed in the widget. 226 * Returns the number of lines of text which can be displayed in the widget.
254 * 227 *
255 * This will depend upon the height of the widget and the current font. 228 * This will depend upon the height of the widget and the current font.
679 const QColor & backgroundColor, bool & invertColors); 652 const QColor & backgroundColor, bool & invertColors);
680 // draws the characters or line graphics in a text fragment 653 // draws the characters or line graphics in a text fragment
681 void drawCharacters (QPainter & painter, const QRect & rect, 654 void drawCharacters (QPainter & painter, const QRect & rect,
682 const QString & text, const Character * style, 655 const QString & text, const Character * style,
683 bool invertCharacterColor); 656 bool invertCharacterColor);
684 // draws a string of line graphics
685 void drawLineCharString (QPainter & painter, int x, int y,
686 const QString & str, const Character * attributes);
687 657
688 // draws the preedit string for input methods 658 // draws the preedit string for input methods
689 void drawInputMethodPreeditString (QPainter & painter, const QRect & rect); 659 void drawInputMethodPreeditString (QPainter & painter, const QRect & rect);
690 660
691 // -- 661 // --
801 TripleClickMode _tripleClickMode; 771 TripleClickMode _tripleClickMode;
802 bool _isFixedSize; //Columns / lines are locked. 772 bool _isFixedSize; //Columns / lines are locked.
803 QTimer *_blinkTimer; // active when hasBlinker 773 QTimer *_blinkTimer; // active when hasBlinker
804 QTimer *_blinkCursorTimer; // active when hasBlinkingCursor 774 QTimer *_blinkCursorTimer; // active when hasBlinkingCursor
805 775
806 KMenu *_drop;
807 QString _dropText; 776 QString _dropText;
808 int _dndFileCount; 777 int _dndFileCount;
809 778
810 bool _possibleTripleClick; // is set in mouseDoubleClickEvent and deleted 779 bool _possibleTripleClick; // is set in mouseDoubleClickEvent and deleted
811 // after QApplication::doubleClickInterval() delay 780 // after QApplication::doubleClickInterval() delay