1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : aw_preset.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Institute of Microbiology (Technical University Munich) // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =============================================================== // |
---|
10 | |
---|
11 | #ifndef AW_PRESET_HXX |
---|
12 | #define AW_PRESET_HXX |
---|
13 | |
---|
14 | #ifndef AW_WINDOW_HXX |
---|
15 | #include "aw_window.hxx" |
---|
16 | #endif |
---|
17 | #ifndef AW_POSITION_HXX |
---|
18 | #include "aw_position.hxx" |
---|
19 | #endif |
---|
20 | #ifndef ATTRIBUTES_H |
---|
21 | #include <attributes.h> |
---|
22 | #endif |
---|
23 | #ifndef CB_H |
---|
24 | #include <cb.h> |
---|
25 | #endif |
---|
26 | |
---|
27 | class ConstStrArray; |
---|
28 | |
---|
29 | void AW_save_properties(AW_window *aw); // use this if you're unsure |
---|
30 | void AW_save_specific_properties(AW_window *aw, const char *filename); |
---|
31 | |
---|
32 | AW_window *AW_preset_window(AW_root *root); |
---|
33 | |
---|
34 | void AW_insert_common_property_menu_entries(AW_window_menu_modes *awmm); |
---|
35 | void AW_insert_common_property_menu_entries(AW_window_simple_menu *awsm); |
---|
36 | |
---|
37 | enum AW_GCM_AREA { |
---|
38 | AW_GCM_DATA_AREA, |
---|
39 | AW_GCM_WINDOW_AREA |
---|
40 | }; |
---|
41 | |
---|
42 | DECLARE_CBTYPE_FVV_AND_BUILDERS(GcChangedCallback, void, GcChange); // generates makeGcChangedCallback |
---|
43 | |
---|
44 | AW_gc_manager *AW_manage_GC(AW_window *aww, |
---|
45 | const char *gc_base_name, |
---|
46 | AW_device *device, |
---|
47 | int base_drag, |
---|
48 | AW_GCM_AREA area, |
---|
49 | const GcChangedCallback& changecb, |
---|
50 | const char *default_background_color, |
---|
51 | ...) __ATTR__SENTINEL; |
---|
52 | |
---|
53 | |
---|
54 | AW_window *AW_create_gc_window(AW_root *aw_root, AW_gc_manager *gcman); // opens the properties Window |
---|
55 | |
---|
56 | // same as AW_create_gc_window, but uses different window id and name |
---|
57 | // (use if if there are two or more color def windows in one application, |
---|
58 | // otherwise they save the same window properties) |
---|
59 | AW_window *AW_create_gc_window_named(AW_root *aw_root, AW_gc_manager *gcman_par, const char *wid, const char *windowname); |
---|
60 | |
---|
61 | void AW_popup_gc_color_range_window(AW_window *aww, AW_gc_manager *gcmgr); |
---|
62 | |
---|
63 | int AW_get_drag_gc(AW_gc_manager *gcman); |
---|
64 | void AW_copy_GC_colors(AW_root *aw_root, const char *source_gcman, const char *dest_gcman, const char *id0, ...) __ATTR__SENTINEL; |
---|
65 | |
---|
66 | void AW_displayColorRange(AW_device *device, int first_range_gc, AW::Position start, AW_pos xsize, AW_pos ysize); |
---|
67 | void AW_getColorRangeNames(const AW_gc_manager *gcman, int dimension, ConstStrArray& ids, ConstStrArray& names); |
---|
68 | void AW_activateColorRange(AW_gc_manager *gcman, const char *id); |
---|
69 | const char *AW_getActiveColorRangeID(AW_gc_manager *gcman, int *dimension); |
---|
70 | int AW_getFirstRangeGC(AW_gc_manager *gcman); |
---|
71 | |
---|
72 | |
---|
73 | #else |
---|
74 | #error aw_preset.hxx included twice |
---|
75 | #endif // AW_PRESET_HXX |
---|