src/settingseditor/librarieseditor.h

Sat, 05 Mar 2022 13:55:12 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 05 Mar 2022 13:55:12 +0200
changeset 165
f6eab2bd46c2
parent 112
5760cbb32bc0
child 206
654661eab7f3
permissions
-rw-r--r--

fixed the grid not being black on startup if settings has bright background color

#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 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