Deleted Added
full compact
AntialiasingSettingsView.h (e4737a92) AntialiasingSettingsView.h (f0650dc9)
1/*
2 * Copyright 2008, Andrej Spielmann, <andrej.spielmann@seh.ox.ac.uk>
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5#ifndef ANTIALIASING_SETTINGS_VIEW_H
6#define ANTIALIASING_SETTINGS_VIEW_H
7
8
9#include <View.h>
10
11class BBox;
12class BMenuField;
13class BPopUpMenu;
14class BSlider;
1/*
2 * Copyright 2008, Andrej Spielmann, <andrej.spielmann@seh.ox.ac.uk>
3 * All rights reserved. Distributed under the terms of the MIT License.
4 */
5#ifndef ANTIALIASING_SETTINGS_VIEW_H
6#define ANTIALIASING_SETTINGS_VIEW_H
7
8
9#include <View.h>
10
11class BBox;
12class BMenuField;
13class BPopUpMenu;
14class BSlider;
15class BTextView;
15
16
17class AntialiasingSettingsView : public BView {
18public:
19 AntialiasingSettingsView(const char* name);
20 virtual ~AntialiasingSettingsView();
21
22 virtual void AttachedToWindow();

--- 5 unchanged lines hidden (view full) ---

28 bool IsRevertable();
29
30private:
31 void _BuildAntialiasingMenu();
32 void _SetCurrentAntialiasing();
33 void _BuildHintingMenu();
34 void _SetCurrentHinting();
35 void _SetCurrentAverageWeight();
16
17
18class AntialiasingSettingsView : public BView {
19public:
20 AntialiasingSettingsView(const char* name);
21 virtual ~AntialiasingSettingsView();
22
23 virtual void AttachedToWindow();

--- 5 unchanged lines hidden (view full) ---

29 bool IsRevertable();
30
31private:
32 void _BuildAntialiasingMenu();
33 void _SetCurrentAntialiasing();
34 void _BuildHintingMenu();
35 void _SetCurrentHinting();
36 void _SetCurrentAverageWeight();
37 void _UpdateColors();
36
37protected:
38 float fDivider;
39
40 BMenuField* fAntialiasingMenuField;
41 BPopUpMenu* fAntialiasingMenu;
42 BMenuField* fHintingMenuField;
43 BPopUpMenu* fHintingMenu;
44 BSlider* fAverageWeightControl;
38
39protected:
40 float fDivider;
41
42 BMenuField* fAntialiasingMenuField;
43 BPopUpMenu* fAntialiasingMenu;
44 BMenuField* fHintingMenuField;
45 BPopUpMenu* fHintingMenu;
46 BSlider* fAverageWeightControl;
47 BTextView* fSubpixelAntialiasingDisabledLabel;
45
46 bool fSavedSubpixelAntialiasing;
47 bool fCurrentSubpixelAntialiasing;
48 uint8 fSavedHinting;
49 uint8 fCurrentHinting;
50 unsigned char fSavedAverageWeight;
51 unsigned char fCurrentAverageWeight;
52};
53
54#endif // ANTIALIASING_SETTINGS_VIEW_H
48
49 bool fSavedSubpixelAntialiasing;
50 bool fCurrentSubpixelAntialiasing;
51 uint8 fSavedHinting;
52 uint8 fCurrentHinting;
53 unsigned char fSavedAverageWeight;
54 unsigned char fCurrentAverageWeight;
55};
56
57#endif // ANTIALIASING_SETTINGS_VIEW_H