summaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'menu.h')
-rw-r--r--menu.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/menu.h b/menu.h
index 5912626..6dcde4c 100644
--- a/menu.h
+++ b/menu.h
@@ -17,7 +17,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- * $Id: menu.h 113 2008-03-16 20:12:52Z tom $
+ * $Id: menu.h 114 2008-03-16 22:20:33Z tom $
*/
#ifndef VDR_SUDOKU_MENU_H
@@ -35,6 +35,7 @@ namespace SudokuPlugin
class SetupData;
class Bitmap;
class CommandMenu;
+ class ListMenu;
//--- class SudokuPlugin::Menu -----------------------------------------------
@@ -42,6 +43,7 @@ namespace SudokuPlugin
class Menu : public cOsdObject
{
const SetupData& setup;
+ const char* confdir;
Sudoku::Puzzle& puzzle;
Sudoku::Pos& curr;
int xPos, yPos;
@@ -52,11 +54,13 @@ namespace SudokuPlugin
const cFont* maxi_font;
const cFont* mini_font;
CommandMenu* command_menu;
+ ListMenu* list_menu;
public:
/** Constructor */
- Menu(const SetupData& setup, Sudoku::Puzzle& puzzle, Sudoku::Pos& curr);
+ Menu(const SetupData& setup, const char* confdir,
+ Sudoku::Puzzle& puzzle, Sudoku::Pos& curr);
/** Destructor */
virtual ~Menu();
@@ -70,6 +74,12 @@ namespace SudokuPlugin
/** Generate a new puzzle. */
eOSState generate();
+ /** Load a puzzle. */
+ eOSState load();
+
+ /** Save the puzzle. */
+ eOSState save();
+
/** Reset the puzzle. */
eOSState reset();