//----------------------------------------------------------------------------- // $Id: QtRpl/RplFunctionDlg.cpp 2017/07/23 16:20:45 philw $ // Editor dialog for RplFunction objects. //----------------------------------------------------------------------------- #include "RplFunctionDlg.hpp" // this module #include "qt/ui_RplFunctionDlgWidgets.h" #ifndef RplFunctionPanelINCLUDED #include "RplFunctionPanel.hpp" #endif #include //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- RplFunctionDlg::RplFunctionDlg(BaseRWDlg *parent, RplFunction *rplFunction) : RplBaseDlg (parent, "RplFunctionDlg"), _ui (new Ui_RplFunctionDlgWidgets()), _impPanel(NULL) { _ui->setupUi(this); QVBoxLayout* vbox = new QVBoxLayout (_ui->_impContainer); vbox->setObjectName ("_impFrame vbox"); vbox->setContentsMargins (0,0,0,0); // lft, top, rgt, bot vbox->setSpacing (6); _impPanel = new RplFunctionPanel(this, rplFunction); _impPanel->setObjectName ("RplFunctionDlg_impPanel"); _impPanel->completeInit(); vbox->addWidget (_impPanel); _ui->_impContainer->setLayout (vbox); // Install menus in the QMainWindow's menubar. _impPanel->installMenuBar(); } //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- RplFunctionDlg::~RplFunctionDlg() { delete _ui; _ui = NULL; } //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- // ********************************************* // *** Delegate RplBaseDlg Virtual Methods *** // ********************************************* bool RplFunctionDlg::update() { return _impPanel->update(); } bool RplFunctionDlg::updateDescr() { return _impPanel->updateDescr(); } bool RplFunctionDlg::updateNotes() { return _impPanel->updateNotes(); } bool RplFunctionDlg::updateLoadStatus() { return _impPanel->updateLoadStatus(); } bool RplFunctionDlg::rebuild() { return _impPanel->rebuild(); } void RplFunctionDlg::showDescription(bool doShow) { _impPanel->showDescription(doShow); } void RplFunctionDlg::showNotes(bool doShow) { _impPanel->showNotes(doShow); } void RplFunctionDlg::selectStringInDescription( const Rpl::SearchSpec& searchSpec) { _impPanel->selectStringInDescription(searchSpec); } void RplFunctionDlg::selectStringInNotes( const Rpl::SearchSpec& searchSpec) { _impPanel->selectStringInNotes(searchSpec); } void RplFunctionDlg::updateEditActions() { _impPanel->updateEditActions(); } void RplFunctionDlg::scrollToDebugCursor() { _impPanel->scrollToDebugCursor(); } RplObj* RplFunctionDlg::getRplObj() const { return _impPanel->getRplObj(); } QString RplFunctionDlg::nameEditorText() const { return _impPanel->nameEditorText(); } void RplFunctionDlg::updateExternalDocButton() { _impPanel->updateExternalDocButton(); } void RplFunctionDlg::debuggerStateChanged() { _impPanel->debuggerStateChanged(); } int RplFunctionDlg::renameSymbolInFrames(QString origName, QString newName) { return _impPanel->renameSymbolInFrames(origName, newName); } //--- (end RplFunctionDlg.cpp) ---