KiCad PCB EDA Suite
Loading...
Searching...
No Matches
app.h
Go to the documentation of this file.
1
/*
2
* This program source code file is part of KiCad, a free EDA CAD application.
3
*
4
* Copyright (C) 2020 Mark Roszko <
[email protected]
>
5
* Copyright (C) 2020 KiCad Developers, see AUTHORS.txt for contributors.
6
*
7
* This program is free software: you can redistribute it and/or modify it
8
* under the terms of the GNU General Public License as published by the
9
* Free Software Foundation, either version 3 of the License, or (at your
10
* option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful, but
13
* WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License along
18
* with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#ifndef KIPLATFORM_APP_H_
22
#define KIPLATFORM_APP_H_
23
24
class
wxString;
25
class
wxWindow;
26
27
namespace
KIPLATFORM
28
{
29
namespace
APP
30
{
37
bool
Init
();
38
45
bool
AttachConsole
(
bool
aTryAlloc );
46
53
bool
IsOperatingSystemUnsupported
();
54
60
bool
RegisterApplicationRestart
(
const
wxString& aCommandLine );
61
67
bool
UnregisterApplicationRestart
();
68
72
bool
SupportsShutdownBlockReason
();
73
83
void
SetShutdownBlockReason
( wxWindow* aWindow,
const
wxString& aReason );
84
90
void
RemoveShutdownBlockReason
( wxWindow* aWindow );
91
101
void
ForceTimerMessagesToBeCreatedIfNecessary
();
102
110
void
AddDynamicLibrarySearchPath
(
const
wxString& aPath );
111
}
112
}
113
114
#endif
// KIPLATFORM_UI_H_
KIPLATFORM::APP::SetShutdownBlockReason
void SetShutdownBlockReason(wxWindow *aWindow, const wxString &aReason)
Sets the block reason why the window/application is preventing OS shutdown.
Definition:
unix/app.cpp:90
KIPLATFORM::APP::UnregisterApplicationRestart
bool UnregisterApplicationRestart()
Unregisters the application from automatic restart.
Definition:
unix/app.cpp:72
KIPLATFORM::APP::AttachConsole
bool AttachConsole(bool aTryAlloc)
Tries to attach a console window with stdout, stderr and stdin.
Definition:
unix/app.cpp:51
KIPLATFORM::APP::RemoveShutdownBlockReason
void RemoveShutdownBlockReason(wxWindow *aWindow)
Removes any shutdown block reason set.
Definition:
unix/app.cpp:85
KIPLATFORM::APP::RegisterApplicationRestart
bool RegisterApplicationRestart(const wxString &aCommandLine)
Registers the application for restart with the OS with the given command line string to pass as args.
Definition:
unix/app.cpp:65
KIPLATFORM::APP::Init
bool Init()
Perform application-specific initialization tasks.
Definition:
unix/app.cpp:40
KIPLATFORM::APP::ForceTimerMessagesToBeCreatedIfNecessary
void ForceTimerMessagesToBeCreatedIfNecessary()
Forces wxTimers to fire more promptly on Win32.
Definition:
unix/app.cpp:95
KIPLATFORM::APP::IsOperatingSystemUnsupported
bool IsOperatingSystemUnsupported()
Checks if the Operating System is explicitly unsupported and we want to prevent users from sending bu...
Definition:
unix/app.cpp:58
KIPLATFORM::APP::SupportsShutdownBlockReason
bool SupportsShutdownBlockReason()
Whether or not the window supports setting a shutdown block reason.
Definition:
unix/app.cpp:79
KIPLATFORM::APP::AddDynamicLibrarySearchPath
void AddDynamicLibrarySearchPath(const wxString &aPath)
Inserts a search path for loading dynamic libraries.
Definition:
unix/app.cpp:100
KIPLATFORM
Definition:
app.h:28
src
libs
kiplatform
include
kiplatform
app.h
Generated on Thu Nov 21 2024 00:06:44 for KiCad PCB EDA Suite by
1.9.6