Mercurial > fife-parpg
comparison engine/core/gui/console/console.cpp @ 157:bb9902910067
input_rework merged!
Bad features:
* Broken DND for zero-projekt.
* Design short-comings.
author | phoku@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 14 Oct 2008 07:41:48 +0000 |
parents | 90005975cdbb |
children | 756b895e1dab |
comparison
equal
deleted
inserted
replaced
156:376b8afc9a18 | 157:bb9902910067 |
---|---|
76 | 76 |
77 m_animationTimer.setInterval(20); | 77 m_animationTimer.setInterval(20); |
78 m_animationTimer.setCallback( boost::bind(&Console::updateAnimation, this) ); | 78 m_animationTimer.setCallback( boost::bind(&Console::updateAnimation, this) ); |
79 | 79 |
80 m_toolsbutton->addActionListener(this); | 80 m_toolsbutton->addActionListener(this); |
81 m_toolsbutton->setFocusable(false); | |
82 m_input->addFocusListener(this); | |
81 | 83 |
82 GuiFont* font = GUIManager::instance()->createFont(); | 84 GuiFont* font = GUIManager::instance()->createFont(); |
83 font->setColor(255,255,255); | 85 font->setColor(255,255,255); |
84 setIOFont(font); | 86 setIOFont(font); |
85 } | 87 } |
297 | 299 |
298 void Console::setIOFont(GuiFont* font) { | 300 void Console::setIOFont(GuiFont* font) { |
299 m_input->setFont(font); | 301 m_input->setFont(font); |
300 m_output->setFont(font); | 302 m_output->setFont(font); |
301 } | 303 } |
304 | |
305 void Console::focusLost(const gcn::Event& ) { | |
306 hide(); | |
307 } | |
302 } | 308 } |
303 /* vim: set noexpandtab: set shiftwidth=2: set tabstop=2: */ | 309 /* vim: set noexpandtab: set shiftwidth=2: set tabstop=2: */ |