src/settingseditor/librarieseditor.h

Sun, 12 Jun 2022 20:47:04 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Sun, 12 Jun 2022 20:47:04 +0300
changeset 214
8e1fe64ce4e3
parent 206
654661eab7f3
child 218
63125c36de73
permissions
-rw-r--r--

begin refactor of gl side

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

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