src/settingseditor/librarieseditor.h

Wed, 22 Jun 2022 16:13:01 +0300

author
Teemu Piippo <teemu.s.piippo@gmail.com>
date
Wed, 22 Jun 2022 16:13:01 +0300
changeset 248
29986dfd1750
parent 230
a1f3f7d9078b
child 259
c27612f0eac0
permissions
-rw-r--r--

Fix invertnext not working with circular primitives

#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
	};
	LibrariesModel libraries;
	class Ui_LibrariesEditor& ui;
	int currentLibraryIndex() const;
};

mercurial