src/prompts.cpp

changeset 44
d0bf58f3560f
parent 42
9528f8d06962
child 45
f5b526a3423a
--- 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 <http://www.gnu.org/licenses/>.
  */
 
-#include <QTableWidgetItem>
 #include <QFileDialog>
 #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

mercurial