Update of /cvsroot/wxdevcenter/wxDevCenter/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3761/src
Modified Files:
Tag: modularisation
Module.cpp Frame.cpp MainFrame.cpp Application.cpp
Log Message:
Return to a monobloc structure.
Index: Frame.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Frame.cpp,v
retrieving revision 1.12.2.2
retrieving revision 1.12.2.3
diff -C2 -d -r1.12.2.2 -r1.12.2.3
*** Frame.cpp 24 Sep 2005 11:44:20 -0000 1.12.2.2
--- Frame.cpp 24 Sep 2005 12:45:44 -0000 1.12.2.3
***************
*** 65,75 ****
//////////////////////////////////////////////////////////////////////
! IMPLEMENT_DYNAMIC_CLASS(TopFrame, wxFrame)
BEGIN_EVENT_TABLE(wxDevCenter::TopFrame, wxFrame)
END_EVENT_TABLE()
- wxClassInfo* TopFrame::s_pClassInfo=NULL;
-
TopFrame::TopFrame():
wxFrame(),
--- 65,73 ----
//////////////////////////////////////////////////////////////////////
! WXDC_IMPLEMENT_MODULE_BASE_CLASS(TopFrame, wxFrame)
BEGIN_EVENT_TABLE(wxDevCenter::TopFrame, wxFrame)
END_EVENT_TABLE()
TopFrame::TopFrame():
wxFrame(),
Index: Module.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Attic/Module.cpp,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -C2 -d -r1.1.2.3 -r1.1.2.4
*** Module.cpp 24 Sep 2005 11:44:20 -0000 1.1.2.3
--- Module.cpp 24 Sep 2005 12:45:44 -0000 1.1.2.4
***************
*** 34,44 ****
IMPLEMENT_DYNAMIC_CLASS(Module, wxObject)
- Module* Module::s_pFirst=NULL;
Module::Module():
wxObject()
{
! m_pNext = s_pFirst;
! s_pFirst = this;
}
--- 34,47 ----
IMPLEMENT_DYNAMIC_CLASS(Module, wxObject)
Module::Module():
wxObject()
{
! }
!
! Module::Module(wxClassInfo* pCI, wxClassInfo** ppBaseCI):
! wxObject()
! {
! *ppBaseCI = pCI;
}
***************
*** 64,74 ****
wxLogDebug("Load module \"%s\" : error", arFiles[l].GetData());
}
-
- Module* pModule = s_pFirst;
- while(pModule!=NULL)
- {
- pModule->Initialize();
- pModule = pModule->m_pNext;
- }
}
--- 67,70 ----
Index: Application.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Application.cpp,v
retrieving revision 1.37.2.2
retrieving revision 1.37.2.3
diff -C2 -d -r1.37.2.2 -r1.37.2.3
*** Application.cpp 24 Sep 2005 11:44:20 -0000 1.37.2.2
--- Application.cpp 24 Sep 2005 12:45:44 -0000 1.37.2.3
***************
*** 83,87 ****
// Charge les modules.
! Module::LoadModules();
// Initialise les gestionnaires
--- 83,87 ----
// Charge les modules.
! // Module::LoadModules();
// Initialise les gestionnaires
***************
*** 102,107 ****
// Initialise le gestionnaire de systèmes de fichiers
! // m_pStandardFileSystem = FileSystemStandard::CreateDerivateClass();
! // FileSystemManager::GetManager().Register(m_pStandardFileSystem, true);
// Initialise les menus par défaut.
--- 102,107 ----
// Initialise le gestionnaire de systèmes de fichiers
! m_pStandardFileSystem = FileSystemStandard::CreateFileSystemStandard();
! FileSystemManager::GetManager().Register(m_pStandardFileSystem, true);
// Initialise les menus par défaut.
Index: MainFrame.cpp
===================================================================
RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/MainFrame.cpp,v
retrieving revision 1.22.2.2
retrieving revision 1.22.2.3
diff -C2 -d -r1.22.2.2 -r1.22.2.3
*** MainFrame.cpp 24 Sep 2005 11:44:20 -0000 1.22.2.2
--- MainFrame.cpp 24 Sep 2005 12:45:44 -0000 1.22.2.3
***************
*** 53,57 ****
! IMPLEMENT_DYNAMIC_CLASS(MainFrame, TopFrame)
BEGIN_EVENT_TABLE(MainFrame, TopFrame)
--- 53,57 ----
! WXDC_IMPLEMENT_MODULE_CLASS(MainFrame, TopFrame, TopFrame)
BEGIN_EVENT_TABLE(MainFrame, TopFrame)
***************
*** 431,454 ****
}
-
-
- class MainFrameModule : public Module
- {
- DECLARE_DYNAMIC_CLASS(MainFrameModule)
- public:
- MainFrameModule():Module()
- {
- }
-
- virtual void Initialize()
- {
- TopFrame::s_pClassInfo = CLASSINFO(MainFrame);
- wxLogDebug("MainFrameModule : %p / %p", TopFrame::s_pClassInfo, CLASSINFO(MainFrame));
- }
- };
-
- IMPLEMENT_DYNAMIC_CLASS(MainFrameModule, Module)
-
- MainFrameModule g_MainFrameModule;
-
-
--- 431,432 ----
|