Gui: Add support for hints in status bar

This commit is contained in:
Kacper Donat
2025-03-23 15:34:14 +01:00
parent 548af02619
commit aa47949f80
26 changed files with 1210 additions and 5 deletions

View File

@@ -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);