annotate src/win32/ramwatch.h @ 2:3549bbe597ed

adding makefile.am
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:47 -0600
parents f9f4f1b99eed
children
rev   line source
rlm@1 1 #ifndef RAMWATCH_H
rlm@1 2 #define RAMWATCH_H
rlm@1 3
rlm@1 4 bool ResetWatches();
rlm@1 5 void OpenRWRecentFile(int memwRFileNumber);
rlm@1 6 extern bool AutoRWLoad;
rlm@1 7 extern bool RWSaveWindowPos;
rlm@1 8 #define MAX_RECENT_WATCHES 5
rlm@1 9 extern char rw_recent_files[MAX_RECENT_WATCHES][1024];
rlm@1 10 extern bool AskSave();
rlm@1 11 extern int ramw_x;
rlm@1 12 extern int ramw_y;
rlm@1 13 extern bool RWfileChanged;
rlm@1 14
rlm@1 15 //Constants
rlm@1 16 #define AUTORWLOAD "RamWatchAutoLoad"
rlm@1 17 #define RWSAVEPOS "RamWatchSaveWindowPos"
rlm@1 18 #define RAMWX "RamwX"
rlm@1 19 #define RAMWY "RamwY"
rlm@1 20
rlm@1 21 // AddressWatcher is self-contained now
rlm@1 22 struct AddressWatcher
rlm@1 23 {
rlm@1 24 unsigned int Address; // hardware address
rlm@1 25 char Size;
rlm@1 26 char Type;
rlm@1 27 char* comment; // NULL means no comment, non-NULL means allocated comment
rlm@1 28 bool WrongEndian;
rlm@1 29 unsigned int CurValue;
rlm@1 30 };
rlm@1 31 #define MAX_WATCH_COUNT 256
rlm@1 32 extern AddressWatcher rswatches[MAX_WATCH_COUNT];
rlm@1 33 extern int WatchCount; // number of valid items in rswatches
rlm@1 34
rlm@1 35 extern char Watch_Dir[1024];
rlm@1 36
rlm@1 37 extern HWND RamWatchHWnd;
rlm@1 38 extern HACCEL RamWatchAccels;
rlm@1 39
rlm@1 40 bool InsertWatch(const AddressWatcher& Watch, char *Comment);
rlm@1 41 bool InsertWatch(const AddressWatcher& Watch, HWND parent=NULL); // asks user for comment
rlm@1 42 void Update_RAM_Watch();
rlm@1 43 bool Load_Watches(bool clear, const char* filename);
rlm@1 44 void RWAddRecentFile(const char *filename);
rlm@1 45
rlm@1 46 #endif