-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows.incl
38 lines (25 loc) · 1.15 KB
/
Windows.incl
1
void local fn BuildSubViewsnibview _welcomeView, @"WelcomeView",, ( _objectListWidth + (_controlSpacer*2), _objectListHeight - _welcomeViewHeight )nibview _projectCreateView, @"ProjectCreateView",, ( _objectListWidth + (_controlSpacer*2), _objectListHeight - _projectCreateViewHeight )nibview _objectCreateView, @"ObjectCreateView", , ( _objectListWidth + (_controlSpacer*2), _objectListHeight - _objectCreateViewHeight )// Init Toolbar and Viewsnibtoolbar _mainToolbar, @"Toolbar"WindowSetToolbar( _window, _mainToolbar )' set hiddenViewSetHidden( _objectListView, YES )ViewSetHidden( _welcomeView, NO )ViewSetHidden( _projectCreateView, YES )ViewSetHidden( _objectCreateView, YES )ViewSetAcceptsFirstResponder( _welcomeView, YES )end fnvoid local fn BuildProjectMainWindow'~'1// setup windows from xibnibwindow _window, @"MainWindow"fn TableViewSetCustomCellCallback( _objectListView, @[ID_KEY,OBJECT_KEY], @fn MyCustomCellCallback, NULL )fn TableViewSizeLastColumnToFit( _objectListView )// setup views from xibWindowCenter( _window )' WindowMakeMain( _projectMainWindow )ViewSetAutoresizesSubviews( _window, YES )end fn