~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/gui/EditTextWidget.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna, Franczen Attila, Luca Falavigna
  • Date: 2008-11-08 12:04:12 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081108120412-w6xq87vzgokstfey
Tags: 2.6.1-0ubuntu1
[ Franczen Attila ]
* New upstream release (LP: #183571).
* Updated policy to 3.8.0.

[ Luca Falavigna ]
* debian/patches/gcc-4.3: fix FTBFS with gcc-4.3 compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2008 by Bradford W. Mott and the Stella team
12
12
//
13
13
// See the file "license" for information on usage and redistribution of
14
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
15
//
16
 
// $Id: EditTextWidget.cxx,v 1.14 2006/02/22 17:38:04 stephena Exp $
 
16
// $Id: EditTextWidget.cxx,v 1.19 2008/02/06 13:45:23 stephena Exp $
17
17
//
18
18
//   Based on code from ScummVM - Scumm Interpreter
19
19
//   Copyright (C) 2002-2004 The ScummVM project
34
34
  _type = kEditTextWidget;
35
35
 
36
36
  _editable = true;
 
37
  startEditMode();  // We're always in edit mode
37
38
}
38
39
 
39
40
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
82
83
  // Draw the text
83
84
  adjustOffset();
84
85
  fb.drawString(_font, _editString, _x + 2, _y + 2, getEditRect().width(),
85
 
                _color, kTextAlignLeft, -_editScrollOffset, false);
 
86
                _textcolor, kTextAlignLeft, -_editScrollOffset, false);
86
87
 
87
88
  // Draw the caret 
88
89
  drawCaret();
105
106
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
106
107
void EditTextWidget::startEditMode()
107
108
{
 
109
  EditableWidget::startEditMode();
108
110
}
109
111
 
110
112
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
111
113
void EditTextWidget::endEditMode()
112
114
{
 
115
  EditableWidget::endEditMode();
113
116
}
114
117
 
115
118
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
116
119
void EditTextWidget::abortEditMode()
117
120
{
118
121
  setEditString(_backupString);
 
122
  EditableWidget::abortEditMode();
119
123
}