2012-02-16 02:08:46 +01:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Simple x264 Launcher
|
2016-01-01 23:59:55 +01:00
|
|
|
// Copyright (C) 2004-2016 LoRd_MuldeR <MuldeR2@GMX.de>
|
2012-02-16 02:08:46 +01:00
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
//
|
|
|
|
// http://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#include "win_editor.h"
|
2015-02-01 16:33:31 +01:00
|
|
|
#include "UIC_win_editor.h"
|
2013-11-14 02:29:18 +01:00
|
|
|
|
2012-02-16 02:08:46 +01:00
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
#include <QProcess>
|
|
|
|
#include <QScrollBar>
|
|
|
|
#include <QTimer>
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Constructor & Destructor
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
EditorDialog::EditorDialog(QWidget *parent)
|
|
|
|
:
|
2013-11-14 02:29:18 +01:00
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::EditorDialog())
|
2012-02-16 02:08:46 +01:00
|
|
|
{
|
|
|
|
//Init the dialog, from the .ui file
|
2013-11-14 02:29:18 +01:00
|
|
|
ui->setupUi(this);
|
2012-02-16 02:08:46 +01:00
|
|
|
setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
|
|
|
|
|
|
|
|
//Fix size
|
|
|
|
setMinimumSize(size());
|
|
|
|
}
|
|
|
|
|
|
|
|
EditorDialog::~EditorDialog(void)
|
|
|
|
{
|
2013-11-14 02:29:18 +01:00
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Public Functions
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
QString EditorDialog::getEditText(void)
|
|
|
|
{
|
|
|
|
return ui->plainTextEdit->toPlainText().simplified();
|
|
|
|
}
|
|
|
|
|
|
|
|
void EditorDialog::setEditText(const QString &text)
|
|
|
|
{
|
|
|
|
ui->plainTextEdit->clear();
|
|
|
|
ui->plainTextEdit->appendPlainText(text.simplified());
|
2012-02-16 02:08:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Events
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/*None*/
|
|
|
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Slots
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/*None*/
|
|
|
|
|