/*
Copyright (C) 1998,1999,2000,2001,2002,2003,2004
T. Scott Dattalo and Ralf Forsberg
This file is part of gpsim.
gpsim is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
gpsim is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with gpsim; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
#ifndef __GUI_WATCH_H__
#define __GUI_WATCH_H__
#include "gui_register.h"
class WatchEntry : public GUIRegister {
public:
Processor *cpu;
REGISTER_TYPE type;
register_symbol *pRegSymbol;
WatchEntry();
};
class Value;
//
// The watch window
//
class Watch_Window : public GUI_Object
{
public:
GList *watches;
int current_row;
int current_column;
GtkWidget *watch_clist;
GtkWidget *popup_menu;
Watch_Window(GUI_Processor *gp);
virtual void Build(void);
virtual void ClearWatches(void);
virtual void ClearWatch(WatchEntry *entry);
virtual void UpdateWatch(WatchEntry *entry);
virtual void Add(REGISTER_TYPE type,GUIRegister *reg);
virtual void Add(REGISTER_TYPE type, GUIRegister *reg, register_symbol * pRegSym);
virtual void Add(Value *);
virtual void Update();
virtual void UpdateMenus();
virtual void NewProcessor(GUI_Processor *gp);
// Override set_config() to save variable list on app exit
virtual int set_config(void);
void ReadSymbolList();
void WriteSymbolList();
void DeleteSymbolList();
};
#endif //__GUI_WATCH_H__
syntax highlighted by Code2HTML, v. 0.9.1