Radium Engine  1.5.20
Loading...
Searching...
No Matches
RadiumHelpDialog.cpp
1#include <Gui/AboutDialog/RadiumHelpDialog.hpp>
2
3#include <Gui/Utils/KeyMappingManager.hpp>
4
5#include "ui_RadiumHelpDialog.h"
6
7namespace Ra {
8namespace Gui {
9RadiumHelpDialog::RadiumHelpDialog( QWidget* parent ) :
10 QDialog( parent ), ui( new Ui::RadiumHelpDialog ) {
11 ui->setupUi( this );
12 auto kmappingMngr = Gui::KeyMappingManager::getInstance();
13 std::string keyMappingHelp;
14 ui->keymapping->document()->setDefaultStyleSheet(
15 "table { border-collapse: collapse; }"
16 "table tr th {padding-top: .4em; padding-bottom: .2em; text-align: left; border-bottom: "
17 "1px solid gray;}"
18 "table tr td {padding-top: .4em; padding-bottom: .2em; padding-left:1em; border-bottom: "
19 "1px solid gray;}" );
20 keyMappingHelp += "<h1> UI action mapping </h1>\n";
21 keyMappingHelp += kmappingMngr->getHelpText();
22 keyMappingHelp += "<br/>\n";
23 ui->keymapping->setText( keyMappingHelp.c_str() );
24}
25
26// default detor define here, after inclusion of ui_HelpDialog, to have unique_ptr of forward decl
27// type, and prevent "invalid application of 'sizeof' to an incomplete type"
28RadiumHelpDialog::~RadiumHelpDialog() = default;
29
30} // namespace Gui
31} // namespace Ra
T c_str(T... args)
hepler function to manage enum as underlying types in VariableSet
Definition Cage.cpp:3