-
Notifications
You must be signed in to change notification settings - Fork 0
/
EPEntriesManager.h
110 lines (90 loc) · 4.3 KB
/
EPEntriesManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//
// EPEntriesManager.h
// TidyWeblogger
//
// Created by Simone Manganelli on 2008-03-15.
// Copyright 2008 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@class EPHTMLGenerator;
@class EPWeblogEntry;
@class EPWeblog;
@interface EPEntriesManager : NSObject {
//NSMutableDictionary *entries;
NSMutableArray *weblogs;
//NSArray *listOfEntriesActiveSet;
//IBOutlet NSArrayController *entriesController;
IBOutlet NSDictionaryController *realEntriesController;
IBOutlet NSArrayController *weblogsController;
IBOutlet NSTableView *listOfEntriesTableView;
IBOutlet EPHTMLGenerator *HTMLGeneratorInstance;
IBOutlet NSWindow *listOfEntriesWindow;
IBOutlet NSTextField *statusWindowText;
IBOutlet NSProgressIndicator *inlineStatusProgressIndicator;
IBOutlet NSTextField *inlineStatusText;
//IBOutlet NSWindow *statusWindow;
//NSDictionary *categoryDictionary;
IBOutlet NSTextField *dotMacUsernameTextField;
IBOutlet NSSecureTextField *dotMacPasswordTextField;
}
- (IBAction)testAction:(id)sender;
- (NSMutableArray *)weblogs;
- (void)setWeblogs:(NSArray *)newWeblogs;
- (void)importWeblog:(NSDictionary *)weblogPrototype;
- (IBAction)addNewWeblog:(id)sender;
- (void)saveNewWeblogToUserDefaults:(NSDictionary *)newWeblogPrototype;
- (void)createApplicationSupportFolderIfNeeded;
- (void)recalculatePublishOrderingForWeblog:(EPWeblog *)targetWeblog;
- (void)reloadTableViewData;
- (void)resetAndPublishAllEntriesForSelectedWeblog;
- (void)publishAllEntriesForSelectedWeblog;
- (void)publishAllEntriesForSelectedWeblogAndStop;
- (void)publishAllEntriesForWeblog:(EPWeblog *)targetWeblog;
- (IBAction)resetAndPublishAllEntries:(id)sender;
- (IBAction)publishAllEntries:(id)sender;
// future ideas for the status line:
// use small green check, red stop sign, and yellow warning signs
// for *persistent* status messages (i.e.: ones that stay on the screen
// even though nothing's happening)
// date and time stamps so users know when the persistent status messages
// apply
- (void)startStatusUpdateSession;
- (void)stopStatusUpdateSession;
- (void)updateStatusWithString:(NSString *)statusString;
- (void)updateStatusLineAndWindowWithString:(NSString *)statusString;
- (void)stopStatusUpdateSessionOnMainThreadWithString:(NSString *)stopString;
/*- (NSString *)categoryDisplayNameForCategoryID:(NSString *)categoryID;
- (NSDictionary *)categoryDictionary;*/
- (NSDictionaryController *)realEntriesController;
- (IBAction)deleteSelectedWeblogEntry:(id)sender;
- (IBAction)createNewMarkdownWeblogEntry:(id)sender;
- (IBAction)createNewWebViewWeblogEntry:(id)sender;
- (void)createNewWeblogEntryUsingMarkdown:(BOOL)shouldUseMarkdown
forWeblog:(EPWeblog *)targetWeblog;
//- (void)refreshListOfEntries;
- (IBAction)openWeblogEntry:(id)sender;
- (IBAction)importWeblogEntry:(id)sender;
- (void)scanFilesAndCreateWeblogEntryObjects:(NSArray *)pathToFilesToImport
forWeblog:(EPWeblog *)targetWeblog
rootDirectory:(NSString *)rootDirectory
traverseDirectories:(BOOL)shouldTraverseDirectories;
- (EPWeblogEntry *)partialWeblogEntryFromPrototype:(NSObject *)entryControllerKeyValuePair
forWeblog:(EPWeblog *)targetWeblog;
- (EPWeblogEntry *)weblogEntryForPlistFilePath:(NSString *)plistFilePath
forWeblog:(EPWeblog *)targetWeblog;
- (EPWeblogEntry *)scanHTMLFileAndReturnWeblogEntryObject:(NSString *)pathToFileToImport
forWeblog:(EPWeblog *)targetWeblog;
//- (void)addWeblogEntryObject:(EPWeblogEntry *)theWeblogEntry deferFileWrite:(BOOL)shouldDeferWrite;
//- (void)writeListOfEntriesToDisk;
- (IBAction)scanForDeprecatedURLsInBaseFileDirectoryPath:(id)sender;
NSInteger dateCompare(id object1, id object2, void *context);
NSInteger dateCompareDescending(id object1, id object2, void *context);
//NSInteger dateCompareAscending(id object1, id object2, void *context);
/*int entryTitleCompareDescending(id object1, id object2, void *context);
int entryTitleCompareAscending(id object1, id object2, void *context);
int entryCategoryCompareDescending(id object1, id object2, void *context);
int entryCategoryCompareAscending(id object1, id object2, void *context);
int dateCompare(id object1, id object2, void *context);
int entryTitleCompare(id object1, id object2, void *context);
int categoryCompare(id object1, id object2, void *context);*/
@end