source: branches/profile/WINDOW/aw_at.hxx

Last change on this file was 12920, checked in by westram, 10 years ago
  • abstract AW_at-storage-classes
    • create via factory
    • ask window to restore
  • again hide aw_at.hxx in WINDOW
  • undef get_at() for non-WINDOW users of aw_window.hxx
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.7 KB
Line 
1#ifndef AW_AT_HXX
2#define AW_AT_HXX
3
4#ifndef AW_BASE_HXX
5#include "aw_base.hxx"
6#endif
7
8#if defined(ARB_MOTIF)
9
10// Motif misplaces or cripples widgets created beyond the current window limits.
11// Workaround: make window huge during setup (applies to windows which resize on show)
12// Note: Values below just need to be bigger than any actually created window, should probably be smaller than 32768
13// and can be eliminated when we (completely) switch to ARB_GTK
14#define WIDER_THAN_SCREEN  10000
15#define HIGHER_THAN_SCREEN  6000
16
17#endif
18
19/**
20 * A cursor that describes where and how gui elements should be placed
21 * in a window.
22 */
23class AW_at {
24public:
25    short shadow_thickness;
26    short length_of_buttons;
27    short height_of_buttons;
28    short length_of_label_for_inputfield;
29    bool  highlight;
30
31    char      *helptext_for_next_button;
32    AW_active  widget_mask; // sensitivity (expert/novice mode)
33
34    unsigned long int background_color; // X11 Pixel
35
36    char *label_for_inputfield;
37
38    int x_for_next_button;
39    int y_for_next_button;
40    int max_x_size;
41    int max_y_size;
42
43    int  to_position_x;
44    int  to_position_y;
45    bool to_position_exists;
46
47    bool do_auto_space;
48    int  auto_space_x;
49    int  auto_space_y;
50
51    bool do_auto_increment;
52    int  auto_increment_x;
53    int  auto_increment_y;
54
55    int biggest_height_of_buttons;
56
57    short saved_xoff_for_label;
58
59    short saved_x;
60    int   correct_for_at_center;
61    short x_for_newline;
62
63    bool attach_x;           // attach right side to right form
64    bool attach_y;
65    bool attach_lx;          // attach left side to right form
66    bool attach_ly;
67    bool attach_any;
68
69    AW_at();
70};
71
72#else
73#error aw_at.hxx included twice
74#endif
Note: See TracBrowser for help on using the repository browser.