2010-02-21 08:47:22 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
2022-01-07 08:58:03 +08:00
|
|
|
// Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
|
2010-02-26 05:57:35 +08:00
|
|
|
//
|
2022-01-07 08:58:03 +08:00
|
|
|
// This program 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 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program 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.
|
|
|
|
//
|
|
|
|
// See LICENSE.txt for the text of the license.
|
2010-02-21 08:47:22 +08:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// GUI functions
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2019-04-11 07:16:25 +08:00
|
|
|
#ifndef __PROXGUI_H
|
|
|
|
#define __PROXGUI_H
|
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-07-28 03:32:15 +08:00
|
|
|
#include <stdint.h>
|
2019-08-08 22:57:33 +08:00
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdbool.h>
|
2017-07-28 03:32:15 +08:00
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
void ShowGraphWindow(void);
|
|
|
|
void HideGraphWindow(void);
|
|
|
|
void RepaintGraphWindow(void);
|
2021-07-05 19:42:33 +08:00
|
|
|
|
2021-07-08 15:53:50 +08:00
|
|
|
// hook up picture viewer
|
2022-07-31 11:30:17 +08:00
|
|
|
void ShowPictureWindow(uint8_t *data, int len);
|
2022-01-16 00:38:40 +08:00
|
|
|
void ShowBase64PictureWindow(char *b64);
|
2021-07-05 19:42:33 +08:00
|
|
|
void HidePictureWindow(void);
|
|
|
|
void RepaintPictureWindow(void);
|
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
void MainGraphics(void);
|
2019-08-04 21:34:18 +08:00
|
|
|
void InitGraphics(int argc, char **argv, char *script_cmds_file, char *script_cmd, bool stayInCommandLoop);
|
2009-04-09 14:43:20 +08:00
|
|
|
void ExitGraphics(void);
|
2017-07-28 03:32:15 +08:00
|
|
|
|
2021-08-21 22:52:37 +08:00
|
|
|
extern double g_CursorScaleFactor;
|
|
|
|
extern char g_CursorScaleFactorUnit[11];
|
|
|
|
extern double g_PlotGridX, g_PlotGridY, g_PlotGridXdefault, g_PlotGridYdefault, g_GridOffset;
|
|
|
|
extern uint32_t g_CursorCPos, g_CursorDPos, g_GraphStart, g_GraphStop;
|
2009-04-09 14:43:20 +08:00
|
|
|
extern int CommandFinished;
|
2009-04-28 03:56:43 +08:00
|
|
|
extern int offline;
|
2021-08-21 22:52:37 +08:00
|
|
|
extern bool g_GridLocked;
|
2017-07-28 03:32:15 +08:00
|
|
|
|
|
|
|
#define GRAPH_SAVE 1
|
|
|
|
#define GRAPH_RESTORE 0
|
2020-01-29 22:16:50 +08:00
|
|
|
|
|
|
|
#ifndef FILE_PATH_SIZE
|
|
|
|
#define FILE_PATH_SIZE 1000
|
|
|
|
#endif
|
|
|
|
|
2009-04-09 14:43:20 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2019-04-11 07:16:25 +08:00
|
|
|
#endif
|