-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCApplication.h
59 lines (50 loc) · 1.29 KB
/
CApplication.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
/**
* Copyright © 2024 Piotr Domanski
* Licensed under the MIT license.
**/
#pragma once
#include <wx/wx.h>
#include <CMainFrame.h>
namespace WinRuler
{
/**
* Application class definition.
**/
class CApplication :
public wxApp
{
public:
/**
* This function is called when application is initialized and returns
* true if initialization process was successful.
**/
bool OnInit() override;
/**
* This function is called when application is closed.
**/
int OnExit() override;
/**
* Override FilterEvent method for our mouse events pre-processing.
**/
int FilterEvent(wxEvent& Event);
/**
* Detects that our application is executed for the first time.
*
* @return Returns true if our application is executed for the first
* time, otherwise false.
*
* @note This function determines that our application is executed
* for the first time by checking that application database
* file exists or not. If database file don't exists, it means
* that our application is executed for the first time.
**/
bool ApplicationExecutedForTheFirstTime();
public:
// Pointer to CMainFrame instance.
CMainFrame* m_pMainFrame;
// Pointer to wxIcon.
wxIcon* m_pIcon;
// Pointer to wxLog.
wxLog* m_pLogger;
};
} // end namespace WinRuler