Removed obsolete redraw handler.
This commit is contained in:
parent
34c2cd503f
commit
bd718b0613
2 changed files with 0 additions and 22 deletions
|
@ -29,7 +29,6 @@ editor_toolkit::editor_toolkit(editor_display& gui, const CKey& key,
|
|||
: gui_(gui)
|
||||
, key_(key)
|
||||
, palette_manager_()
|
||||
, toolbar_dirty_(true)
|
||||
, mouse_action_(NULL)
|
||||
, mouse_actions_()
|
||||
, mouse_action_hints_()
|
||||
|
@ -125,7 +124,6 @@ void editor_toolkit::hotkey_set_mouse_action(hotkey::HOTKEY_COMMAND command)
|
|||
gui_.set_palette_report(palette_manager_->active_palette().active_group_report());
|
||||
|
||||
set_mouseover_overlay();
|
||||
redraw_toolbar();
|
||||
gui_.invalidate_game_status();
|
||||
} else {
|
||||
ERR_ED << "Invalid hotkey command ("
|
||||
|
@ -178,19 +176,6 @@ void editor_toolkit::adjust_size()
|
|||
brush_bar_->adjust_size();
|
||||
brush_bar_->draw(true);
|
||||
|
||||
redraw_toolbar();
|
||||
}
|
||||
|
||||
void editor_toolkit::redraw_toolbar()
|
||||
{
|
||||
BOOST_FOREACH(mouse_action_map::value_type a, mouse_actions_) {
|
||||
if (a.second->toolbar_button() != NULL) {
|
||||
const std::string& button_id = a.second->toolbar_button()->get_id();
|
||||
gui::button* button = gui_.find_button(button_id);
|
||||
button->set_check(a.second == mouse_action_);
|
||||
}
|
||||
}
|
||||
toolbar_dirty_ = false;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -69,8 +69,6 @@ public:
|
|||
/** Get the current mouse action */
|
||||
mouse_action* get_mouse_action() { return mouse_action_; };
|
||||
|
||||
void redraw_toolbar();
|
||||
|
||||
/** Brush related methods */
|
||||
|
||||
/** Cycle to the next brush. */
|
||||
|
@ -87,11 +85,6 @@ private:
|
|||
/** TODO */
|
||||
boost::scoped_ptr<palette_manager> palette_manager_;
|
||||
|
||||
//Toolbar
|
||||
|
||||
/** Toolbar-requires-redraw flag */
|
||||
bool toolbar_dirty_;
|
||||
|
||||
//Tools
|
||||
|
||||
/** The current mouse action */
|
||||
|
|
Loading…
Add table
Reference in a new issue