mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-11-16 20:29:02 +00:00
e5ce6680ca
Following the refactoring that has been initiated in pdfmasher's "vala" branch, I pushed more progress window logic into the core. The UI code is now a bit dumber than it used to be, and the core now directly decides when the progress window is shown and hidden. The "job finished" notification is also directly sent by the core. Job description update logic is handled by a core gui textfield. Job description contsants also moved to the core, triggering a localisation migration from "ui" to "core".
30 lines
821 B
Objective-C
30 lines
821 B
Objective-C
/*
|
|
Copyright 2013 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
This software is licensed under the "BSD" License as described in the "LICENSE" file,
|
|
which should be included with this package. The terms are also available at
|
|
http://www.hardcoded.net/licenses/bsd_license
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import "HSGUIController.h"
|
|
#import "HSTextField.h"
|
|
#import "Worker.h"
|
|
#import "PyProgressWindow.h"
|
|
|
|
@interface HSProgressWindow : HSGUIController <Worker>
|
|
{
|
|
NSInteger progress;
|
|
HSTextField *jobdescTextField;
|
|
HSTextField *progressdescTextField;
|
|
NSWindow *parentWindow;
|
|
}
|
|
|
|
- (id)initWithPyRef:(PyObject *)aPyRef view:(NSView *)aView;
|
|
- (PyProgressWindow *)model;
|
|
- (void)setParentWindow:(NSWindow *)aParentWindow;
|
|
|
|
- (void)setProgress:(NSInteger)aProgress;
|
|
- (void)showWindow;
|
|
- (void)closeWindow;
|
|
@end |