src/dialogs/ldrawpathdialog.h

Sat, 29 Aug 2015 18:45:48 +0300

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Sat, 29 Aug 2015 18:45:48 +0300
changeset 953
8349552ee5e9
child 954
7feaa1a3c438
permissions
-rw-r--r--

Refactor LDrawPathDialog and LDPaths

#pragma once
#include <QDialog>
#include "../main.h"

class LDrawPathDialog : public QDialog
{
	Q_OBJECT

public:
	LDrawPathDialog (const QString& defaultPath, bool validDefault, QWidget* parent = null, Qt::WindowFlags f = 0);
	virtual ~LDrawPathDialog();
	QString path() const;
	void setPath (QString path);
	void setStatusText (const QString& statusText, bool ok);

signals:
	void pathChanged (QString newPath);

private:
	const bool m_hasValidDefault;
	class Ui_LDrawPathDialog& ui;
	QPushButton* okButton();
	QPushButton* cancelButton();

private slots:
	void searchButtonClicked();
	void slot_exit();
	void slot_accept();
};

mercurial