~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/gui/CommandDialog.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Mario Iseli
  • Date: 2006-04-08 18:38:25 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060408183825-vu1jk57rk929derx
* New Maintainer (Closes: #361345)
* New upstream release (Closes: #349725)
* Build-Depend now on libslang2-dev (Closes: #325577)
* Complete rebuild of debian/, upgraded to policy-standards
  3.6.2 and compat-level 5.
* Removed stellarc since stella only reads ~/.stellarc and even
  works without a first config.
* New debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
//   SSSS    tt          lll  lll       
 
4
//  SS  SS   tt           ll   ll        
 
5
//  SS     tttttt  eeee   ll   ll   aaaa 
 
6
//   SSSS    tt   ee  ee  ll   ll      aa
 
7
//      SS   tt   eeeeee  ll   ll   aaaaa  --  "An Atari 2600 VCS Emulator"
 
8
//  SS  SS   tt   ee      ll   ll  aa  aa
 
9
//   SSSS     ttt  eeeee llll llll  aaaaa
 
10
//
 
11
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
 
12
//
 
13
// See the file "license" for information on usage and redistribution of
 
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
15
//
 
16
// $Id: CommandDialog.hxx,v 1.4 2006/01/04 01:24:17 stephena Exp $
 
17
//
 
18
//   Based on code from ScummVM - Scumm Interpreter
 
19
//   Copyright (C) 2002-2004 The ScummVM project
 
20
//============================================================================
 
21
 
 
22
#ifndef COMMAND_DIALOG_HXX
 
23
#define COMMAND_DIALOG_HXX
 
24
 
 
25
class Properties;
 
26
class CommandSender;
 
27
class DialogContainer;
 
28
 
 
29
#include "OSystem.hxx"
 
30
#include "Dialog.hxx"
 
31
 
 
32
class CommandDialog : public Dialog
 
33
{
 
34
  public:
 
35
    CommandDialog(OSystem* osystem, DialogContainer* parent);
 
36
    ~CommandDialog();
 
37
 
 
38
  protected:
 
39
    virtual void handleKeyDown(int ascii, int keycode, int modifiers);
 
40
    virtual void handleJoyAxis(int stick, int axis, int value);
 
41
    virtual void handleCommand(CommandSender* sender, int cmd, int data, int id);
 
42
 
 
43
    virtual bool wantsEvents() { return true; }
 
44
 
 
45
  private:
 
46
    int mySelectedItem;
 
47
 
 
48
    enum {
 
49
      kSelectCmd     = 'Csel',
 
50
      kResetCmd      = 'Cres',
 
51
      kColorCmd      = 'Ccol',
 
52
      kBWCmd         = 'Cbwt',
 
53
      kLeftDiffACmd  = 'Clda',
 
54
      kLeftDiffBCmd  = 'Cldb',
 
55
      kRightDiffACmd = 'Crda',
 
56
      kRightDiffBCmd = 'Crdb',
 
57
      kSaveStateCmd  = 'Csst',
 
58
      kStateSlotCmd  = 'Ccst',
 
59
      kLoadStateCmd  = 'Clst',
 
60
      kSnapshotCmd   = 'Csnp',
 
61
      kFormatCmd     = 'Cfmt',
 
62
      kPaletteCmd    = 'Cpal',
 
63
      kReloadRomCmd  = 'Crom',
 
64
      kExitCmd       = 'Clex'
 
65
    };
 
66
 
 
67
    enum {
 
68
      kNumRows = 4,
 
69
      kNumCols = 4
 
70
    };
 
71
};
 
72
 
 
73
#endif