2005-05-13 00:25:27 +00:00
|
|
|
/**
|
|
|
|
main.m
|
|
|
|
|
2007-01-05 16:17:04 +00:00
|
|
|
Author: Matt Rice <ratmice@gmail.com>
|
2005-05-13 00:25:27 +00:00
|
|
|
Date: Apr 2005
|
|
|
|
|
|
|
|
This file is part of DBModeler.
|
|
|
|
|
|
|
|
<license>
|
|
|
|
DBModeler is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
2007-07-12 06:39:22 +00:00
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
2005-05-13 00:25:27 +00:00
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
DBModeler 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 DBModeler; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
</license>
|
|
|
|
**/
|
|
|
|
|
|
|
|
|
2008-05-09 20:21:17 +00:00
|
|
|
#ifdef NeXT_Foundation_LIBRARY
|
|
|
|
#include <Foundation/Foundation.h>
|
|
|
|
#else
|
2005-05-13 00:25:27 +00:00
|
|
|
#include <Foundation/NSAutoreleasePool.h>
|
2008-05-09 20:21:17 +00:00
|
|
|
#endif
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
#include <EOModeler/EOModelerApp.h>
|
|
|
|
#include "Modeler.h"
|
|
|
|
|
2008-05-13 03:34:01 +00:00
|
|
|
#include <Renaissance/Renaissance.h>
|
|
|
|
|
2008-05-09 20:21:17 +00:00
|
|
|
#include <GNUstepBase/GNUstep.h>
|
|
|
|
|
2009-02-02 11:47:13 +00:00
|
|
|
|
|
|
|
// required for windows.
|
|
|
|
int (*linkRenaissanceIn)(int, const char **) = GSMarkupApplicationMain;
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
int main (int argc, const char **argv)
|
|
|
|
{
|
2008-05-13 03:34:01 +00:00
|
|
|
Modeler *m;
|
2005-05-13 00:25:27 +00:00
|
|
|
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
|
|
|
|
|
|
|
|
[EOModelerApp sharedApplication];
|
2008-05-13 03:34:01 +00:00
|
|
|
m = [[Modeler alloc] init];
|
|
|
|
[NSApp setDelegate: m];
|
|
|
|
|
|
|
|
#ifdef NeXT_GUI_LIBRARY
|
|
|
|
[NSBundle loadGSMarkupNamed: @"Menu-Cocoa" owner: m];
|
|
|
|
#else
|
|
|
|
[NSBundle loadGSMarkupNamed: @"Menu-GNUstep" owner: m];
|
|
|
|
#endif
|
|
|
|
|
2005-05-13 00:25:27 +00:00
|
|
|
[NSApp run];
|
|
|
|
RELEASE(pool);
|
|
|
|
return 0;
|
|
|
|
}
|