mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-30 15:33:35 +00:00
This patch contains the following: - FSEvent is now at files level instead of folders level. This allows to drop the registry in plist and improve the performances - When you remove a J file, the mirrored H file is removed too - .xcodecapp-ignore has been added to the FSEvent stream. ignored token are updated in live - By default XCC ignores all .git, .svn, .hg .xCodeSupport, Frameworks and Build folders - When you quit XCC without stop listening of the project, at next launch it will resume on the same project - Help has been added - Help is displayed at first user launch - The Error & Warning table doesn't pop ups automatically, instead it displays Growl (you can then open the panel for more informations) - The code has been refactored into several classes, one for UI thing, another one for XCC worker - Several bugs has been fixed - The about window now displays the version number - The main window has been removed - Several other small enhancements. This is XCC 2.0.
63 lines
2.4 KiB
Objective-C
63 lines
2.4 KiB
Objective-C
/*
|
|
* This file is a part of program xcodecapp-cocoa
|
|
* Copyright (C) 2011 Antoine Mercadal (primalmotion@archipelproject.org)
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <CoreServices/CoreServices.h>
|
|
#import "PRHEmptyGrowlDelegate.h"
|
|
#import "TNXCodeCapp.h"
|
|
|
|
@interface AppController : NSObject <NSMenuDelegate>
|
|
{
|
|
IBOutlet NSMenu *statusMenu;
|
|
IBOutlet NSMenuItem *menuItemOpenXCode;
|
|
IBOutlet NSMenuItem *menuItemStart;
|
|
IBOutlet NSMenuItem *menuItemStop;
|
|
IBOutlet NSMenuItem *menuItemProjectName;
|
|
IBOutlet NSPanel *errorsPanel;
|
|
IBOutlet NSTableView *errorsTable;
|
|
IBOutlet NSWindow *helpWindow;
|
|
IBOutlet NSTextView *helpTextView;
|
|
IBOutlet NSTextField *labelVersion;
|
|
|
|
TNXCodeCapp *_xcc;
|
|
NSImage *_iconActive;
|
|
NSImage *_iconInactive;
|
|
NSImage *_iconWorking;
|
|
NSStatusItem *_statusItem;
|
|
PRHEmptyGrowlDelegate *growlDelegateRef;
|
|
}
|
|
|
|
- (BOOL)validateMenuItem:(NSMenuItem*)menuItem;
|
|
- (void)registerDefaults;
|
|
- (void)updateErrorTable;
|
|
- (void)growlWithTitle:(NSString *)aTitle message:(NSString *)aMessage;
|
|
|
|
- (IBAction)chooseFolder:(id)aSender;
|
|
- (IBAction)clearErrors:(id)sender;
|
|
- (IBAction)openXCode:(id)aSender;
|
|
- (IBAction)stopListener:(id)aSender;
|
|
- (IBAction)openHelp:(id)aSender;
|
|
|
|
- (CGFloat)tableView:(NSTableView *)tableView heightOfRow:(int)aRow;
|
|
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row;
|
|
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
|
|
- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
|
|
|
|
@end
|
|
|