Gui: Add support for hints in status bar
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
#include "View3DInventorViewer.h"
|
||||
|
||||
#include "ToolHandler.h"
|
||||
#include "InputHint.h"
|
||||
|
||||
using namespace Gui;
|
||||
|
||||
@@ -59,6 +60,7 @@ bool ToolHandler::activate()
|
||||
oldCursor = cw->cursor();
|
||||
|
||||
updateCursor();
|
||||
updateHint();
|
||||
|
||||
this->preActivated();
|
||||
this->activated();
|
||||
@@ -74,6 +76,8 @@ void ToolHandler::deactivate()
|
||||
this->postDeactivated();
|
||||
|
||||
unsetCursor();
|
||||
|
||||
Gui::MainWindow::getInstance()->hideHints();
|
||||
}
|
||||
|
||||
//**************************************************************************
|
||||
@@ -233,6 +237,16 @@ void ToolHandler::updateCursor()
|
||||
}
|
||||
}
|
||||
|
||||
std::list<InputHint> ToolHandler::getToolHints() const
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
void ToolHandler::updateHint() const
|
||||
{
|
||||
Gui::getMainWindow()->showHints(getToolHints());
|
||||
}
|
||||
|
||||
void ToolHandler::applyCursor()
|
||||
{
|
||||
applyCursor(actCursor);
|
||||
|
||||
Reference in New Issue
Block a user