]>
Commit | Line | Data |
---|---|---|
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 | ||
11 | #ifndef UI_H__ | |
12 | #define UI_H__ | |
13 | ||
14 | #include <stdbool.h> | |
15 | #include <stdint.h> | |
16 | #include <pthread.h> | |
17 | ||
18 | // a global mutex to prevent interlaced printing from different threads | |
19 | pthread_mutex_t print_lock; | |
20 | extern uint8_t g_debugMode; | |
21 | ||
22 | void ShowGui(void); | |
23 | void HideGraphWindow(void); | |
24 | void ShowGraphWindow(void); | |
25 | void RepaintGraphWindow(void); | |
26 | void PrintAndLog(char *fmt, ...); | |
27 | void SetLogFilename(char *fn); | |
28 | ||
29 | extern double CursorScaleFactor; | |
30 | extern int PlotGridX, PlotGridY, PlotGridXdefault, PlotGridYdefault, CursorCPos, CursorDPos, GridOffset; | |
31 | extern bool flushAfterWrite; //buzzy | |
32 | extern bool GridLocked; | |
33 | extern bool showDemod; | |
34 | ||
35 | #endif |