Wed, 15 Jun 2022 12:17:29 +0300
Use Mapbox's ear clipping algorithm to handle drawing any simple polygon
#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; };