diff options
author | David Athay <ko2fan@gmail.com> | 2008-11-12 17:21:08 +0000 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2008-11-12 17:21:08 +0000 |
commit | 218ab7cb408cee2148e87a15f8177b0a0a82c66a (patch) | |
tree | e78a774737f1f023947e36aeb857dbb28551caa8 | |
parent | 87607bbc8bf97d8204be4b3eae6eeb5a51bb0ea4 (diff) | |
download | mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.gz mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.bz2 mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.tar.xz mana-218ab7cb408cee2148e87a15f8177b0a0a82c66a.zip |
Fixed multiline editing for letters
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/gui/npcpostdialog.cpp | 4 | ||||
-rw-r--r-- | src/gui/npcpostdialog.h | 3 |
3 files changed, 7 insertions, 2 deletions
@@ -2,6 +2,8 @@ * src/main.cpp: Fixed Icon loading. * src/gui/chat.cpp: Fixed chat window transparency. + * src/gui/npcpostdialog.cpp, src/gui/npcpostdialog.h: Fixed multiline + editing for letters. 2008-11-11 Philipp Sehmisch <tmw@crushnet.org> diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index b50154a8..2d3fce64 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -22,6 +22,7 @@ */ #include "npcpostdialog.h" +#include "textbox.h" #include "textfield.h" #include "button.h" #include "scrollarea.h" @@ -53,8 +54,9 @@ NpcPostDialog::NpcPostDialog(): sendButton->getY()); // create textfield for letter - mText = new TextField(); + mText = new TextBox(); mText->setHeight(400 - (mSender->getHeight() + sendButton->getHeight())); + mText->setEditable(true); // create scroll box for letter text ScrollArea *scrollArea = new ScrollArea(mText); diff --git a/src/gui/npcpostdialog.h b/src/gui/npcpostdialog.h index 33a3a8f7..e142dac5 100644 --- a/src/gui/npcpostdialog.h +++ b/src/gui/npcpostdialog.h @@ -28,6 +28,7 @@ #include "window.h" +class TextBox; class TextField; class NpcPostDialog : public Window, public gcn::ActionListener @@ -49,7 +50,7 @@ public: void clear(); private: - TextField *mText; + TextBox *mText; TextField *mSender; }; |