Consolidate Main and TheApp
This commit is contained in:
parent
b52be74dfb
commit
6f3b375232
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* Copyright 2009-2011, Andrea Anzani. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Andrea Anzani, andrea.anzani@gmail.com
|
||||
*/
|
||||
|
||||
#include "TheApp.h"
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
TheApp app;
|
||||
app.Run();
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -41,7 +41,6 @@ SRCS = \
|
|||
application/DefaultItems.cpp \
|
||||
application/EditingFilter.cpp \
|
||||
application/ImageCache.cpp \
|
||||
application/Main.cpp \
|
||||
application/Notifier.cpp \
|
||||
application/ProtocolLooper.cpp \
|
||||
application/ProtocolManager.cpp \
|
||||
|
|
|
@ -28,6 +28,16 @@
|
|||
#include "Server.h"
|
||||
|
||||
|
||||
int
|
||||
main(int argc, char* argv[])
|
||||
{
|
||||
TheApp app;
|
||||
app.Run();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
TheApp::TheApp()
|
||||
:
|
||||
BApplication(APP_SIGNATURE),
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
|
||||
class MainWindow;
|
||||
|
||||
|
||||
int main(int argc, char* argv[]);
|
||||
|
||||
|
||||
class TheApp : public BApplication {
|
||||
public:
|
||||
TheApp();
|
||||
|
|
Ŝarĝante…
Reference in New Issue