60 lines
2.0 KiB
C++
60 lines
2.0 KiB
C++
#ifndef _SCRIPTAPI_GUI_H
|
|
#define _SCRIPTAPI_GUI_H
|
|
|
|
#include "_scriptapi.h"
|
|
|
|
namespace Script
|
|
{
|
|
namespace Gui
|
|
{
|
|
namespace Disassembly
|
|
{
|
|
SCRIPT_EXPORT bool SelectionGet(duint* start, duint* end);
|
|
SCRIPT_EXPORT bool SelectionSet(duint start, duint end);
|
|
SCRIPT_EXPORT duint SelectionGetStart();
|
|
SCRIPT_EXPORT duint SelectionGetEnd();
|
|
}; //Disassembly
|
|
|
|
namespace Dump
|
|
{
|
|
SCRIPT_EXPORT bool SelectionGet(duint* start, duint* end);
|
|
SCRIPT_EXPORT bool SelectionSet(duint start, duint end);
|
|
SCRIPT_EXPORT duint SelectionGetStart();
|
|
SCRIPT_EXPORT duint SelectionGetEnd();
|
|
}; //Dump
|
|
|
|
namespace Stack
|
|
{
|
|
SCRIPT_EXPORT bool SelectionGet(duint* start, duint* end);
|
|
SCRIPT_EXPORT bool SelectionSet(duint start, duint end);
|
|
SCRIPT_EXPORT duint SelectionGetStart();
|
|
SCRIPT_EXPORT duint SelectionGetEnd();
|
|
}; //Stack
|
|
}; //Gui
|
|
|
|
namespace Gui
|
|
{
|
|
enum Window
|
|
{
|
|
DisassemblyWindow,
|
|
DumpWindow,
|
|
StackWindow
|
|
};
|
|
|
|
SCRIPT_EXPORT bool SelectionGet(Window window, duint* start, duint* end);
|
|
SCRIPT_EXPORT bool SelectionSet(Window window, duint start, duint end);
|
|
SCRIPT_EXPORT duint SelectionGetStart(Window window);
|
|
SCRIPT_EXPORT duint SelectionGetEnd(Window window);
|
|
SCRIPT_EXPORT void Message(const char* message);
|
|
SCRIPT_EXPORT bool MessageYesNo(const char* message);
|
|
SCRIPT_EXPORT bool InputLine(const char* title, char* text); //text[GUI_MAX_LINE_SIZE]
|
|
SCRIPT_EXPORT bool InputValue(const char* title, duint* value);
|
|
SCRIPT_EXPORT void Refresh();
|
|
SCRIPT_EXPORT void AddQWidgetTab(void* qWidget);
|
|
SCRIPT_EXPORT void ShowQWidgetTab(void* qWidget);
|
|
SCRIPT_EXPORT void CloseQWidgetTab(void* qWidget);
|
|
|
|
}; //Gui
|
|
}; //Script
|
|
|
|
#endif //_SCRIPTAPI_GUI_H
|