Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
+89
@@ -0,0 +1,89 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* OperatorManagement - Operator Change Password (Frameless) Dialog
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Malte Diers, SLSE, 2017-10-11
|
||||
*/
|
||||
|
||||
#include "bld_search.h"
|
||||
#include "ui_bld_search.h"
|
||||
#include <LtsSession/lts_session_data_dds.h>
|
||||
//#include <Plugins/ParticipantManagement/ppm_data_plugin_interface.h>
|
||||
#include <Plugins/Buildings/bld_data_plugin_interface.h>
|
||||
|
||||
#include <PluginInterfaces/gui_plugin_interface.h>
|
||||
|
||||
namespace Buildings
|
||||
{
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// BuildingSearchModal
|
||||
//------------------------------------------------------------------------------
|
||||
BuildingSearchModal::BuildingSearchModal(QWidget *parent)
|
||||
: BaseClass(parent)
|
||||
, m_ui(new Ui::BuildingSearch_WIDGET)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
m_ui->lblSearch->setText(tr("Building Name:"));
|
||||
connect(m_ui->pbCancel, &QPushButton::clicked, this, &BuildingSearchModal::reject); // LtsFramelessDialog -> QDialog -> reject
|
||||
connect(m_ui->pbOk, &QPushButton::clicked, this, &BuildingSearchModal::onOkay);
|
||||
}
|
||||
|
||||
BuildingSearchModal::~BuildingSearchModal()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void BuildingSearchModal::showEvent(QShowEvent *e)
|
||||
{
|
||||
BaseClass::showEvent(e);
|
||||
m_ui->leSearch->clear();
|
||||
m_ui->leSearch->setFocus();
|
||||
}
|
||||
|
||||
void BuildingSearchModal::onOkay()
|
||||
{
|
||||
const QString &searchString = m_ui->leSearch->text();
|
||||
if (!searchString.isEmpty())
|
||||
emit selectedSearchString(searchString);
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// BuildingSearchWidget (for OC)
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
BuildingSearchWidget::BuildingSearchWidget(QWidget *parent)
|
||||
: BaseClass(parent)
|
||||
, m_ui(new Ui::BuildingSearch_WIDGET)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
connect(m_ui->pbCancel, &QPushButton::clicked, this, &BuildingSearchWidget::close); // QWidget -> close
|
||||
connect(m_ui->pbOk, &QPushButton::clicked, this, &BuildingSearchWidget::onOkay);
|
||||
}
|
||||
|
||||
BuildingSearchWidget::~BuildingSearchWidget()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
|
||||
void BuildingSearchWidget::showEvent(QShowEvent *e)
|
||||
{
|
||||
BaseClass::showEvent(e);
|
||||
m_ui->leSearch->clear();
|
||||
m_ui->leSearch->setFocus();
|
||||
}
|
||||
|
||||
void BuildingSearchWidget::onOkay()
|
||||
{
|
||||
const QString &searchString = m_ui->leSearch->text();
|
||||
if (!searchString.isEmpty())
|
||||
emit selectedSearchString(searchString);
|
||||
|
||||
close();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
Reference in new issue
Block a user