Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,47 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* GUI Plugin for BuildingManagement - BuildingHistoryDialog
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Patric Karwat, SLSE, 2016-07-07
|
||||
*/
|
||||
|
||||
#include "bld_history_dialog.h"
|
||||
#include "ui_bld_history_dialog.h"
|
||||
|
||||
#include "bld_history_dialog_model.h"
|
||||
|
||||
namespace Buildings
|
||||
{
|
||||
BuildingHistoryDialog::BuildingHistoryDialog(const QString &bldName, QWidget *parent)
|
||||
: LtsWidgets::LtsDialog(parent, LtsWidgets::ButtonCombination::CloseOnly)
|
||||
, m_bldName(bldName)
|
||||
, m_model(new BuildingHistoryDialogModel(this))
|
||||
, m_proxyModel(new BuildingHistoryDialogProxyModel(this))
|
||||
, m_ui(new Ui::BuildingHistoryDialog)
|
||||
, m_logger(getLogger("BuildingHistoryDialog"))
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
m_proxyModel->setSourceModel(m_model);
|
||||
m_ui->tvHistory->setModel(m_proxyModel);
|
||||
|
||||
setUnchangeable();
|
||||
}
|
||||
|
||||
BuildingHistoryDialog::~BuildingHistoryDialog()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void BuildingHistoryDialog::retranslate()
|
||||
{
|
||||
translate(m_ui, m_bldName, false, tr("Building History"));
|
||||
}
|
||||
|
||||
bool BuildingHistoryDialog::init(int ddsId, LtsSession::LtsSession *session)
|
||||
{
|
||||
return m_model->initModel(ddsId, session);
|
||||
}
|
||||
|
||||
} // namespace BuildingManagement
|
||||
Reference in new issue
Block a user