-
Notifications
You must be signed in to change notification settings - Fork 5
/
WaitBoxEx.h
68 lines (56 loc) · 1.76 KB
/
WaitBoxEx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// WaitBoxEx: Custom IDA Pro wait box
// By Sirmabus
// Version 1.3
// http://www.macromonkey.com
// License: Qt 5.4.1 LGPL http://www.qt.io/faq/
#pragma once
// Define MATERIAL_DESIGN_STYLE for a "material design" inspired style
#ifndef _LIB
#ifndef MATERIAL_DESIGN_STYLE
#ifndef _DEBUG
#ifdef __X64__
#pragma comment(lib, "WaitBoxEx64.LiB")
#else
#pragma comment(lib, "WaitBoxEx.LiB")
#endif
#else
#ifdef __X64__
#pragma comment(lib, "WaitBoxExD64.LiB")
#else
#pragma comment(lib, "WaitBoxExD.LiB")
#endif
#endif
#else
#ifndef _DEBUG
#ifdef __X64__
#pragma comment(lib, "WaitBoxExMd64.LiB")
#else
#pragma comment(lib, "WaitBoxExMd.LiB")
#endif
#else
#ifdef __X64__
#pragma comment(lib, "WaitBoxExMdD64.LiB")
#else
#pragma comment(lib, "WaitBoxExMdD.LiB")
#endif
#endif
#endif
#endif
namespace WaitBox
{
// Show the modal wait box dialog
void _cdecl show(LPCSTR titleText = "Progress", LPCSTR labelText = "Please wait..", LPCSTR styleSheet = NULL, LPCSTR icon = NULL);
// Stop the wait box
void _cdecl hide();
// Check if user canceled and optionally the update progress too w/built-in timed update limiter.
// Progress range: 0 to 100, or -1 to switch to indeterminate mode.
BOOL _cdecl updateAndCancelCheck(int progress = 0);
// Returns TRUE if ready for internal update
BOOL _cdecl isUpdateTime();
// Returns TRUE if wait box up
BOOL _cdecl isShowing();
// Change the label text
void _cdecl setLabelText(LPCSTR labelText);
// Convenience wrapper of Qt function "QApplication::processEvents();" to tick IDA's Qt event queue
void _cdecl processIdaEvents();
};