47 CDialog::DoDataExchange(pDX);
58 buf.Format(
"%d", feather);
62 if (pEdit) pEdit->SetWindowText(buf);
71 buf.Format(
"%d", width);
75 if (pEdit) pEdit->SetWindowText(buf);
82 sprintf(buffer,
"%d", height);
86 if (pEdit) pEdit->SetWindowText(buffer);
100 CDialog::OnInitDialog();
124 char buffer[_MAX_PATH];
126 pEdit->GetWindowText(buffer,
sizeof(buffer));
129 if (1==sscanf(buffer,
"%d", &feather)) {
134 if (pEdit) pEdit->SetWindowText(buffer);
147 char buffer[_MAX_PATH];
149 pEdit->GetWindowText(buffer,
sizeof(buffer));
152 if (1==sscanf(buffer,
"%d", &width)) {
157 if (pEdit) pEdit->SetWindowText(buffer);
170 char buffer[_MAX_PATH];
172 pEdit->GetWindowText(buffer,
sizeof(buffer));
175 if (1==sscanf(buffer,
"%d", &height)) {
180 if (pEdit) pEdit->SetWindowText(buffer);
213 DEBUG_CRASH((
"Slider message from unknown control"));
228 if (pEdit) pEdit->SetWindowText(str);
236 if (pEdit) pEdit->SetWindowText(str);
244 if (pEdit) pEdit->SetWindowText(str);
250 DEBUG_CRASH((
"Slider message from unknown control"));
267 DEBUG_CRASH((
"Slider message from unknown control"));
BrushOptions modeless (floating) dialog - allows entry and display of brush width and feather.
virtual void DoDataExchange(CDataExchange *pDX)
Windows default stuff.
static Int m_currentFeather
current feather width in the ui.
virtual void GetPopSliderInfo(const long sliderID, long *pMin, long *pMax, long *pLineSize, long *pInitial)
static void setFeather(Int feather)
Sets the feather value in the dialog.
static void setHeight(Int height)
afx_msg void OnChangeSizeEdit()
Handles width edit ui messages.
static BrushOptions * m_staticThis
Reference to the floating panel so SetWidth and SetFeather can be static.
BrushOptions(CWnd *pParent=NULL)
BrushOptions dialog trivial construstor - Create does the real work.
WBPopupSliderButton m_brushWidthPopup
afx_msg void OnChangeHeightEdit()
Handles width edit ui messages.
static void setWidth(Int width)
Sets the brush width value in the dialog.
virtual void PopSliderChanged(const long sliderID, long theVal)
afx_msg void OnChangeFeatherEdit()
Handles feather edit ui messages.
virtual void PopSliderFinished(const long sliderID, long theVal)
static Int m_currentWidth
current brush width in the ui.
WBPopupSliderButton m_brushHeightPopup
static Int m_currentHeight
Bool m_updating
true if the ui is updating itself.
WBPopupSliderButton m_brushFeatherPopup
virtual BOOL OnInitDialog()
Modeless dialogs don't close on ESC, so eat this for modeless.