Ref T28, allow access to settings component

This commit is contained in:
Klaus Basan
2017-05-04 02:06:23 +02:00
committed by Mathew Sutcliffe
parent 5b3097a2b0
commit e7e984227b
2 changed files with 11 additions and 4 deletions

View File

@@ -63,6 +63,11 @@ namespace BlackGui
return ui->comp_DataInfoArea;
}
CDataSettingsComponent *CDataMainInfoAreaComponent::getDataSettingsComponent() const
{
return ui->comp_Settings;
}
void CDataMainInfoAreaComponent::displayLog()
{
this->selectArea(InfoAreaLog);

View File

@@ -23,7 +23,6 @@ class QPixmap;
class QWidget;
namespace Ui { class CDataMainInfoAreaComponent; }
namespace BlackGui
{
namespace Components
@@ -31,6 +30,7 @@ namespace BlackGui
class CDataInfoAreaComponent;
class CDbMappingComponent;
class CLogComponent;
class CDataSettingsComponent;
/**
* Main info area for data entry tool
@@ -56,7 +56,7 @@ namespace BlackGui
explicit CDataMainInfoAreaComponent(QWidget *parent = nullptr);
//! Destructor
~CDataMainInfoAreaComponent();
virtual ~CDataMainInfoAreaComponent();
//! Log component
CLogComponent *getLogComponent() const;
@@ -64,9 +64,12 @@ namespace BlackGui
//! Mapping component
CDbMappingComponent *getMappingComponent() const;
//! Mapping component
//! Info area component
CDataInfoAreaComponent *getDataInfoAreaComponent() const;
//! Settings component
BlackGui::Components::CDataSettingsComponent *getDataSettingsComponent() const;
//! Display the log
void displayLog();
@@ -87,7 +90,6 @@ namespace BlackGui
private:
QScopedPointer <Ui::CDataMainInfoAreaComponent> ui;
};
} // ns
} // ns