src/settingseditor/librarieseditor.h

Mon, 27 Jun 2022 02:00:49 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Mon, 27 Jun 2022 02:00:49 +0300
changeset 270
1202b102a10b
parent 265
b2b7af293c46
child 300
3a4b132b8353
permissions
-rw-r--r--

Fix qrc path in mainwindow.ui

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

class LibrariesEditor : public QWidget
{
	Q_OBJECT
public:
	LibrariesEditor(QWidget* parent = nullptr);
	~LibrariesEditor();
	void saveSettings();
	void setModel(LibrariesModel *model);
private Q_SLOTS:
	void searchPathForNewLibrary();
	void addNewLibrary();
	void showContextMenu(const QPoint position);
	void setCurrentLibraryRole();
	void removeCurrentLibrary();
	void moveCurrentLibraryUp();
	void moveCurrentLibraryDown();
private:
	enum
	{
		RoleColumn,
		PathColumn
	};
	class Ui_LibrariesEditor& ui;
	LibrariesModel* currentModel();
	qsizetype currentLibraryIndex() const;
};

mercurial