1 /*
2    Project: Sudoku
3    Controller.h
4 
5    Copyright (C) 2007-2011 The Free Software Foundation, Inc
6 
7    Author: Marko Riedel
8 
9    This application is free software; you can redistribute it and/or
10    modify it under the terms of the GNU General Public
11    License as published by the Free Software Foundation; either
12    version 3 of the License, or (at your option) any later version.
13 
14    This application is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17    Library General Public License for more details.
18 
19    You should have received a copy of the GNU General Public
20    License along with this library; if not, write to the Free
21    Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
22 */
23 
24 #import <Foundation/NSObject.h>
25 #import <Foundation/NSNotification.h>
26 #import <AppKit/NSPanel.h>
27 
28 #import "SudokuView.h"
29 
30 typedef enum {
31   MENU_NEW_20CLUES = 20,
32   MENU_NEW_25CLUES = 25,
33   MENU_NEW_30CLUES = 30,
34   MENU_NEW_35CLUES = 35,
35   MENU_NEW_48CLUES = 48,
36   MENU_NEW_60CLUES = 60,
37   MENU_NEW_70CLUES = 70,
38 } MENU_NEW;
39 
40 @interface Controller: NSObject
41 {
42     NSPanel *palette;
43     NSPanel *enterPanel;
44     SudokuView *sdkview;
45 }
46 
47 - makeInputPanel;
48 
49 - newPuzzle:(id)sender;
50 
51 - actionEnter:(id)sender;
52 - actionReset:(id)sender;
53 - actionCancel:(id)sender;
54 
55 - enterPuzzle:(id)sender;
56 
57 -(void)applicationDidFinishLaunching:(NSNotification *)aNotification;
58 
59 - makeDigitPalette;
60 
61 @end
62 
63