ContourOptions modeless (floating) dialog - allows entry and display of brush width and feather. More...
#include <ContourOptions.h>
Inherits CDialog.
Public Types | |
| enum | { MIN_CONTOUR_STEP =1 , MAX_CONTOUR_STEP =10 , MIN_CONTOUR_OFFSET =-10 , MAX_CONTOUR_OFFSET =+10 , MIN_WIDTH =1 , MAX_WIDTH =6 } |
| enum | { IDD = IDD_CONTOUR_OPTIONS } |
Public Member Functions | |
| ContourOptions (CWnd *pParent=NULL) | |
| ContourOptions dialog trivial construstor - Create does the real work. | |
Static Public Member Functions | |
| static Int | getContourWidth (void) |
| static Int | getContourOffset (void) |
| Returns width. | |
| static Int | getContourStep (void) |
| Returns offset. | |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| Windows default stuff. | |
| virtual BOOL | OnInitDialog () |
| Dialog UI initialization. | |
| afx_msg void | OnHScroll (UINT nSBCode, UINT nPos, CScrollBar *pScrollBar) |
| Handles slider ui messages. | |
| afx_msg void | OnShowContours () |
Protected Attributes | |
| Bool | m_updating |
| true if the ui is updating itself. | |
| CSliderCtrl | m_contourStepSlider |
| Feather slider control. | |
| CSliderCtrl | m_contourOffsetSlider |
| Brush width slider control. | |
| CSliderCtrl | m_contourWidthSlider |
| Brush width slider control. | |
Static Protected Attributes | |
| static Int | m_contourStep = 5 |
| current contour step in the ui. | |
| static Int | m_contourOffset = 0 |
| current contour offset in the ui. | |
| static Int | m_contourWidth = 1 |
| current contour offset in the ui. | |
ContourOptions modeless (floating) dialog - allows entry and display of brush width and feather.
Definition at line 31 of file ContourOptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MIN_CONTOUR_STEP | |
| MAX_CONTOUR_STEP | |
| MIN_CONTOUR_OFFSET | |
| MAX_CONTOUR_OFFSET | |
| MIN_WIDTH | |
| MAX_WIDTH | |
Definition at line 35 of file ContourOptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IDD | |
Definition at line 46 of file ContourOptions.h.
| ContourOptions::ContourOptions | ( | CWnd * | pParent = NULL | ) |
ContourOptions dialog trivial construstor - Create does the real work.
Definition at line 36 of file ContourOptions.cpp.
|
protectedvirtual |
Windows default stuff.
Definition at line 45 of file ContourOptions.cpp.
|
inlinestatic |
Returns width.
Definition at line 81 of file ContourOptions.h.
|
inlinestatic |
Returns offset.
Definition at line 82 of file ContourOptions.h.
|
inlinestatic |
Definition at line 80 of file ContourOptions.h.
Handles slider ui messages.
Gets the info, determines if it is the feather or width slider, gets the new value, and updates the correspondig edit control and the brush tool.
Definition at line 113 of file ContourOptions.cpp.
|
protectedvirtual |
Dialog UI initialization.
Creates the slider controls, and sets the initial values for width and feather in the ui controls.
Definition at line 61 of file ContourOptions.cpp.
|
protected |
Definition at line 151 of file ContourOptions.cpp.
|
staticprotected |
current contour offset in the ui.
Definition at line 71 of file ContourOptions.h.
|
protected |
Brush width slider control.
Definition at line 76 of file ContourOptions.h.
|
staticprotected |
current contour step in the ui.
Definition at line 70 of file ContourOptions.h.
|
protected |
Feather slider control.
Definition at line 75 of file ContourOptions.h.
|
staticprotected |
current contour offset in the ui.
Definition at line 72 of file ContourOptions.h.
|
protected |
Brush width slider control.
Definition at line 77 of file ContourOptions.h.
|
protected |
true if the ui is updating itself.
Definition at line 74 of file ContourOptions.h.