FeatherOptions modeless (floating) dialog - allows entry and display of brush width and feather. More...
#include <FeatherOptions.h>
Inherits COptionsPanel, and PopupSliderOwner.
Public Types | |
| enum | { MIN_FEATHER_SIZE =2 , MAX_FEATHER_SIZE =51 , MIN_RATE =1 , MAX_RATE =10 , MIN_RADIUS =1 , MAX_RADIUS =5 } |
| enum | { IDD = IDD_FEATHER_OPTIONS } |
Public Types inherited from COptionsPanel | |
| enum | { IDD = IDD_NO_OPTIONS } |
Public Member Functions | |
| FeatherOptions (CWnd *pParent=NULL) | |
| FeatherOptions dialog trivial construstor - Create does the real work. | |
| virtual void | GetPopSliderInfo (const long sliderID, long *pMin, long *pMax, long *pLineSize, long *pInitial) |
| virtual void | PopSliderChanged (const long sliderID, long theVal) |
| virtual void | PopSliderFinished (const long sliderID, long theVal) |
Public Member Functions inherited from COptionsPanel | |
| COptionsPanel (Int dlgid=0, CWnd *pParent=NULL) | |
Static Public Member Functions | |
| static void | setFeather (Int feather) |
| Sets the feather value in the dialog. | |
| static void | setRate (Int rate) |
| Sets the rate value in the dialog. | |
| static void | setRadius (Int radius) |
| Sets the radius value in the dialog. | |
Protected Member Functions | |
| virtual void | DoDataExchange (CDataExchange *pDX) |
| Windows default stuff. | |
| virtual void | OnOK () |
| virtual void | OnCancel () |
| Modeless dialogs don't OK, so eat this for modeless. | |
| virtual BOOL | OnInitDialog () |
| Modeless dialogs don't close on ESC, so eat this for modeless. | |
| afx_msg void | OnChangeSizeEdit () |
| Handles width edit ui messages. | |
Protected Member Functions inherited from COptionsPanel | |
| afx_msg void | OnMove (int x, int y) |
| afx_msg void | OnEditRedo () |
| afx_msg void | OnUpdateEditRedo (CCmdUI *pCmdUI) |
| afx_msg void | OnEditUndo () |
| afx_msg void | OnUpdateEditUndo (CCmdUI *pCmdUI) |
Protected Attributes | |
| Bool | m_updating |
| true if the ui is updating itself. | |
| WBPopupSliderButton | m_featherPopup |
| WBPopupSliderButton | m_radiusPopup |
| WBPopupSliderButton | m_ratePopup |
Static Protected Attributes | |
| static FeatherOptions * | m_staticThis = NULL |
| Reference to the floating panel so SetWidth and SetFeather can be static. | |
| static Int | m_currentFeather = 0 |
| current brush width in the ui. | |
| static Int | m_currentRadius = 1 |
| current smoothing radius value. | |
| static Int | m_currentRate = 3 |
| current smoothing rate. | |
FeatherOptions modeless (floating) dialog - allows entry and display of brush width and feather.
Definition at line 33 of file FeatherOptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IDD | |
Definition at line 48 of file FeatherOptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MIN_FEATHER_SIZE | |
| MAX_FEATHER_SIZE | |
| MIN_RATE | |
| MAX_RATE | |
| MIN_RADIUS | |
| MAX_RADIUS | |
Definition at line 37 of file FeatherOptions.h.
| FeatherOptions::FeatherOptions | ( | CWnd * | pParent = NULL | ) |
FeatherOptions dialog trivial construstor - Create does the real work.
Definition at line 37 of file FeatherOptions.cpp.
|
protectedvirtual |
Windows default stuff.
Reimplemented from COptionsPanel.
Definition at line 45 of file FeatherOptions.cpp.
|
virtual |
Implements PopupSliderOwner.
Definition at line 146 of file FeatherOptions.cpp.
|
inlineprotectedvirtual |
Modeless dialogs don't OK, so eat this for modeless.
Definition at line 59 of file FeatherOptions.h.
|
protected |
Handles width edit ui messages.
Gets the new edit control text, converts it to an int, then updates the slider and brush tool.
Definition at line 125 of file FeatherOptions.cpp.
|
protectedvirtual |
Modeless dialogs don't close on ESC, so eat this for modeless.
Dialog UI initialization.
Creates the slider controls, and sets the initial values for width and feather in the ui controls.
Definition at line 102 of file FeatherOptions.cpp.
|
inlineprotectedvirtual |
Definition at line 58 of file FeatherOptions.h.
|
virtual |
Implements PopupSliderOwner.
Definition at line 178 of file FeatherOptions.cpp.
|
virtual |
Implements PopupSliderOwner.
Definition at line 213 of file FeatherOptions.cpp.
|
static |
Sets the feather value in the dialog.
Update the value in the edit control and the slider.
Definition at line 55 of file FeatherOptions.cpp.
|
static |
Sets the radius value in the dialog.
Update the value in the edit control and the slider.
Definition at line 83 of file FeatherOptions.cpp.
|
static |
Sets the rate value in the dialog.
Update the value in the edit control and the slider.
Definition at line 69 of file FeatherOptions.cpp.
|
staticprotected |
current brush width in the ui.
Definition at line 74 of file FeatherOptions.h.
|
staticprotected |
current smoothing radius value.
Definition at line 75 of file FeatherOptions.h.
|
staticprotected |
current smoothing rate.
Definition at line 76 of file FeatherOptions.h.
|
protected |
Definition at line 79 of file FeatherOptions.h.
|
protected |
Definition at line 80 of file FeatherOptions.h.
|
protected |
Definition at line 81 of file FeatherOptions.h.
|
staticprotected |
Reference to the floating panel so SetWidth and SetFeather can be static.
Definition at line 73 of file FeatherOptions.h.
|
protected |
true if the ui is updating itself.
Definition at line 78 of file FeatherOptions.h.