]>
Commit | Line | Data |
---|---|---|
a553f267 | 1 | //----------------------------------------------------------------------------- |
2 | // Copyright (C) 2010 iZsh <izsh at fail0verflow.com> | |
3 | // | |
4 | // This code is licensed to you under the terms of the GNU GPL, version 2 or, | |
5 | // at your option, any later version. See the LICENSE.txt file for the text of | |
6 | // the license. | |
7 | //----------------------------------------------------------------------------- | |
8 | // UI utilities | |
9 | //----------------------------------------------------------------------------- | |
10 | ||
7fe9b0b7 | 11 | #ifndef UI_H__ |
12 | #define UI_H__ | |
13 | ||
0f321d63 | 14 | #include <stdbool.h> |
1a3c0064 | 15 | #include <stdint.h> |
0f321d63 | 16 | |
6b882a39 OM |
17 | #define MAX_PRINT_BUFFER 2048 |
18 | typedef enum logLevel {NORMAL, SUCCESS, INFO, FAILED, WARNING, ERR, DEBUG} logLevel_t; | |
19 | ||
7fe9b0b7 | 20 | void ShowGui(void); |
21 | void HideGraphWindow(void); | |
22 | void ShowGraphWindow(void); | |
23 | void RepaintGraphWindow(void); | |
24 | void PrintAndLog(char *fmt, ...); | |
6b882a39 | 25 | void PrintAndLogEx(logLevel_t level, char *fmt, ...); |
7fe9b0b7 | 26 | void SetLogFilename(char *fn); |
61aaee35 | 27 | void SetFlushAfterWrite(bool flush_after_write); |
7fe9b0b7 | 28 | |
29 | extern double CursorScaleFactor; | |
0f321d63 | 30 | extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset; |
0f321d63 | 31 | extern bool GridLocked; |
b8fdac9e | 32 | extern bool showDemod; |
7fe9b0b7 | 33 | |
34 | #endif |