~ubuntu-branches/ubuntu/hardy/vice/hardy

« back to all changes in this revision

Viewing changes to src/arch/unix/macosx/cocoa/dialog/joysticksettingswindowcontroller.h

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2007-10-07 07:05:46 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20071007070546-81yy0twlka7p2t0e
Tags: 1.22-1
* New upstream version (closes: #428280).
* Correct link to HTML documentation in manpage (closes: #409567).
* Fix most packaging mistakes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * joysticksettingswindowcontroller.h - JoystickSettings dialog controller
 
3
 *
 
4
 * Written by
 
5
 *  Christian Vogelgsang <chris@vogelgsang.org>
 
6
 *
 
7
 * This file is part of VICE, the Versatile Commodore Emulator.
 
8
 * See README for copyright notice.
 
9
 *
 
10
 *  This program is free software; you can redistribute it and/or modify
 
11
 *  it under the terms of the GNU General Public License as published by
 
12
 *  the Free Software Foundation; either version 2 of the License, or
 
13
 *  (at your option) any later version.
 
14
 *
 
15
 *  This program is distributed in the hope that it will be useful,
 
16
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
 *  GNU General Public License for more details.
 
19
 *
 
20
 *  You should have received a copy of the GNU General Public License
 
21
 *  along with this program; if not, write to the Free Software
 
22
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 
23
 *  02111-1307  USA.
 
24
 *
 
25
 */
 
26
 
 
27
 
 
28
#import <Cocoa/Cocoa.h>
 
29
#import "viceresourcewindowcontroller.h"
 
30
#import "keypressview.h"
 
31
 
 
32
enum {
 
33
    KEYSET_NORTH=0,
 
34
    KEYSET_SOUTH=1,
 
35
    KEYSET_WEST=2,
 
36
    KEYSET_EAST=3,
 
37
    KEYSET_NORTHWEST=4,
 
38
    KEYSET_SOUTHWEST=5,
 
39
    KEYSET_NORTHEAST=6,
 
40
    KEYSET_SOUTHEAST=7,
 
41
    KEYSET_FIRE=8,
 
42
    KEYSET_SIZE=9
 
43
} JoystickKeyset;
 
44
 
 
45
@interface JoystickSettingsWindowController : VICEResourceWindowController
 
46
{
 
47
    IBOutlet NSPopUpButton *joystick1Mode;
 
48
    IBOutlet NSPopUpButton *joystick2Mode;
 
49
 
 
50
    IBOutlet KeyPressView *keyPressView;
 
51
    
 
52
    IBOutlet NSButton *buttonANorth;
 
53
    IBOutlet NSButton *buttonASouth;
 
54
    IBOutlet NSButton *buttonAWest;
 
55
    IBOutlet NSButton *buttonAEast;
 
56
    IBOutlet NSButton *buttonANorthWest;
 
57
    IBOutlet NSButton *buttonANorthEast;
 
58
    IBOutlet NSButton *buttonASouthWest;
 
59
    IBOutlet NSButton *buttonASouthEast;
 
60
    IBOutlet NSButton *buttonAFire;
 
61
 
 
62
    IBOutlet NSButton *buttonBNorth;
 
63
    IBOutlet NSButton *buttonBSouth;
 
64
    IBOutlet NSButton *buttonBWest;
 
65
    IBOutlet NSButton *buttonBEast;
 
66
    IBOutlet NSButton *buttonBNorthWest;
 
67
    IBOutlet NSButton *buttonBNorthEast;
 
68
    IBOutlet NSButton *buttonBSouthWest;
 
69
    IBOutlet NSButton *buttonBSouthEast;
 
70
    IBOutlet NSButton *buttonBFire;
 
71
 
 
72
    NSButton *buttonsA[KEYSET_SIZE];
 
73
    NSButton *buttonsB[KEYSET_SIZE];
 
74
}
 
75
 
 
76
-(void)updateResources:(NSNotification *)notification;
 
77
 
 
78
-(IBAction)changeJoystick1Mode:(id)sender;
 
79
-(IBAction)changeJoystick2Mode:(id)sender;
 
80
-(IBAction)defineKeysetAButton:(id)sender;
 
81
-(IBAction)defineKeysetBButton:(id)sender;
 
82
 
 
83
@end
 
84