source: tags/ms_r16q3/WINDOW/aw_preset.hxx

Last change on this file was 15064, checked in by westram, 8 years ago
  • remove parameter base_gc from AW_manage_GC (always zero)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
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
27class ConstStrArray;
28
29void AW_save_properties(AW_window *aw);   // use this if you're unsure
30void AW_save_specific_properties(AW_window *aw, const char *filename);
31
32AW_window *AW_preset_window(AW_root *root);
33
34void AW_insert_common_property_menu_entries(AW_window_menu_modes *awmm);
35void AW_insert_common_property_menu_entries(AW_window_simple_menu *awsm);
36
37enum AW_GCM_AREA {
38    AW_GCM_DATA_AREA,
39    AW_GCM_WINDOW_AREA
40};
41
42DECLARE_CBTYPE_FVV_AND_BUILDERS(GcChangedCallback, void, GcChange); // generates makeGcChangedCallback
43
44AW_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
54AW_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)
59AW_window *AW_create_gc_window_named(AW_root *aw_root, AW_gc_manager *gcman_par, const char *wid, const char *windowname);
60
61void AW_popup_gc_color_range_window(AW_window *aww, AW_gc_manager *gcmgr);
62
63int AW_get_drag_gc(AW_gc_manager *gcman);
64void AW_copy_GC_colors(AW_root *aw_root, const char *source_gcman, const char *dest_gcman, const char *id0, ...) __ATTR__SENTINEL;
65
66void AW_displayColorRange(AW_device *device, int first_range_gc, AW::Position start, AW_pos xsize, AW_pos ysize);
67void AW_getColorRangeNames(const AW_gc_manager *gcman, int dimension, ConstStrArray& ids, ConstStrArray& names);
68void AW_activateColorRange(AW_gc_manager *gcman, const char *id);
69const char *AW_getActiveColorRangeID(AW_gc_manager *gcman, int *dimension);
70int AW_getFirstRangeGC(AW_gc_manager *gcman);
71
72
73#else
74#error aw_preset.hxx included twice
75#endif // AW_PRESET_HXX
Note: See TracBrowser for help on using the repository browser.