-
Notifications
You must be signed in to change notification settings - Fork 2
/
PColourWindow.h
44 lines (35 loc) · 1.47 KB
/
PColourWindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//==============================================================================
// File: PColourWindow.h
//
// Copyright (c) 2017, Phil Harvey, Queen's University
//==============================================================================
//
// Created: 03/02/00 - Phil Harvey
//
#include "PImageWindow.h"
class PColourPicker;
class PColourWheel;
class PColourWindow : public PImageWindow
{
public:
PColourWindow(ImageData *data);
~PColourWindow();
virtual void UpdateSelf();
void WheelColourChanging();
void WheelColourChanged();
void PickerColourChanged();
void SetIntensity(int val);
private:
void UpdateSliderPosition();
void UpdateText();
static void IntensityProc(Widget w, PColourWindow *cwin, XmScaleCallbackStruct *call_data);
static void ScaleDragProc(Widget w, PColourWindow *cwin, XmScaleCallbackStruct *call_data);
static void OkProc(Widget w, PColourWindow *cwin, caddr_t call_data);
static void ApplyProc(Widget w, PColourWindow *cwin, caddr_t call_data);
static void RevertProc(Widget w, PColourWindow *cwin, caddr_t call_data);
static void CancelProc(Widget w, PColourWindow *cwin, caddr_t call_data);
static void TextProc(Widget w, PColourWindow *cwin, caddr_t call_data);
PColourPicker * mColourPicker;
PColourWheel * mColourWheel;
Widget mText[3], mSlide;
};