Qt TAS editor tool tips in work.

This commit is contained in:
mjbudd77 2021-11-26 06:53:14 -05:00
parent 062bd05ce2
commit cd9ec79570
2 changed files with 30 additions and 0 deletions

View File

@ -237,6 +237,7 @@ TasEditorWindow::TasEditorWindow(QWidget *parent)
initModules(); initModules();
updateCheckedItems(); updateCheckedItems();
updateToolTips();
// Restore Window Geometry // Restore Window Geometry
restoreGeometry(settings.value("tasEditor/geometry").toByteArray()); restoreGeometry(settings.value("tasEditor/geometry").toByteArray());
@ -2372,6 +2373,34 @@ void TasEditorWindow::autoLuaRunChanged(bool val)
void TasEditorWindow::showToolTipsActChanged(bool val) void TasEditorWindow::showToolTipsActChanged(bool val)
{ {
taseditorConfig.tooltipsEnabled = val; taseditorConfig.tooltipsEnabled = val;
updateToolTips();
}
//----------------------------------------------------------------------------
void TasEditorWindow::updateToolTips(void)
{
if ( taseditorConfig.tooltipsEnabled )
{
recRecordingCbox->setToolTip( tr("Switch Input Recording on/off") );
recSuperImposeCbox->setToolTip( tr("Allows to superimpose old Input with new buttons, instead of overwriting") );
recUsePatternCbox->setToolTip( tr("Applies current Autofire Pattern to Input recording") );
recAllBtn->setToolTip( tr("Switch off Multitracking") );
rec1PBtn->setToolTip( tr("Select Joypad 1 as Current") );
rec2PBtn->setToolTip( tr("Select Joypad 2 as Current") );
rec3PBtn->setToolTip( tr("Select Joypad 3 as Current") );
rec4PBtn->setToolTip( tr("Select Joypad 4 as Current") );
}
else
{
recRecordingCbox->setToolTip( tr("") );
recSuperImposeCbox->setToolTip( tr("") );
recUsePatternCbox->setToolTip( tr("") );
recAllBtn->setToolTip( tr("") );
rec1PBtn->setToolTip( tr("") );
rec2PBtn->setToolTip( tr("") );
rec3PBtn->setToolTip( tr("") );
rec4PBtn->setToolTip( tr("") );
}
} }
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
void TasEditorWindow::playbackPauseCB(void) void TasEditorWindow::playbackPauseCB(void)

View File

@ -304,6 +304,7 @@ class TasEditorWindow : public QDialog
bool saveProject(bool save_compact = false); bool saveProject(bool save_compact = false);
bool saveProjectAs(bool save_compact = false); bool saveProjectAs(bool save_compact = false);
bool askToSaveProject(void); bool askToSaveProject(void);
void updateToolTips(void);
public slots: public slots:
void closeWindow(void); void closeWindow(void);