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

« back to all changes in this revision

Viewing changes to src/debugger/gui/DataGridWidget.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: DataGridWidget.hxx 2199 2011-01-01 16:04:32Z stephena $
 
17
// $Id: DataGridWidget.hxx 2356 2012-01-14 22:00:54Z stephena $
18
18
//
19
19
//   Based on code from ScummVM - Scumm Interpreter
20
20
//   Copyright (C) 2002-2004 The ScummVM project
55
55
                 const BoolArray& changed);
56
56
    /** Convenience method for when the datagrid contains only one value */
57
57
    void setList(int a, int v, bool changed);
 
58
    void setList(int a, int v); // automatically calculate if changed
58
59
 
59
60
    void setHiliteList(const BoolArray& hilitelist);
60
61
    void setNumRows(int rows);
74
75
    virtual void handleMouseDown(int x, int y, int button, int clickCount);
75
76
    virtual void handleMouseUp(int x, int y, int button, int clickCount);
76
77
    virtual void handleMouseWheel(int x, int y, int direction);
77
 
    virtual bool handleKeyDown(int ascii, int keycode, int modifiers);
78
 
    virtual bool handleKeyUp(int ascii, int keycode, int modifiers);
 
78
    virtual bool handleKeyDown(StellaKey key, StellaMod mod, char ascii);
 
79
    virtual bool handleKeyUp(StellaKey key, StellaMod mod, char ascii);
79
80
    virtual void handleCommand(CommandSender* sender, int cmd, int data, int id);
80
81
 
81
82
    virtual bool wantsFocus() { return true; }
124
125
    BoolArray   _changedList;
125
126
    BoolArray   _hiliteList;
126
127
 
127
 
    bool    _editMode;
128
 
    int     _selectedItem;
129
 
    int     _currentKeyDown;
130
 
    string  _backupString;
 
128
    bool      _editMode;
 
129
    int       _selectedItem;
 
130
    StellaKey _currentKeyDown;
 
131
    string    _backupString;
131
132
 
132
133
    DataGridOpsWidget* _opsWidget;
133
134
    ScrollBarWidget* _scrollBar;