src/settingseditor/librarieseditor.h

Wed, 15 Jun 2022 13:03:33 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 15 Jun 2022 13:03:33 +0300
changeset 229
38d86002d548
parent 218
63125c36de73
child 230
a1f3f7d9078b
permissions
-rw-r--r--

Add About Qt menu entry

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

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