Lynkeos
1.2
|
The document window controler. More...
#import <MyImageListWindow.h>
Public Member Functions | |
(NSString *) | - windowStateName |
(NSString *) | - windowModeName |
(void) | - highlightOther: |
(void) | - updateListControls |
(void) | - fillSidePopup |
(void) | - updateAnalyzeControls |
(void) | - updateSelectThresholdSlide |
(void) | - updateStackControls |
(void) | - updateProcessControls |
Accessors | |
Read and write accessors to the class attributes | |
(MyImageListWindowMode) | - windowMode |
(MyImageListWindowState) | - windowState |
(MyImageListItem *) | - highlightedItem |
(void) | - setWindowState: |
Actions | |
Actions comming from the document controller | |
(void) | - refreshOutline |
(void) | - highlightItem: |
(void) | - updateSidePopup |
(void) | - updateAlignControls |
(void) | - addFiles: |
Outline | |
Outline view management | |
(void) | - outlineViewSelectionDidChange: |
(id) | - outlineView:child:ofItem: |
(BOOL) | - outlineView:isItemExpandable: |
(int) | - outlineView:numberOfChildrenOfItem: |
(id) | - outlineView:objectValueForTableColumn:byItem: |
(void) | - outlineView:setObjectValue:forTableColumn:byItem: |
TabView | |
Tab view management | |
(void) | - tabView:didSelectTabViewItem: |
GUIActions | |
Actions which are target of NIB objects | |
(void) | - searchSquareChange: |
(void) | - analyzeSquareChange: |
(void) | - analyzeMethodChange: |
(void) | - cropRectangleChange: |
(void) | - modeMenuAction: |
(void) | - addAction: |
(void) | - deleteAction: |
(void) | - referenceAction: |
(void) | - toggleEntrySelection: |
(void) | - highlightNext: |
(void) | - highlightPrevious: |
(void) | - doubleButtonAction: |
(void) | - monochromeButtonAction: |
(void) | - alignAction: |
(void) | - autoSelectAction: |
(void) | - analyzeAction: |
(void) | - stackAction: |
(void) | - postProcessAction: |
(void) | - changeLevelsAction: |
Private Attributes | |
IBOutlet NSOutlineView * | _textView |
IBOutlet NSTabView * | _tabPane |
IBOutlet MyImageView * | _imageView |
IBOutlet NSPopUpButton * | _listMenu |
IBOutlet NSButton * | _plusButton |
IBOutlet NSButton * | _minusButton |
IBOutlet NSButton * | _prevButton |
IBOutlet NSButton * | _nextButton |
IBOutlet NSButton * | _toggleButton |
IBOutlet NSTextField * | _searchFieldX |
IBOutlet NSTextField * | _searchFieldY |
IBOutlet NSPopUpButton * | _searchSideMenu |
IBOutlet NSButton * | _refCheckBox |
IBOutlet NSButton * | _alignButton |
IBOutlet NSTextField * | _analyzeFieldX |
IBOutlet NSTextField * | _analyzeFieldY |
IBOutlet NSPopUpButton * | _analyzeSideMenu |
IBOutlet NSButton * | _analyzeButton |
IBOutlet NSPopUpButton * | _analyzeMethodMenu |
IBOutlet NSSlider * | _selectThresholdSlide |
IBOutlet NSTextField * | _minQualityText |
IBOutlet NSTextField * | _maxQualityText |
IBOutlet NSTextField * | _cropX |
IBOutlet NSTextField * | _cropY |
IBOutlet NSTextField * | _cropW |
IBOutlet NSTextField * | _cropH |
IBOutlet NSButton * | _doubleButton |
IBOutlet NSButton * | _monoStackButton |
IBOutlet NSButton * | _stackButton |
IBOutlet NSSlider * | _deconvRadius |
IBOutlet NSSlider * | _deconvThreshold |
IBOutlet NSSlider * | _unsharpRadius |
IBOutlet NSSlider * | _unsharpGain |
IBOutlet NSSlider * | _blackLevel |
IBOutlet NSSlider * | _whiteLevel |
IBOutlet NSTextField * | _deconvTextRadius |
IBOutlet NSTextField * | _deconvTextThreshold |
IBOutlet NSTextField * | _unsharpTextRadius |
IBOutlet NSTextField * | _unsharpTextGain |
IBOutlet NSTextField * | _blackTextLevel |
IBOutlet NSTextField * | _whiteTextLevel |
MyImageListWindowMode | _windowMode |
MyImageListWindowState | _windowState |
MyImageListItem * | _highlightedItem |
u_short | _sideMenuLimit |
bool | _processImageUpdate |
bool | _fillSideArmed |
double | _minQuality |
double | _qualityScale |
MyImageList * | _currentList |
The document window controler.
This class controls the document window. It is the first responder for every user action, which are propagated to MyDocument. It has a direct read access to MyImageList and MyObjectImageList for optimisation purpose (document is still called for write accesses).
Its behaviour is controlled by its state :
- (void) addAction: | (id) | sender |
References addFiles:.
- (void) addFiles: | (NSArray*) | files |
References MyImageListItem::imageListItemWithURL:, and updateListControls.
Referenced by addAction:.
- (void) alignAction: | (id) | sender |
- (void) analyzeAction: | (id) | sender |
- (void) analyzeMethodChange: | (id) | sender |
- (void) analyzeSquareChange: | (id) | sender |
References _analyzeFieldX, _analyzeFieldY, _analyzeSideMenu, _currentList, _imageView, _windowMode, _windowState, AnalyzeMode, MyIntegerSize::height, ImageMode, MyIntegerRect::origin, MyImageView::setSelection:resizable:, MyIntegerRect::size, updateAnalyzeControls, MyIntegerSize::width, windowModeName, windowStateName, MyIntegerPoint::x, and MyIntegerPoint::y.
- (void) autoSelectAction: | (id) | sender |
References _textView.
- (void) changeLevelsAction: | (id) | sender |
References _blackLevel, _blackTextLevel, _imageView, _whiteLevel, _whiteTextLevel, and MyImageView::setImage:offset:.
- (void) cropRectangleChange: | (id) | sender |
- (void) deleteAction: | (id) | sender |
References _textView, and updateListControls.
- (void) doubleButtonAction: | (id) | sender |
- (void) fillSidePopup |
References _highlightedItem.
- (void) highlightItem: | (MyImageListItem*) | item |
References _textView.
Referenced by highlightOther:, modeMenuAction:, and tabView:didSelectTabViewItem:.
- (void) highlightNext: | (id) | sender |
References highlightOther:.
- (void) highlightOther: | (BOOL) | direct |
References _currentList, _textView, _windowState, AlignMode, AnalyzeMode, highlightItem:, MyImageList::imageEnumeratorStartAt:directSense:, and ListMode.
Referenced by highlightNext:, and highlightPrevious:.
- (void) highlightPrevious: | (id) | sender |
References highlightOther:.
- (void) modeMenuAction: | (id) | sender |
References _currentList, _listMenu, _textView, _windowMode, _windowState, AlignMode, AnalyzeMode, DarkFrameMode, MyImageList::firstItem, FlatFieldMode, highlightItem:, ImageMode, ListMode, postProcessAction:, ProcessMode, StackMode, updateAlignControls, updateAnalyzeControls, updateProcessControls, updateSelectThresholdSlide, updateStackControls, windowModeName, and windowStateName.
- (void) monochromeButtonAction: | (id) | sender |
- (id) outlineView: | (NSOutlineView *) | outlineView | |
child: | (int) | index | |
ofItem: | (id) | item | |
References _currentList.
- (BOOL) outlineView: | (NSOutlineView *) | outlineView | |
isItemExpandable: | (id) | item | |
- (int) outlineView: | (NSOutlineView *) | outlineView | |
numberOfChildrenOfItem: | (id) | item | |
References _currentList.
- (id) outlineView: | (NSOutlineView *) | outlineView | |
objectValueForTableColumn: | (NSTableColumn *) | tableColumn | |
byItem: | (id) | item | |
References _windowMode, MyImageListItem::getQuality, and ImageMode.
- (void) outlineView: | (NSOutlineView *) | outlineView | |
setObjectValue: | (id) | object | |
forTableColumn: | (NSTableColumn *) | tableColumn | |
byItem: | (id) | item | |
References _currentList, _refCheckBox, _textView, _windowMode, and ImageMode.
- (void) outlineViewSelectionDidChange: | (NSNotification*) | aNotification |
References _currentList, _highlightedItem, _imageView, _processImageUpdate, _textView, _windowMode, _windowState, Aligning, AlignMode, MyImageListItem::alignOffset, AnalyzeMode, Analyzing, MyImageListItem::getImage, MyIntegerSize::height, ImageMode, ListMode, MyMakeIntegerPoint(), MyIntegerRect::origin, MyImageListItem::searchSquareOrigin, MyImageView::setImage:offset:, MyImageView::setSelection:resizable:, MyIntegerRect::size, Stacking, StackMode, updateAlignControls, updateAnalyzeControls, updateListControls, updateStackControls, MyIntegerSize::width, and windowStateName.
Referenced by MyDocument::deleteEntry:, and tabView:didSelectTabViewItem:.
- (void) postProcessAction: | (id) | sender |
References _blackTextLevel, _deconvRadius, _deconvTextRadius, _deconvTextThreshold, _deconvThreshold, _imageView, _unsharpGain, _unsharpRadius, _unsharpTextGain, _unsharpTextRadius, _whiteTextLevel, _windowState, ProcessMode, MyImageView::setImage:offset:, and updateProcessControls.
Referenced by modeMenuAction:, and tabView:didSelectTabViewItem:.
- (void) referenceAction: | (id) | sender |
References _currentList, _highlightedItem, _windowMode, ImageMode, and windowModeName.
- (void) refreshOutline |
References _textView.
Referenced by MyDocument::addEntry:, and MyDocument::deleteEntry:.
- (void) searchSquareChange: | (id) | sender |
References _currentList, _highlightedItem, _imageView, _searchFieldX, _searchFieldY, _searchSideMenu, _windowMode, _windowState, AlignMode, MyIntegerSize::height, ImageMode, MyIntegerRect::origin, MyImageListItem::setSearchSquareOrigin:, MyImageView::setSelection:resizable:, MyIntegerRect::size, updateAlignControls, MyIntegerSize::width, windowModeName, windowStateName, MyIntegerPoint::x, and MyIntegerPoint::y.
- (void) setWindowState: | (MyImageListWindowState) | state |
References _alignButton, _analyzeButton, _listMenu, _processImageUpdate, _stackButton, _windowState, MyUserPrefsController::alignImageUpdating, Aligning, AlignMode, MyUserPrefsController::analysisImageUpdating, AnalyzeMode, Analyzing, ListMode, ProcessMode, MyUserPrefsController::stackImageUpdating, Stacking, StackMode, updateAlignControls, updateAnalyzeControls, updateSelectThresholdSlide, and updateStackControls.
Referenced by MyDocument::align, MyDocument::analyzeQuality, MyDocument::stack, and tabView:didSelectTabViewItem:.
- (void) stackAction: | (id) | sender |
References updateProcessControls.
- (void) tabView: | (NSTabView *) | tabView | |
didSelectTabViewItem: | (NSTabViewItem *) | tabViewItem | |
References _currentList, _imageView, _windowMode, _windowState, AlignMode, AnalyzeMode, MyImageList::firstItem, highlightItem:, ImageMode, K_ALIGN_TAB_IDENT, K_LIST_TAB_IDENT, K_PROCESS_TAB_IDENT, K_STACK_TAB_IDENT, nowhere, outlineViewSelectionDidChange:, postProcessAction:, MyImageView::setImage:offset:, MyImageView::setSelection:resizable:, setWindowState:, StackMode, and updateProcessControls.
- (void) toggleEntrySelection: | (id) | sender |
References _currentList, _highlightedItem, _refCheckBox, _textView, _windowMode, _windowState, AlignMode, AnalyzeMode, MyImageListItem::getSelectionState, ImageMode, and ListMode.
- (void) updateAlignControls |
References _alignButton, _currentList, _highlightedItem, _refCheckBox, _searchFieldX, _searchFieldY, _searchSideMenu, _windowMode, _windowState, AlignMode, ImageMode, MyObjectImageList::referenceItem, MyObjectImageList::searchSquareOrigin, MyImageListItem::searchSquareOrigin, and windowModeName.
Referenced by MyDocument::changeReferenceEntry:, modeMenuAction:, outlineViewSelectionDidChange:, searchSquareChange:, and setWindowState:.
- (void) updateAnalyzeControls |
References _analyzeButton, _analyzeFieldX, _analyzeFieldY, _analyzeMethodMenu, _analyzeSideMenu, _currentList, _highlightedItem, _windowMode, _windowState, AnalyzeMode, MyObjectImageList::analyzeSquareOrigin, ImageMode, and windowModeName.
Referenced by analyzeSquareChange:, modeMenuAction:, outlineViewSelectionDidChange:, and setWindowState:.
- (void) updateListControls |
References _currentList, _highlightedItem, _minusButton, _nextButton, _prevButton, _toggleButton, and MyImageList::imageArray.
Referenced by addFiles:, deleteAction:, and outlineViewSelectionDidChange:.
- (void) updateProcessControls |
References _blackLevel, _blackTextLevel, _currentList, _deconvRadius, _deconvTextRadius, _deconvTextThreshold, _deconvThreshold, _unsharpGain, _unsharpRadius, _unsharpTextGain, _unsharpTextRadius, _whiteLevel, _whiteTextLevel, _windowMode, MyImageList::blackLevel, MyObjectImageList::dRadius, MyObjectImageList::dThreshold, FlatFieldMode, ImageMode, MyObjectImageList::uGain, MyObjectImageList::uRadius, and MyImageList::whiteLevel.
Referenced by modeMenuAction:, postProcessAction:, stackAction:, and tabView:didSelectTabViewItem:.
- (void) updateSelectThresholdSlide |
References _currentList, _maxQualityText, _minQualityText, _selectThresholdSlide, _windowMode, ImageMode, MyObjectImageList::maxQuality, MyObjectImageList::minQuality, MyObjectImageList::qualityThreshold, and windowModeName.
Referenced by modeMenuAction:, and setWindowState:.
- (void) updateSidePopup |
References _fillSideArmed.
Referenced by MyDocument::addEntry:, and MyDocument::deleteEntry:.
- (void) updateStackControls |
References _cropH, _cropW, _cropX, _cropY, _currentList, _doubleButton, _highlightedItem, _monoStackButton, _stackButton, _windowMode, _windowState, MyObjectImageList::cropRectangle, FlatFieldMode, ImageMode, MyIntegerRect::size, MyObjectImageList::sizeFactor, and StackMode.
Referenced by cropRectangleChange:, modeMenuAction:, outlineViewSelectionDidChange:, and setWindowState:.
References _windowMode.
- (NSString *) windowModeName |
References _windowMode, DarkFrameMode, FlatFieldMode, and ImageMode.
Referenced by analyzeSquareChange:, modeMenuAction:, referenceAction:, searchSquareChange:, updateAlignControls, updateAnalyzeControls, and updateSelectThresholdSlide.
References _windowState.
- (NSString *) windowStateName |
References _windowState, Aligning, AlignMode, AnalyzeMode, Analyzing, ListMode, ProcessMode, Stacking, and StackMode.
Referenced by analyzeSquareChange:, modeMenuAction:, outlineViewSelectionDidChange:, and searchSquareChange:.
- (IBOutlet NSButton*) _alignButton [private] |
Referenced by fillSidePopup, setWindowState:, and updateAlignControls.
- (IBOutlet NSButton*) _analyzeButton [private] |
Referenced by fillSidePopup, setWindowState:, and updateAnalyzeControls.
- (IBOutlet NSTextField*) _analyzeFieldX [private] |
Referenced by analyzeSquareChange:, and updateAnalyzeControls.
- (IBOutlet NSTextField *) _analyzeFieldY [private] |
Referenced by analyzeSquareChange:, and updateAnalyzeControls.
- (IBOutlet NSPopUpButton*) _analyzeMethodMenu [private] |
Referenced by updateAnalyzeControls.
- (IBOutlet NSPopUpButton*) _analyzeSideMenu [private] |
Referenced by analyzeSquareChange:, fillSidePopup, and updateAnalyzeControls.
- (IBOutlet NSSlider*) _blackLevel [private] |
Referenced by changeLevelsAction:, and updateProcessControls.
- (IBOutlet NSTextField*) _blackTextLevel [private] |
Referenced by changeLevelsAction:, postProcessAction:, and updateProcessControls.
- (IBOutlet NSTextField *) _cropH [private] |
Referenced by cropRectangleChange:, and updateStackControls.
- (IBOutlet NSTextField *) _cropW [private] |
Referenced by cropRectangleChange:, and updateStackControls.
- (IBOutlet NSTextField*) _cropX [private] |
Referenced by cropRectangleChange:, and updateStackControls.
- (IBOutlet NSTextField *) _cropY [private] |
Referenced by cropRectangleChange:, and updateStackControls.
- (MyImageList*) _currentList [private] |
Referenced by analyzeSquareChange:, cropRectangleChange:, fillSidePopup, highlightOther:, modeMenuAction:, outlineView:child:ofItem:, outlineView:numberOfChildrenOfItem:, outlineView:setObjectValue:forTableColumn:byItem:, outlineViewSelectionDidChange:, referenceAction:, searchSquareChange:, tabView:didSelectTabViewItem:, toggleEntrySelection:, updateAlignControls, updateAnalyzeControls, updateListControls, updateProcessControls, updateSelectThresholdSlide, and updateStackControls.
- (IBOutlet NSSlider*) _deconvRadius [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSTextField*) _deconvTextRadius [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSTextField *) _deconvTextThreshold [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSSlider *) _deconvThreshold [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSButton*) _doubleButton [private] |
Referenced by updateStackControls.
- (bool) _fillSideArmed [private] |
Referenced by fillSidePopup, and updateSidePopup.
- (MyImageListItem*) _highlightedItem [private] |
- (IBOutlet MyImageView*) _imageView [private] |
- (IBOutlet NSPopUpButton*) _listMenu [private] |
Referenced by modeMenuAction:, and setWindowState:.
- (IBOutlet NSTextField *) _maxQualityText [private] |
Referenced by updateSelectThresholdSlide.
- (double) _minQuality [private] |
- (IBOutlet NSTextField*) _minQualityText [private] |
Referenced by updateSelectThresholdSlide.
- (IBOutlet NSButton*) _minusButton [private] |
Referenced by updateListControls.
- (IBOutlet NSButton *) _monoStackButton [private] |
Referenced by updateStackControls.
- (IBOutlet NSButton*) _nextButton [private] |
Referenced by updateListControls.
- (IBOutlet NSButton*) _plusButton [private] |
- (IBOutlet NSButton*) _prevButton [private] |
Referenced by updateListControls.
- (bool) _processImageUpdate [private] |
Referenced by outlineViewSelectionDidChange:, and setWindowState:.
- (double) _qualityScale [private] |
- (IBOutlet NSButton*) _refCheckBox [private] |
Referenced by outlineView:setObjectValue:forTableColumn:byItem:, toggleEntrySelection:, and updateAlignControls.
- (IBOutlet NSTextField*) _searchFieldX [private] |
Referenced by searchSquareChange:, and updateAlignControls.
- (IBOutlet NSTextField *) _searchFieldY [private] |
Referenced by searchSquareChange:, and updateAlignControls.
- (IBOutlet NSPopUpButton*) _searchSideMenu [private] |
Referenced by fillSidePopup, searchSquareChange:, and updateAlignControls.
- (IBOutlet NSSlider*) _selectThresholdSlide [private] |
Referenced by updateSelectThresholdSlide.
- (u_short) _sideMenuLimit [private] |
Referenced by fillSidePopup.
- (IBOutlet NSButton*) _stackButton [private] |
Referenced by setWindowState:, and updateStackControls.
- (IBOutlet NSTabView*) _tabPane [private] |
- (IBOutlet NSOutlineView*) _textView [private] |
- (IBOutlet NSButton*) _toggleButton [private] |
Referenced by updateListControls.
- (IBOutlet NSSlider *) _unsharpGain [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSSlider*) _unsharpRadius [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSTextField *) _unsharpTextGain [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSTextField*) _unsharpTextRadius [private] |
Referenced by postProcessAction:, and updateProcessControls.
- (IBOutlet NSSlider *) _whiteLevel [private] |
Referenced by changeLevelsAction:, and updateProcessControls.
- (IBOutlet NSTextField *) _whiteTextLevel [private] |
Referenced by changeLevelsAction:, postProcessAction:, and updateProcessControls.
- (MyImageListWindowMode) _windowMode [private] |
Referenced by analyzeSquareChange:, cropRectangleChange:, fillSidePopup, modeMenuAction:, outlineView:objectValueForTableColumn:byItem:, outlineView:setObjectValue:forTableColumn:byItem:, outlineViewSelectionDidChange:, referenceAction:, searchSquareChange:, tabView:didSelectTabViewItem:, toggleEntrySelection:, updateAlignControls, updateAnalyzeControls, updateProcessControls, updateSelectThresholdSlide, updateStackControls, windowMode, and windowModeName.
- (MyImageListWindowState) _windowState [private] |
Referenced by analyzeSquareChange:, highlightOther:, modeMenuAction:, outlineViewSelectionDidChange:, postProcessAction:, searchSquareChange:, setWindowState:, tabView:didSelectTabViewItem:, toggleEntrySelection:, updateAlignControls, updateAnalyzeControls, updateStackControls, windowState, and windowStateName.