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