2016-01-19 04:26:01 -06:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2017-01-04 07:33:32 -06:00
|
|
|
// Copyright (C) 2013 - 2017, The pgAdmin Development Team
|
2016-01-19 04:26:01 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
// ConfigWindow.h - Configuration window
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "ConfigWindow.h"
|
|
|
|
#include "ui_ConfigWindow.h"
|
|
|
|
|
|
|
|
ConfigWindow::ConfigWindow(QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::ConfigWindow)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
ConfigWindow::~ConfigWindow()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigWindow::on_buttonBox_accepted()
|
|
|
|
{
|
|
|
|
this->close();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigWindow::on_buttonBox_rejected()
|
|
|
|
{
|
|
|
|
this->close();
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ConfigWindow::getPythonPath()
|
|
|
|
{
|
|
|
|
return ui->pythonPathLineEdit->text();
|
|
|
|
}
|
|
|
|
|
|
|
|
QString ConfigWindow::getApplicationPath()
|
|
|
|
{
|
|
|
|
return ui->applicationPathLineEdit->text();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ConfigWindow::setPythonPath(QString path)
|
|
|
|
{
|
|
|
|
ui->pythonPathLineEdit->setText(path);
|
|
|
|
}
|
|
|
|
|
|
|
|
void ConfigWindow::setApplicationPath(QString path)
|
|
|
|
{
|
|
|
|
ui->applicationPathLineEdit->setText(path);
|
|
|
|
}
|
|
|
|
|