dbbrowse.cpp dbbrowse.h

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mark Johnson
2000-03-06 09:08:03 +00:00
parent f547e9bb27
commit 260460ae06
2 changed files with 12 additions and 12 deletions

View File

@@ -38,8 +38,6 @@
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
//-- Some Global Vars for this file ------------------------------------------------------ //-- Some Global Vars for this file ------------------------------------------------------
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
MainFrame *frame = NULL; // The one and only MainFrame
//----------------------------------------------------------------------------------------
BEGIN_EVENT_TABLE(MainFrame, wxFrame) BEGIN_EVENT_TABLE(MainFrame, wxFrame)
EVT_MENU(QUIT, MainFrame::OnQuit) // Program End EVT_MENU(QUIT, MainFrame::OnQuit) // Program End
EVT_MENU(ABOUT, MainFrame::OnAbout) // Program Discription EVT_MENU(ABOUT, MainFrame::OnAbout) // Program Discription
@@ -152,7 +150,7 @@ bool MainApp::OnInit(void) // Does everything needed for a program start
else else
{ // Read in Foreign language's text for GetAppName() and Help { // Read in Foreign language's text for GetAppName() and Help
m_locale.AddCatalog(GetAppName().c_str()); m_locale.AddCatalog(GetAppName().c_str());
m_locale.AddCatalog("Help"); m_locale.AddCatalog("help");
} }
} // Support the following languages (std = english) } // Support the following languages (std = english)
else else
@@ -165,6 +163,7 @@ bool MainApp::OnInit(void) // Does everything needed for a program start
p_ProgramCfg->Write("/Local/language",s_Language); p_ProgramCfg->Write("/Local/language",s_Language);
p_ProgramCfg->Write("/Local/langid",s_LangId); p_ProgramCfg->Write("/Local/langid",s_LangId);
s_LangHelp.Printf("help.%s/%s.hhp",s_LangId.c_str(),GetAppName().c_str()); // "help.std/Garantie.hhp"; s_LangHelp.Printf("help.%s/%s.hhp",s_LangId.c_str(),GetAppName().c_str()); // "help.std/Garantie.hhp";
s_LangHelp = s_LangHelp.Lower(); // A must for Linux
//--------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------
Temp0 = "NONE"; // I don't remember why I did this Temp0 = "NONE"; // I don't remember why I did this
p_ProgramCfg->Write("/NONE",Temp0); // I don't remember why I did this p_ProgramCfg->Write("/NONE",Temp0); // I don't remember why I did this

View File

@@ -8,15 +8,6 @@
// Licence: wxWindows license // Licence: wxWindows license
// RCS-ID: $Id$ // RCS-ID: $Id$
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
// Define a new application type
//----------------------------------------------------------------------------------------
class MainApp: public wxApp
{
public:
bool OnInit(void); // Programmstart
wxLocale m_locale; // locale we'll be using and language support - MUST be here !
};
//----------------------------------------------------------------------------------------
// Define a new frame type // Define a new frame type
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
class MainFrame: public wxFrame class MainFrame: public wxFrame
@@ -40,6 +31,16 @@ class MainFrame: public wxFrame
DECLARE_EVENT_TABLE() DECLARE_EVENT_TABLE()
}; };
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
// Define a new application type
//----------------------------------------------------------------------------------------
class MainApp: public wxApp
{
public:
MainFrame *frame; // The one and only MainFrame
bool OnInit(void); // Programmstart
wxLocale m_locale; // locale we'll be using and language support - MUST be here !
};
//----------------------------------------------------------------------------------------
// ID for the menu quit command // ID for the menu quit command
//---------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------
#define QUIT 777 #define QUIT 777