ARB
aw_preset.hxx
Go to the documentation of this file.
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 
33 
36 
40 };
41 
42 DECLARE_CBTYPE_FVV_AND_BUILDERS(GcChangedCallback, void, GcChange); // generates makeGcChangedCallback
43 
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 
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);
71 
72 
73 #else
74 #error aw_preset.hxx included twice
75 #endif // AW_PRESET_HXX
void AW_save_specific_properties(AW_window *aw, const char *filename)
Definition: AW_preset.cxx:1448
void AW_getColorRangeNames(const AW_gc_manager *gcman, int dimension, ConstStrArray &ids, ConstStrArray &names)
Definition: AW_preset.cxx:1406
void AW_displayColorRange(AW_device *device, int first_range_gc, AW::Position start, AW_pos xsize, AW_pos ysize)
Definition: AW_preset.cxx:1381
AW_window * AW_create_gc_window(AW_root *aw_root, AW_gc_manager *gcman)
Definition: AW_preset.cxx:1373
int AW_getFirstRangeGC(AW_gc_manager *gcman)
Definition: AW_preset.cxx:1418
static HelixNrInfo * start
static FullNameMap names
GcChange
Definition: aw_base.hxx:94
AW_gc_manager * AW_manage_GC(AW_window *aww, const char *gc_base_name, AW_device *device, int base_drag, AW_GCM_AREA area, const GcChangedCallback &changecb, const char *default_background_color,...) __ATTR__SENTINEL
Definition: AW_preset.cxx:969
int AW_get_drag_gc(AW_gc_manager *gcman)
Definition: AW_preset.cxx:1377
void AW_copy_GC_colors(AW_root *aw_root, const char *source_gcman, const char *dest_gcman, const char *id0,...) __ATTR__SENTINEL
Definition: AW_preset.cxx:1090
double AW_pos
Definition: aw_base.hxx:29
AW_window * AW_create_gc_window_named(AW_root *aw_root, AW_gc_manager *gcman_par, const char *wid, const char *windowname)
Definition: AW_preset.cxx:1323
AW_window * AW_preset_window(AW_root *root)
Definition: AW_preset.cxx:1920
const char * AW_getActiveColorRangeID(AW_gc_manager *gcman, int *dimension)
Definition: AW_preset.cxx:1421
DECLARE_CBTYPE_FVV_AND_BUILDERS(GcChangedCallback, void, GcChange)
void AW_activateColorRange(AW_gc_manager *gcman, const char *id)
Definition: AW_preset.cxx:1419
void AW_save_properties(AW_window *aw)
Definition: AW_preset.cxx:1452
void AW_popup_gc_color_range_window(AW_window *aww, AW_gc_manager *gcmgr)
Definition: AW_preset.cxx:1291
AW_GCM_AREA
Definition: aw_preset.hxx:37
#define __ATTR__SENTINEL
Definition: attributes.h:57
void AW_insert_common_property_menu_entries(AW_window_menu_modes *awmm)
Definition: AW_preset.cxx:1445