src/settingseditor/librarieseditor.h

Mon, 09 Mar 2020 22:12:50 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Mon, 09 Mar 2020 22:12:50 +0200
changeset 76
7c4a63a02632
parent 41
0abada2a9802
child 112
5760cbb32bc0
permissions
-rw-r--r--

finished splitQuadrilateral theoretically (untested)

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

class LibrariesEditor : public QWidget
{
	Q_OBJECT
public:
	LibrariesEditor(Configuration* settings, QWidget* parent = nullptr);
	~LibrariesEditor();
	void saveSettings(Configuration* 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