implemented color picker in dialog

Fixes #1757
This commit is contained in:
itsmattkc
2021-10-01 15:41:24 -07:00
parent ee81a47f2e
commit 7b65ecace5
13 changed files with 328 additions and 28 deletions
+19
View File
@@ -432,6 +432,8 @@ public slots:
void BrowseAutoRecoveries();
void RequestPixelSamplingInViewers(bool e);
signals:
/**
* @brief Signal emitted when a project is opened
@@ -472,6 +474,18 @@ signals:
*/
void OpenRecentListChanged();
/**
* @brief Enable mouse color sampling functionality on all viewers
*
* This can be slow, so we only turn it on when we need it.
*/
void ColorPickerEnabled(bool e);
/**
* @brief A viewer with color picked enabled has emitted a color
*/
void ColorPickerColorEmitted(const Color &reference, const Color &display);
private:
/**
* @brief Get the file filter than can be used with QFileDialog to open and save compatible projects
@@ -595,6 +609,11 @@ private:
*/
QVector<QUuid> autorecovered_projects_;
/**
* @brief How many widgets currently need pixel sampling access
*/
int pixel_sampling_users_;
private slots:
void SaveAutorecovery();