size/scheme options; better translation
[colorflood] / colorflood / src / field.hpp
index 9009857..c3b81f9 100644 (file)
@@ -46,6 +46,7 @@ public:
     ~Field ();
 
     FieldSize getSize () const;
     ~Field ();
 
     FieldSize getSize () const;
+    void setSize (int size);
 
     static int getNumRectsOfSize (FieldSize size);
     static int getNumTurnsOfSize (FieldSize size);
 
     static int getNumRectsOfSize (FieldSize size);
     static int getNumTurnsOfSize (FieldSize size);
@@ -54,7 +55,6 @@ private:
     static const int numRects[NUM_SIZES];
     static const int numTurns[NUM_SIZES];
 
     static const int numRects[NUM_SIZES];
     static const int numTurns[NUM_SIZES];
 
-    void randomize ();
     static int getRectSize (FieldSize size);
     void tryFloodRecurse (quint8 brush, int x, int y);
     void floodNeighbours (quint8 brush, int x, int y);
     static int getRectSize (FieldSize size);
     void tryFloodRecurse (quint8 brush, int x, int y);
     void floodNeighbours (quint8 brush, int x, int y);
@@ -65,13 +65,13 @@ private:
     bool       finished;
 
 protected:
     bool       finished;
 
 protected:
-    void mousePressEvent (QMouseEvent *event);
     void paintEvent (QPaintEvent *event);
 
 signals:
     void turnsChanged (int turns);
 
 public slots:
     void paintEvent (QPaintEvent *event);
 
 signals:
     void turnsChanged (int turns);
 
 public slots:
+    void randomize ();
     void flood (int colorIndex);
 };
 
     void flood (int colorIndex);
 };