~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/debugger/gui/RiotWidget.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-02-05 08:09:05 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120205080905-9ej05rmkibowsm7j
Tags: 3.5.5-1
* New upstream version.
* Rewrite debian/copyright, using DEP-5 and updating for 2012.
* Update manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-2011 by Bradford W. Mott, Stephen Anthony
 
11
// Copyright (c) 1995-2012 by Bradford W. Mott, Stephen Anthony
12
12
// and the Stella Team
13
13
//
14
14
// See the file "License.txt" for information on usage and redistribution of
15
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
16
16
//
17
 
// $Id: RiotWidget.hxx 2199 2011-01-01 16:04:32Z stephena $
 
17
// $Id: RiotWidget.hxx 2343 2012-01-08 16:55:10Z stephena $
18
18
//
19
19
//   Based on code from ScummVM - Scumm Interpreter
20
20
//   Copyright (C) 2002-2004 The ScummVM project
28
28
class DataGridWidget;
29
29
class PopUpWidget;
30
30
class ToggleBitWidget;
 
31
class ControllerWidget;
31
32
 
32
33
#include "Array.hxx"
 
34
#include "Control.hxx"
33
35
#include "Command.hxx"
34
36
 
35
37
class RiotWidget : public Widget, public CommandSender
43
45
    void loadConfig();
44
46
 
45
47
  private:
 
48
    ControllerWidget* addControlWidget(GuiObject* boss, const GUI::Font& font,
 
49
        int x, int y, Controller& controller);
46
50
 
47
51
  private:
48
52
    ToggleBitWidget* mySWCHAReadBits;
49
53
    ToggleBitWidget* mySWCHAWriteBits;
50
54
    ToggleBitWidget* mySWACNTBits;
51
 
    ToggleBitWidget* mySWCHBBits;
 
55
    ToggleBitWidget* mySWCHBReadBits;
 
56
    ToggleBitWidget* mySWCHBWriteBits;
 
57
    ToggleBitWidget* mySWBCNTBits;
 
58
 
 
59
    DataGridWidget* myLeftINPT;
 
60
    DataGridWidget* myRightINPT;
 
61
    CheckboxWidget* myINPTLatch;
 
62
    CheckboxWidget* myINPTDump;
52
63
 
53
64
    DataGridWidget* myTimWrite;
54
65
    DataGridWidget* myTimRead;
55
66
 
56
 
    CheckboxWidget* myP0Pins[5], *myP1Pins[5];
57
 
 
 
67
    ControllerWidget *myLeftControl, *myRightControl;
58
68
    PopUpWidget *myP0Diff, *myP1Diff;
59
69
    PopUpWidget *myTVType;
60
70
    CheckboxWidget* mySelect;
63
73
    // ID's for the various widgets
64
74
    // We need ID's, since there are more than one of several types of widgets
65
75
    enum {
66
 
      kTim1TID, kTim8TID, kTim64TID, kTim1024TID,
67
 
      kSWCHABitsID, kSWACNTBitsID, kSWCHBBitsID, kTimWriteID,
68
 
      kP0PinsID, kP1PinsID,
 
76
      kTim1TID, kTim8TID, kTim64TID, kTim1024TID, kTimWriteID,
 
77
      kSWCHABitsID, kSWACNTBitsID, kSWCHBBitsID, kSWBCNTBitsID,
69
78
      kP0DiffChanged, kP1DiffChanged, kTVTypeChanged, kSelectID, kResetID
70
79
    };
71
80
};