wxAppEx class removed
This commit is contained in:
parent
42d133fec4
commit
6891792fce
@ -20,7 +20,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\src\appbar.cpp" />
|
<ClCompile Include="..\src\appbar.cpp" />
|
||||||
<ClCompile Include="..\src\appex.cpp" />
|
|
||||||
<ClCompile Include="..\src\comutils.cpp" />
|
<ClCompile Include="..\src\comutils.cpp" />
|
||||||
<ClCompile Include="..\src\stdafx.cpp">
|
<ClCompile Include="..\src\stdafx.cpp">
|
||||||
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
|
||||||
@ -31,7 +30,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\include\wxex\appbar.h" />
|
<ClInclude Include="..\include\wxex\appbar.h" />
|
||||||
<ClInclude Include="..\include\wxex\appex.h" />
|
|
||||||
<ClInclude Include="..\include\wxex\common.h" />
|
<ClInclude Include="..\include\wxex\common.h" />
|
||||||
<ClInclude Include="..\include\wxex\comutils.h" />
|
<ClInclude Include="..\include\wxex\comutils.h" />
|
||||||
<ClInclude Include="..\src\stdafx.h" />
|
<ClInclude Include="..\src\stdafx.h" />
|
||||||
|
@ -25,9 +25,6 @@
|
|||||||
<ClCompile Include="..\src\appbar.cpp">
|
<ClCompile Include="..\src\appbar.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ClCompile Include="..\src\appex.cpp">
|
|
||||||
<Filter>Source Files</Filter>
|
|
||||||
</ClCompile>
|
|
||||||
<ClCompile Include="..\src\comutils.cpp">
|
<ClCompile Include="..\src\comutils.cpp">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
@ -42,9 +39,6 @@
|
|||||||
<ClInclude Include="..\include\wxex\common.h">
|
<ClInclude Include="..\include\wxex\common.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
<ClInclude Include="..\include\wxex\appex.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="..\include\wxex\comutils.h">
|
<ClInclude Include="..\include\wxex\comutils.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2016 Amebis
|
|
||||||
|
|
||||||
This file is part of wxExtend.
|
|
||||||
|
|
||||||
wxExtend is free software: you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
wxExtend is distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with wxExtend. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#pragma once
|
|
||||||
|
|
||||||
#include "common.h"
|
|
||||||
|
|
||||||
#include <wx/app.h>
|
|
||||||
#include <wx/intl.h>
|
|
||||||
|
|
||||||
|
|
||||||
///
|
|
||||||
/// Extended application
|
|
||||||
///
|
|
||||||
class ZRCOLA_API wxAppEx : public wxApp
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
///
|
|
||||||
/// Called when application initializes.
|
|
||||||
///
|
|
||||||
/// \returns
|
|
||||||
/// - true if initialization succeeded
|
|
||||||
/// - false otherwise
|
|
||||||
virtual bool OnInit();
|
|
||||||
|
|
||||||
protected:
|
|
||||||
wxLocale m_locale; ///< Current locale
|
|
||||||
};
|
|
@ -1,41 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright 2015-2016 Amebis
|
|
||||||
|
|
||||||
This file is part of wxExtend.
|
|
||||||
|
|
||||||
wxExtend is free software: you can redistribute it and/or modify it
|
|
||||||
under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
wxExtend is distributed in the hope that it will be useful, but
|
|
||||||
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with wxExtend. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "stdafx.h"
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
// wxAppEx
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
bool wxAppEx::OnInit()
|
|
||||||
{
|
|
||||||
if (!wxApp::OnInit())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
if (wxLocale::IsAvailable(wxLANGUAGE_SLOVENIAN)) {
|
|
||||||
wxString sPath(wxPathOnly(argv[0]));
|
|
||||||
sPath << wxT("\\..\\locale");
|
|
||||||
m_locale.AddCatalogLookupPathPrefix(sPath);
|
|
||||||
wxVERIFY(m_locale.Init(wxLANGUAGE_SLOVENIAN));
|
|
||||||
wxVERIFY(m_locale.AddCatalog(wxT("wxExtend")));
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
@ -24,7 +24,6 @@
|
|||||||
#include <wx/wx.h>
|
#include <wx/wx.h>
|
||||||
|
|
||||||
#include "../include/wxex/appbar.h"
|
#include "../include/wxex/appbar.h"
|
||||||
#include "../include/wxex/appex.h"
|
|
||||||
#include "../include/wxex/comutils.h"
|
#include "../include/wxex/comutils.h"
|
||||||
|
|
||||||
#include "../include/wxex/common.h"
|
#include "../include/wxex/common.h"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user