Wed, 22 Jan 2020 22:41:17 +0200
modelview matrix set up
#pragma once #include <QWidget> #include "main.h" #include "libraries.h" class LibrariesEditor : public QWidget { Q_OBJECT public: LibrariesEditor(QSettings* settings, QWidget* parent = nullptr); ~LibrariesEditor(); void saveSettings(QSettings* settings); private 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; };