2013-08-26 02:18:41 +05:30
|
|
|
#include "EditNotesDialog.h"
|
|
|
|
#include "ui_EditNotesDialog.h"
|
2013-10-18 22:12:41 +05:30
|
|
|
#include "gui/platform.h"
|
2013-08-26 02:18:41 +05:30
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
EditNotesDialog::EditNotesDialog( QString notes, QString name, QWidget* parent ) :
|
|
|
|
m_instance_notes(notes),
|
|
|
|
m_instance_name(name),
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::EditNotesDialog)
|
|
|
|
{
|
2013-10-18 22:12:41 +05:30
|
|
|
MultiMCPlatform::fixWM_CLASS(this);
|
2013-08-26 02:18:41 +05:30
|
|
|
ui->setupUi(this);
|
|
|
|
ui->noteEditor->setText(notes);
|
2013-09-08 21:43:09 +05:30
|
|
|
setWindowTitle(tr("Edit notes of %1").arg(m_instance_name));
|
2013-08-26 02:18:41 +05:30
|
|
|
//connect(ui->closeButton, SIGNAL(clicked()), SLOT(close()));
|
|
|
|
}
|
|
|
|
|
|
|
|
EditNotesDialog::~EditNotesDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString EditNotesDialog::getText()
|
|
|
|
{
|
|
|
|
return ui->noteEditor->toPlainText();
|
|
|
|
}
|