From 45e08ccde95c84932557701235558e72cdc95f1b Mon Sep 17 00:00:00 2001 From: pixel Date: Sat, 28 Oct 2006 16:50:46 +0000 Subject: Fixing caps in class names. --- lib/inputtext.cc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/inputtext.cc') diff --git a/lib/inputtext.cc b/lib/inputtext.cc index 094f04b..9a63c07 100644 --- a/lib/inputtext.cc +++ b/lib/inputtext.cc @@ -17,41 +17,41 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: inputtext.cc,v 1.3 2006-02-02 11:01:13 pixel Exp $ */ +/* $Id: inputtext.cc,v 1.4 2006-10-28 16:50:46 pixel Exp $ */ #include #include #include -#include "font.h" +#include "Font.h" #include "engine.h" -#include "widgets.h" +#include "Widgets.h" #include "sprite.h" /********************** * The InputText entry * **********************/ -mogltk::widgets::InputText::InputText(mogltk::widgets::action * _a, shape * sh, mogltk::widget * father, int _x, int _y) : widget(father, _x, _y, 80, 20, 0, "InputText", sh), it_keyevent(0), a(_a), cursor_visible(false), cursor_pos(0) { - it_keyevent = new mogltk::widgets::InputText::inputtext_keyevent(this); +mogltk::Widgets::InputText::InputText(mogltk::Widgets::action * _a, Shape * sh, mogltk::Widget * father, int _x, int _y) : Widget(father, _x, _y, 80, 20, 0, "InputText", sh), it_keyevent(0), a(_a), cursor_visible(false), cursor_pos(0) { + it_keyevent = new mogltk::Widgets::InputText::inputtext_keyevent(this); set_timed_event(500); } -mogltk::widgets::InputText::~InputText() throw (GeneralException) { +mogltk::Widgets::InputText::~InputText() throw (GeneralException) { delete it_keyevent; } -void mogltk::widgets::InputText::activate() { +void mogltk::Widgets::InputText::activate() { if (a) a->do_action(this); } -mogltk::widgets::InputText::inputtext_keyevent::inputtext_keyevent(mogltk::widgets::InputText * _father) : father(_father) { +mogltk::Widgets::InputText::inputtext_keyevent::inputtext_keyevent(mogltk::Widgets::InputText * _father) : father(_father) { } -void mogltk::widgets::InputText::inputtext_keyevent::up(SDL_keysym k) { +void mogltk::Widgets::InputText::inputtext_keyevent::up(SDL_keysym k) { } -void mogltk::widgets::InputText::inputtext_keyevent::down(SDL_keysym k) { +void mogltk::Widgets::InputText::inputtext_keyevent::down(SDL_keysym k) { if (father->GetVisible()) { switch (k.sym) { case SDLK_BACKSPACE: @@ -78,15 +78,15 @@ void mogltk::widgets::InputText::inputtext_keyevent::down(SDL_keysym k) { } } -const String & mogltk::widgets::InputText::GetText() const{ +const String & mogltk::Widgets::InputText::GetText() const{ return text; } -void mogltk::widgets::InputText::SetText(const String & _text) { +void mogltk::Widgets::InputText::SetText(const String & _text) { text = _text; } -bool mogltk::widgets::InputText::process_event(int x, int y, mogltk::event_t event) { +bool mogltk::Widgets::InputText::process_event(int x, int y, mogltk::event_t event) { switch (event) { case E_TIMER: set_timed_event(500); @@ -96,7 +96,7 @@ bool mogltk::widgets::InputText::process_event(int x, int y, mogltk::event_t eve return false; } -void mogltk::widgets::InputText::draw() { +void mogltk::Widgets::InputText::draw() { int x = MIN(SystemFont->singletextsize(text) + GetAX() + 2, GetAX2() - 2); Shaper()->box3d(GetAX(), GetAY(), GetAX2(), GetAY2(), DOS_WHITE, DOS_HIGH_WHITE, DOS_GRAY, 2, true); @@ -111,7 +111,7 @@ void mogltk::widgets::InputText::draw() { * The InputDialog child * ************************/ -mogltk::widgets::InputDialog::InputDialog(mogltk::widgets::action * a, shape * sh, mogltk::widget * father, const String & caption, const String & text, mogltk::font * _font) : SmartBox(sh, father, 0, 0, 0, 0, caption), InputDialog_font(_font) { +mogltk::Widgets::InputDialog::InputDialog(mogltk::Widgets::action * a, Shape * sh, mogltk::Widget * father, const String & caption, const String & text, mogltk::Font * _font) : SmartBox(sh, father, 0, 0, 0, 0, caption), InputDialog_font(_font) { rect size = InputDialog_font->size(text); rect lsize = size; @@ -130,10 +130,10 @@ mogltk::widgets::InputDialog::InputDialog(mogltk::widgets::action * a, shape * s set_exclusive(father); } -mogltk::widgets::InputDialog::~InputDialog() throw (GeneralException) { +mogltk::Widgets::InputDialog::~InputDialog() throw (GeneralException) { unset_exclusive(Father()); } -String mogltk::widgets::InputDialog::GetText() { +String mogltk::Widgets::InputDialog::GetText() { return it->GetText(); } -- cgit v1.2.3