diff -r 1394901b557a -r d0bf58f3560f src/prompts.cpp
--- a/src/prompts.cpp Sat Jun 06 22:28:34 2015 +0300
+++ b/src/prompts.cpp Sat Jun 06 23:02:51 2015 +0300
@@ -16,14 +16,11 @@
* along with this program. If not, see .
*/
-#include
#include
#include "prompts.h"
+#include "misc.h"
#include "ui_unknownversion.h"
-#include "misc.h"
-#include "configwindow.h"
#include "ui_findfile.h"
-#include "ui_addversion.h"
//
// -------------------------------------------------------------------------------------------------
@@ -135,66 +132,4 @@
QString FindFilePrompt::path() const
{
return m_ui->m_path->text();
-}
-
-//
-// -------------------------------------------------------------------------------------------------
-//
-
-AddVersionPrompt::AddVersionPrompt (VersionGuiEntry* entry, QWidget* parent, Qt::WindowFlags f)
- : QDialog (parent, f),
- ui (*new Ui_AddVersion),
- m_entry (entry)
-{
- ui.setupUi (this);
- connect (ui.buttonBox, SIGNAL (accepted()), this, SLOT (acceptPressed()));
- connect (ui.buttonBox, SIGNAL (rejected()), this, SLOT (reject()));
- connect (ui.findExeButton, SIGNAL (clicked()), this, SLOT (findExePath()));
-
- ui.nameField->setText (entry->name);
- ui.exePathField->setText (entry->pathItem->text());
- ui.releaseCheckbox->setChecked (entry->isRelease);
-}
-
-//
-// -------------------------------------------------------------------------------------------------
-//
-
-void AddVersionPrompt::acceptPressed()
-{
- m_entry->name = ui.nameField->text();
- m_entry->isRelease = ui.releaseCheckbox->isChecked();
- m_entry->labelItem->setText (m_entry->name);
- m_entry->pathItem->setText (ui.exePathField->text());
- accept();
-}
-
-//
-// -------------------------------------------------------------------------------------------------
-//
-
-AddVersionPrompt::~AddVersionPrompt()
-{
- delete &ui;
-}
-
-//
-// -------------------------------------------------------------------------------------------------
-//
-
-void AddVersionPrompt::findExePath()
-{
- QString path = getBinaryPath (this);
-
- if (not path.isEmpty())
- ui.exePathField->setText (path);
-}
-
-//
-// -------------------------------------------------------------------------------------------------
-//
-
-VersionGuiEntry* AddVersionPrompt::getVersionInfo()
-{
- return m_entry;
}
\ No newline at end of file