|
Lynkeos
1.2
|
The document window controler. More...
#import <MyImageListWindow.h>

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, MyImageListWindow(Private)::windowModeName, MyImageListWindow(Private)::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 |
Provided by category MyImageListWindow(Private).
References _alignButton, _analyzeButton, _analyzeSideMenu, _currentList, _searchSideMenu, MyImageList::imageArray, ImageMode, and MyImageListItem::imageSize.
| - (MyImageListItem *) highlightedItem |
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 |
Provided by category MyImageListWindow(Private).
References _currentList, _textView, 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, MyImageListWindow(Private)::windowModeName, and MyImageListWindow(Private)::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 MyImageListWindow(Private)::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 MyImageListWindow(Private)::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, MyImageListWindow(Private)::windowModeName, MyImageListWindow(Private)::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_ANALYZE_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 MyImageListWindow(Private)::windowModeName.
Referenced by MyDocument::changeReferenceEntry:, modeMenuAction:, outlineViewSelectionDidChange:, searchSquareChange:, and setWindowState:.
| - (void) updateAnalyzeControls |
Provided by category MyImageListWindow(Private).
References _analyzeButton, _analyzeFieldX, _analyzeFieldY, _analyzeMethodMenu, _analyzeSideMenu, _highlightedItem, AnalyzeMode, MyObjectImageList::analyzeSquareOrigin, and ImageMode.
Referenced by analyzeSquareChange:, modeMenuAction:, outlineViewSelectionDidChange:, and setWindowState:.
| - (void) updateListControls |
Provided by category MyImageListWindow(Private).
References _currentList, _minusButton, _nextButton, _prevButton, _toggleButton, and MyImageList::imageArray.
Referenced by addFiles:, deleteAction:, and outlineViewSelectionDidChange:.
| - (void) updateProcessControls |
Provided by category MyImageListWindow(Private).
References _blackLevel, _blackTextLevel, _currentList, _deconvRadius, _deconvTextRadius, _deconvTextThreshold, _deconvThreshold, _unsharpGain, _unsharpRadius, _unsharpTextGain, _unsharpTextRadius, _whiteLevel, _whiteTextLevel, 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 |
Provided by category MyImageListWindow(Private).
References _maxQualityText, _minQualityText, _selectThresholdSlide, ImageMode, MyObjectImageList::maxQuality, MyObjectImageList::minQuality, and MyObjectImageList::qualityThreshold.
Referenced by modeMenuAction:, and setWindowState:.
| - (void) updateSidePopup |
References _fillSideArmed.
Referenced by MyDocument::addEntry:, and MyDocument::deleteEntry:.
| - (void) updateStackControls |
Provided by category MyImageListWindow(Private).
References _cropH, _cropW, _cropX, _cropY, _doubleButton, _monoStackButton, _stackButton, MyObjectImageList::cropRectangle, FlatFieldMode, ImageMode, MyIntegerRect::size, MyObjectImageList::sizeFactor, StackMode, and MyIntegerSize::width.
Referenced by cropRectangleChange:, modeMenuAction:, outlineViewSelectionDidChange:, and setWindowState:.
| - (MyImageListWindowMode) windowMode |
References _windowMode.
| - (NSString *) windowModeName |
Provided by category MyImageListWindow(Private).
References DarkFrameMode, FlatFieldMode, and ImageMode.
| - (MyImageListWindowState) windowState |
References _windowState.
| - (NSString *) windowStateName |
Provided by category MyImageListWindow(Private).
References Aligning, AlignMode, AnalyzeMode, Analyzing, ListMode, ProcessMode, Stacking, and StackMode.
|
private |
Referenced by fillSidePopup, setWindowState:, and updateAlignControls.
|
private |
Referenced by fillSidePopup, setWindowState:, and updateAnalyzeControls.
|
private |
Referenced by analyzeSquareChange:, and updateAnalyzeControls.
|
private |
Referenced by analyzeSquareChange:, and updateAnalyzeControls.
|
private |
Referenced by updateAnalyzeControls.
|
private |
Referenced by analyzeSquareChange:, fillSidePopup, and updateAnalyzeControls.
|
private |
Referenced by changeLevelsAction:, and updateProcessControls.
|
private |
Referenced by changeLevelsAction:, postProcessAction:, and updateProcessControls.
|
private |
Referenced by cropRectangleChange:, and updateStackControls.
|
private |
Referenced by cropRectangleChange:, and updateStackControls.
|
private |
Referenced by cropRectangleChange:, and updateStackControls.
|
private |
Referenced by cropRectangleChange:, and updateStackControls.
|
private |
Referenced by analyzeSquareChange:, cropRectangleChange:, fillSidePopup, highlightOther:, modeMenuAction:, outlineView:child:ofItem:, outlineView:numberOfChildrenOfItem:, outlineView:setObjectValue:forTableColumn:byItem:, outlineViewSelectionDidChange:, referenceAction:, searchSquareChange:, tabView:didSelectTabViewItem:, toggleEntrySelection:, updateAlignControls, updateListControls, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by updateStackControls.
|
private |
Referenced by updateSidePopup.
|
private |
|
private |
|
private |
Referenced by modeMenuAction:, and setWindowState:.
|
private |
Referenced by updateSelectThresholdSlide.
|
private |
|
private |
Referenced by updateSelectThresholdSlide.
|
private |
Referenced by updateListControls.
|
private |
Referenced by updateStackControls.
|
private |
Referenced by updateListControls.
|
private |
|
private |
Referenced by updateListControls.
|
private |
Referenced by outlineViewSelectionDidChange:, and setWindowState:.
|
private |
|
private |
Referenced by outlineView:setObjectValue:forTableColumn:byItem:, toggleEntrySelection:, and updateAlignControls.
|
private |
Referenced by searchSquareChange:, and updateAlignControls.
|
private |
Referenced by searchSquareChange:, and updateAlignControls.
|
private |
Referenced by fillSidePopup, searchSquareChange:, and updateAlignControls.
|
private |
Referenced by updateSelectThresholdSlide.
|
private |
|
private |
Referenced by setWindowState:, and updateStackControls.
|
private |
|
private |
|
private |
Referenced by updateListControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by postProcessAction:, and updateProcessControls.
|
private |
Referenced by changeLevelsAction:, and updateProcessControls.
|
private |
Referenced by changeLevelsAction:, postProcessAction:, and updateProcessControls.
|
private |
Referenced by analyzeSquareChange:, cropRectangleChange:, modeMenuAction:, outlineView:objectValueForTableColumn:byItem:, outlineView:setObjectValue:forTableColumn:byItem:, outlineViewSelectionDidChange:, referenceAction:, searchSquareChange:, tabView:didSelectTabViewItem:, toggleEntrySelection:, updateAlignControls, and windowMode.
|
private |
1.8.15