BrushOptions modeless (floating) dialog - allows entry and display of brush width and feather. More...
#include <brushoptions.h>
Inherits COptionsPanel, and PopupSliderOwner.
Public Types | |
| enum | { MIN_BRUSH_SIZE =1 , MAX_BRUSH_SIZE =51 , FREQ_BRUSH_TICKS =10 , MIN_FEATHER =0 , FREQ_FEATHER_TICKS =4 , MAX_FEATHER =20 } |
| enum | { IDD = IDD_BRUSH_OPTIONS } |
Public Types inherited from COptionsPanel | |
| enum | { IDD = IDD_NO_OPTIONS } |
Public Member Functions | |
| BrushOptions (CWnd *pParent=NULL) | |
| BrushOptions 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 | setWidth (Int width) |
| Sets the brush width value in the dialog. | |
| static void | setFeather (Int feather) |
| Sets the feather value in the dialog. | |
| static void | setHeight (Int height) |
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 | OnChangeFeatherEdit () |
| Handles feather edit ui messages. | |
| afx_msg void | OnChangeSizeEdit () |
| Handles width edit ui messages. | |
| afx_msg void | OnChangeHeightEdit () |
| 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_brushWidthPopup |
| WBPopupSliderButton | m_brushFeatherPopup |
| WBPopupSliderButton | m_brushHeightPopup |
Static Protected Attributes | |
| static BrushOptions * | m_staticThis = NULL |
| Reference to the floating panel so SetWidth and SetFeather can be static. | |
| static Int | m_currentWidth = 0 |
| current brush width in the ui. | |
| static Int | m_currentFeather = 0 |
| current feather width in the ui. | |
| static Int | m_currentHeight = 0 |
BrushOptions modeless (floating) dialog - allows entry and display of brush width and feather.
Definition at line 33 of file brushoptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| MIN_BRUSH_SIZE | |
| MAX_BRUSH_SIZE | |
| FREQ_BRUSH_TICKS | |
| MIN_FEATHER | |
| FREQ_FEATHER_TICKS | |
| MAX_FEATHER | |
Definition at line 37 of file brushoptions.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IDD | |
Definition at line 48 of file brushoptions.h.
| BrushOptions::BrushOptions | ( | CWnd * | pParent = NULL | ) |
BrushOptions dialog trivial construstor - Create does the real work.
Definition at line 37 of file brushoptions.cpp.
|
protectedvirtual |
Windows default stuff.
Reimplemented from COptionsPanel.
Definition at line 45 of file brushoptions.cpp.
|
virtual |
Implements PopupSliderOwner.
Definition at line 186 of file brushoptions.cpp.
|
inlineprotectedvirtual |
Modeless dialogs don't OK, so eat this for modeless.
Definition at line 59 of file brushoptions.h.
|
protected |
Handles feather edit ui messages.
Gets the new edit control text, converts it to an int, then updates the slider and brush tool.
Definition at line 120 of file brushoptions.cpp.
|
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 166 of file brushoptions.cpp.
|
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 143 of file brushoptions.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 98 of file brushoptions.cpp.
|
inlineprotectedvirtual |
Definition at line 58 of file brushoptions.h.
|
virtual |
Implements PopupSliderOwner.
Definition at line 218 of file brushoptions.cpp.
|
virtual |
Implements PopupSliderOwner.
Definition at line 255 of file brushoptions.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 brushoptions.cpp.
|
static |
Definition at line 79 of file brushoptions.cpp.
|
static |
Sets the brush width value in the dialog.
Update the value in the edit control and the slider.
Definition at line 68 of file brushoptions.cpp.
|
protected |
Definition at line 82 of file brushoptions.h.
|
protected |
Definition at line 83 of file brushoptions.h.
|
protected |
Definition at line 81 of file brushoptions.h.
|
staticprotected |
current feather width in the ui.
Definition at line 77 of file brushoptions.h.
|
staticprotected |
Definition at line 78 of file brushoptions.h.
|
staticprotected |
current brush width in the ui.
Definition at line 76 of file brushoptions.h.
|
staticprotected |
Reference to the floating panel so SetWidth and SetFeather can be static.
Definition at line 75 of file brushoptions.h.
|
protected |
true if the ui is updating itself.
Definition at line 80 of file brushoptions.h.