mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-11 18:54:53 -04:00
--User changes
-Add toolbar buttons to switch some rendering options without having to open the options dialog. --Bug fixes -Only update summary on render completion, no need to constantly update it. -Properly handle cancel even on variations dialog. --Code changes -Add small function ShutdownAndRecreateFromOptions() to wrap shutting down the timer and recreating the renderer. -Use the overridden accept() and reject() functions more consistently across dialogs.
This commit is contained in:
@ -20,24 +20,25 @@ class FractoriumVariationsDialog : public QDialog
|
||||
Q_OBJECT
|
||||
public:
|
||||
FractoriumVariationsDialog(FractoriumSettings* settings, QWidget* p = nullptr, Qt::WindowFlags f = nullptr);
|
||||
const QMap<QString, QVariant>& Map();
|
||||
void ForEachCell(std::function<void(QTableWidgetItem* cb)> func);
|
||||
void ForEachSelectedCell(std::function<void(QTableWidgetItem* cb)> func);
|
||||
void SyncSettings();
|
||||
const QMap<QString, QVariant>& Map();
|
||||
|
||||
public slots:
|
||||
void OnSelectAllButtonClicked(bool checked);
|
||||
void OnInvertSelectionButtonClicked(bool checked);
|
||||
void OnSelectNoneButtonClicked(bool checked);
|
||||
void Accept();
|
||||
void OnVariationsTableItemChanged(QTableWidgetItem* item);
|
||||
virtual void accept() override;
|
||||
virtual void reject() override;
|
||||
|
||||
protected:
|
||||
virtual void showEvent(QShowEvent* e) override;
|
||||
|
||||
private:
|
||||
void MapToCheckBoxes();
|
||||
void CheckBoxesToMap();
|
||||
void DataToGui();
|
||||
void GuiToData();
|
||||
void Populate();
|
||||
void SetCheckFromMap(QTableWidgetItem* cb, const Variation<float>* var);
|
||||
VariationList<float> m_VariationList;
|
||||
|
Reference in New Issue
Block a user