forked from qt-creator/qt-creator
Haskell: More compact settings/manager setup
Use PagedSettings, move related parts Manager interface there, too. Change-Id: I079dad8bbbea39d2424a25867b08c34ab0234ad5 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -7,30 +7,15 @@
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
class QSettings;
|
||||
QT_END_NAMESPACE
|
||||
namespace Haskell::Internal {
|
||||
|
||||
namespace Haskell {
|
||||
namespace Internal {
|
||||
|
||||
class HaskellManager : public QObject
|
||||
class HaskellManager
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
static HaskellManager *instance();
|
||||
|
||||
static Utils::FilePath findProjectDirectory(const Utils::FilePath &filePath);
|
||||
static Utils::FilePath stackExecutable();
|
||||
static void setStackExecutable(const Utils::FilePath &filePath);
|
||||
static void openGhci(const Utils::FilePath &haskellFile);
|
||||
static void readSettings(QSettings *settings);
|
||||
static void writeSettings(QSettings *settings);
|
||||
|
||||
signals:
|
||||
void stackExecutableChanged(const Utils::FilePath &filePath);
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Haskell
|
||||
} // Haskell::Internal
|
||||
|
||||
Reference in New Issue
Block a user