src/settingseditor/librarieseditor.h

Sat, 01 Feb 2020 17:20:10 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 01 Feb 2020 17:20:10 +0200
changeset 40
30cb5e836736
parent 8
44679e468ba9
child 41
0abada2a9802
permissions
-rw-r--r--

added configurable background color

#pragma once
#include <QWidget>
#include "main.h"
#include "libraries.h"

class LibrariesEditor : public QWidget
{
	Q_OBJECT
public:
	LibrariesEditor(QSettings* settings, QWidget* parent = nullptr);
	~LibrariesEditor();
	void saveSettings(QSettings* settings);
private slots:
	void searchPathForNewLibrary();
	void addNewLibrary();
	void showContextMenu(const QPoint position);
	void setCurrentLibraryRole();
	void removeCurrentLibrary();
	void moveCurrentLibraryUp();
	void moveCurrentLibraryDown();
private:
	enum
	{
		RoleColumn,
		PathColumn
	};
	LibraryManager libraries;
	class Ui_LibrariesEditor& ui;
	int currentLibraryIndex() const;
};

mercurial