Skip to content
Snippets Groups Projects
Commit 2960e7ad authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

privatize

parent 675bcc91
No related branches found
No related tags found
1 merge request!2005rm unfinished undo/redo engine (#757)
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "GUI/Model/Sample/FormFactorItemCatalog.h" #include "GUI/Model/Sample/FormFactorItemCatalog.h"
#include "GUI/Model/Sample/ItemWithParticlesCatalog.h" #include "GUI/Model/Sample/ItemWithParticlesCatalog.h"
#include <QObject>
class CompoundItem; class CompoundItem;
class CoreAndShellForm; class CoreAndShellForm;
...@@ -70,10 +71,8 @@ public: ...@@ -70,10 +71,8 @@ public:
void addLayerItem(LayerItem* before); void addLayerItem(LayerItem* before);
QColor findColor(int atIndex); QColor findColor(int atIndex);
void onLayerAdded(LayerItem* layer); void onLayerAdded(LayerItem* layer);
void addLayerItemFromUndo(int atIndex);
void duplicateLayerItem(const LayerItem* layer); void duplicateLayerItem(const LayerItem* layer);
void removeLayerItem(LayerItem* layer); void removeLayerItem(LayerItem* layer);
void removeLayerItemFromUndo(int atIndex);
void onLayoutAdded(LayerForm* layerForm, ParticleLayoutItem* layout); void onLayoutAdded(LayerForm* layerForm, ParticleLayoutItem* layout);
void addLayoutItem(LayerForm* layerForm); void addLayoutItem(LayerForm* layerForm);
...@@ -102,7 +101,6 @@ public: ...@@ -102,7 +101,6 @@ public:
void setIntegrateOverXi(LatticeTypeSelectionForm* widget, bool value); void setIntegrateOverXi(LatticeTypeSelectionForm* widget, bool value);
void setDouble(double value, DoubleProperty& d); void setDouble(double value, DoubleProperty& d);
void setDoubleFromUndo(double value, const QString& path);
void setCurrentIndex(ISelectionContainerForm* widget, int index, ISelectionProperty& d); void setCurrentIndex(ISelectionContainerForm* widget, int index, ISelectionProperty& d);
...@@ -132,7 +130,10 @@ private: ...@@ -132,7 +130,10 @@ private:
ItemWithParticles* createAndInitItem(FormFactorItemCatalog::Type formFactorType) const; ItemWithParticles* createAndInitItem(FormFactorItemCatalog::Type formFactorType) const;
ItemWithParticles* createAndInitItem(ItemWithParticlesCatalog::Type itemType) const; ItemWithParticles* createAndInitItem(ItemWithParticlesCatalog::Type itemType) const;
private: void addLayerItemFromUndo(int atIndex);
void removeLayerItemFromUndo(int atIndex);
void setDoubleFromUndo(double value, const QString& path);
SampleItem* m_sampleItem; SampleItem* m_sampleItem;
SampleForm* m_sampleForm; SampleForm* m_sampleForm;
ProjectDocument* m_document; ProjectDocument* m_document;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment