ARB
awt_canvas.hxx
Go to the documentation of this file.
1 #ifndef AWT_CANVAS_HXX
2 #define AWT_CANVAS_HXX
3 
4 #ifndef AW_WINDOW_HXX
5 #include <aw_window.hxx>
6 #endif
7 #ifndef AW_DEVICE_HXX
8 #include <aw_device.hxx>
9 #endif
10 #ifndef AW_DEVICE_CLICK_HXX
11 #include <aw_device_click.hxx>
12 #endif
13 #ifndef ATTRIBUTES_H
14 #include <attributes.h>
15 #endif
16 #ifndef ARB_ASSERT_H
17 #include <arb_assert.h>
18 #endif
19 
20 #define awt_assert(cond) arb_assert(cond)
21 
22 class AWT_canvas;
23 class AW_device;
24 
27  AWT_MODE_EMPTY, // placeholder (currently used in PARSIMONY)
28 
29  // NTREE, PARSIMONY, GENEMAP and SECEDIT:
31 
32  // NTREE, PARSIMONY and GENEMAP:
34  AWT_MODE_INFO, // (=ED4_SM_INFO in EDIT4)
35 
36  // NTREE, PARSIMONY and SECEDIT:
38 
39  // NTREE and PARSIMONY:
45 
46  // NTREE and SECEDIT:
48 
49  // NTREE only:
55 
56  // PARSIMONY only:
60 
61  // SECEDIT only:
68 };
69 
70 #define STANDARD_PADDING 10
71 
72 // --------------------------------------------------------------------------------
73 // AWT_zoom_mode + AWT_fit_mode are correlated, but not strictly coupled
74 
75 enum AWT_zoom_mode { // bit values!
80 };
81 
88 };
89 
90 // used combinations are:
91 // AWT_ZOOM_NEVER + AWT_FIT_NEVER (NDS list, others)
92 // AWT_ZOOM_X + AWT_FIT_X (dendrogram tree)
93 // AWT_ZOOM_Y + AWT_FIT_Y
94 // AWT_ZOOM_BOTH + AWT_FIT_LARGER (radial tree/gene-map; secedit)
95 // AWT_ZOOM_BOTH + AWT_FIT_SMALLER (book-style gene-map)
96 //
97 // other combinations may work as well. some combinations make no sense.
98 // --------------------------------------------------------------------------------
99 
100 
102  AW_borders default_padding;
103  AW_borders padding;
104 
105  // sync-flags to update between
106  // - internal structure of AWT_graphic (e.g. AP_tree)
107  // - stored representation (normally in DB)
108  // - display/userinput
109  unsigned int refresh : 1; // 1 -> do a refresh
110  unsigned int resize : 1; // 1 -> size of graphic might have changed (implies 'refresh')
111  unsigned int zoom_reset : 1; // 1 -> do a zoom-reset (implies 'resize')
112  unsigned int supdate : 1; // 1 -> internal structure needs update; calls update_structure() (implies 'resize')
113  unsigned int save : 1; // 1 -> save structure to DB (implies 'supdate')
114 
115  int modifying; // number of AWT_auto_refresh instances.
116  // !=0 -> flag modification allowed
117  // >=0 -> AWT_auto_refresh instanciation allowed
118  // -1 is used while performing updates
119 
120  friend class AWT_auto_refresh;
121 #if defined(UNIT_TESTS)
122  friend class fake_AWT_graphic_tree;
123 #endif
124 
125 public:
126 
129 
130  unsigned int dont_scroll : 1; // normally 0 (1 for IRS tree)
131 
132  void init(); // like clear, but resets fit, scroll state and padding
133 
134  bool inside_auto_refresh() const { return modifying>0; } // returns true if AWT_auto_refresh instance exists
135  bool inside_update() const { return modifying<0; } // returns true during update (=destruction of initial AWT_auto_refresh instance)
136 
137  bool flags_clearable() const { return inside_update(); }
138  bool flags_writeable() const {
139  // returns true if sync-flags may be modified.
140  // In that case, no explicit refresh etc. shall happen.
141  return inside_auto_refresh() || inside_update();
142  }
143  int& get_modifying_flag_ref() { return modifying; } // do not use!
144 
145  // clear sync request (should happen outside of AWT_auto_refresh)
146  void clear_refresh_request() { awt_assert(flags_clearable()); refresh = false; }
147  void clear_resize_request() { awt_assert(flags_clearable()); resize = false; }
148  void clear_zoom_reset_request() { awt_assert(flags_clearable()); zoom_reset = false; }
150  void clear_save_request() { awt_assert(flags_clearable()); save = false; }
151 
152  // request sync:
153  void request_refresh() { awt_assert(flags_writeable()); refresh = true; }
154  void request_resize() { awt_assert(flags_writeable()); resize = true; }
155  void request_zoom_reset() { awt_assert(flags_writeable()); zoom_reset = true; }
156  void request_structure_update() { awt_assert(flags_writeable()); supdate = true; }
157  void request_save() { awt_assert(flags_writeable()); save = true; }
158  // common combinations:
159  void request_save_and_zoom_reset() { awt_assert(flags_writeable()); save = true; zoom_reset = true; }
160 
161  // sync requested?:
162  bool needs_structure_update() const { return supdate; }
163  bool needs_save() const { return save; }
164 
165  inline void update_display_as_requested(AWT_canvas *scr, bool perform_refresh); // handles zoom_reset + resize + refresh
166 
167  void set_default_padding(int t, int b, int l, int r) {
168  default_padding.t = t;
169  default_padding.b = b;
170  default_padding.l = l;
171  default_padding.r = r;
172 
173  padding = default_padding;
174  }
175 
176  void set_equilateral_default_padding(int pad) { set_default_padding(pad, pad, pad, pad); }
178 
179  void set_extra_text_padding(const AW_borders& text_padding) {
180  padding.t = default_padding.t + text_padding.t;
181  padding.b = default_padding.b + text_padding.b;
182  padding.l = default_padding.l + text_padding.l;
183  padding.r = default_padding.r + text_padding.r;
184  }
185 
186  int get_x_padding() const { return padding.l+padding.r; }
187  int get_y_padding() const { return padding.t+padding.b; }
188  int get_top_padding() const { return padding.t; }
189  int get_left_padding() const { return padding.l; }
190 
191  AW::Vector zoomVector(double transToFit) const {
192  return AW::Vector(zoom_mode&AWT_ZOOM_X ? transToFit : 1.0,
193  zoom_mode&AWT_ZOOM_Y ? transToFit : 1.0);
194  }
195 };
196 
198  AWT_COMMAND_MODE M_cmd; // currently active mode
199 
200  AW_MouseButton M_button;
201  AW_key_mod M_key_modifier;
202  AW_key_code M_key_code;
203  char M_key_char;
204  AW_event_type M_type;
205 
206  AW::Position mousepos;
207 
208  AW_device_click *click_dev;
209 
210 public:
211  AWT_graphic_event(AWT_COMMAND_MODE cmd_, const AW_event& event, bool is_drag, AW_device_click *click_dev_)
212  : M_cmd(cmd_),
213  M_button(event.button),
214  M_key_modifier(event.keymodifier),
215  M_key_code(event.keycode),
216  M_key_char(event.character),
217  M_type(is_drag ? AW_Mouse_Drag : event.type),
218  mousepos(event.x, event.y),
219  click_dev(click_dev_)
220  {}
221 
222  AWT_COMMAND_MODE cmd() const { return M_cmd; }
223  AW_MouseButton button() const { return M_button; }
224 
225  AW_key_mod key_modifier() const { return M_key_modifier; }
226  AW_key_code key_code() const { return M_key_code; }
227  char key_char() const { return M_key_char; }
228 
229  AW_event_type type() const { return M_type; }
230 
231  const AW::Position& position() const { return mousepos; } // screen-coordinates
232 
233  const AW_clicked_element *best_click(AW_device_click::ClickPreference prefer = AW_device_click::PREFER_NEARER) {
234  return click_dev ? click_dev->best_click(prefer) : NULp;
235  }
236 };
237 
238 class AWT_graphic {
239  friend class AWT_canvas;
240 
241  void update_DB_and_model_as_requested(GBDATA *gb_main);
242 
243  bool detect_drag_target;
244 
245 protected:
246  int drag_gc;
247 
248 public:
250 
251  AWT_graphic() { exports.init(); }
252  virtual ~AWT_graphic() {}
253 
254  // pure virtual interface (methods implemented by AWT_nonDB_graphic)
255 
256  virtual GB_ERROR load_from_DB(GBDATA *gb_main, const char *name) = 0;
257  virtual GB_ERROR save_to_DB(GBDATA *gb_main, const char *name) = 0;
258  virtual void check_for_DB_update(GBDATA *gb_main) = 0; // check whether anything changed in DB (and reload internal structure if needed)
259  virtual void notify_synchronized(GBDATA *gb_main) = 0; // mark the database content and internal structure of AWT_graphic as synchronized
260 
261  // pure virtual interface (rest)
262 
263  virtual void show(AW_device *device) = 0;
264 
265  virtual AW_gc_manager *init_devices(AW_window *, AW_device *, AWT_canvas *scr) = 0; /* init gcs, if any gc is changed AWT_GC_changed_cb() is called */
266 
267  virtual void handle_command(AW_device *device, AWT_graphic_event& event) = 0;
268  virtual void update_structure() = 0; // called when exports.needs_structure_update()
269 
270  bool wants_drag_target() const { return detect_drag_target; }
271  void drag_target_detection(bool detect) { detect_drag_target = detect; }
272 
273  int get_drag_gc() const { return drag_gc; }
274 };
275 
276 class AWT_nonDB_graphic : public AWT_graphic { // @@@ check AWT_nonDB_graphic
277  void update_structure() OVERRIDE {}
278  // a partly implementation of AWT_graphic
279 public:
282 
283  // dummy functions, only spittings out warnings:
288 };
289 
290 
291 #define EPS 0.0001 // div zero check
292 #define CLIP_OVERLAP 15
293 #define AWT_ZOOM_OUT_STEP 40 // (pixel) rand um screen
294 #define AWT_MIN_WIDTH 100 // Minimum center screen (= screen-offset)
295 
297 
298 class AWT_canvas : virtual Noncopyable {
299  bool consider_text_for_size;
300  char *gc_base_name;
301 
302 protected:
303  // callback called after each screen-update (set by derived class; currently only by TREE_canvas)
306 
307 public:
308  // @@@ make members private!
309 
313 
316  AW_screen_area rect; // screen coordinates
317  AW_world worldinfo; // real coordinates without transform.
323  int drag;
324 
325  void init_device(AW_device *device);
326 
327  void set_scrollbars();
328  void set_dragEndpoint(int x, int y);
329 
332 
333  // public (read only)
334  // @@@ make members private!
335 
340 
342 
344 
345  // real public
346 
347  AWT_canvas(GBDATA *gb_main_, AW_window *aww_, const char *gc_base_name_, AWT_graphic *gfx_);
348  virtual ~AWT_canvas() {}
349 
350  inline void push_transaction() const;
351  inline void pop_transaction() const;
352 
353 #if defined(ASSERTION_USED)
354  bool inside_auto_refresh() const {
355  // returns true if AWT_auto_refresh instance exists for this canvas
356  return gfx->exports.inside_auto_refresh();
357  }
358 #endif
359 #define assert_no_auto_refresh_for(CANVAS) awt_assert(!(CANVAS)->inside_auto_refresh())
360 
361  // request updates from underlaying AWT_graphic
362  void request_refresh() { if (gfx) gfx->exports.request_refresh(); }
363  void request_resize() { if (gfx) gfx->exports.request_resize(); }
364  void request_zoom_reset() { if (gfx) gfx->exports.request_zoom_reset(); }
366  void request_save() { if (gfx) gfx->exports.request_save(); }
367  // common combinations:
369 
370  // instant refresh functions (unrecommended, should only be used internally)
371  // -> instead use AWT_auto_refresh + request_XXX-functions above!
372  void instant_refresh();
373  void instant_resize(bool adjust_scrollbars); // [Note: should normally be called with 'true']
374  void instant_zoom_reset();
375 
376  // --------------------
377 
378  void set_consider_text_for_zoom_reset(bool consider) { consider_text_for_size = consider; }
379 
380  void zoom(AW_device *device, bool zoomIn, const AW::Rectangle& wanted_part, const AW::Rectangle& current_part, int percent);
381 
382  void set_mode(AWT_COMMAND_MODE mo) { mode = mo; }
383 
384  void scroll(int delta_x, int delta_y, bool dont_update_scrollbars = false);
385  void scroll(const AW::Vector& delta, bool dont_update_scrollbars = false) {
386  scroll(int(delta.x()), int(delta.y()), dont_update_scrollbars);
387  }
388 
389  bool handleWheelEvent(AW_device *device, const AW_event& event);
390 
391  const char *get_gc_base_name() const { return gc_base_name; }
392 
393  void sync_DB_model_and_view(bool perform_refresh);
394 
395  void announce_screen_update() { if (announce_update_cb) announce_update_cb(this, user_data); }
396 
397  bool is_shown() const { return aww->is_shown(); }
398 };
399 
401  // While instance exists -> sync flags of AWT_graphic_exports may be modified
402  // Creating additional instances just incs/decs a counter.
403  // When initial instance gets destroyed
404  // => AWT_canvas::sync_DB_model_and_view() handles all requests (save, update, resize, refresh)
405 
406  RefPtr<AWT_canvas> scr;
407 
408  // @@@ delay non-instant refresh into idle callback?
409  // bool instant_refresh; // true -> do instant refresh (only has effect on first instance!) @@@ unused atm
410 
411 public:
413  scr(scr_)
414  {
415  AWT_graphic_exports& exports = scr->gfx->exports;
416  awt_assert(exports.modifying >= 0); // otherwise you try to instanciate from inside sync_DB_model_and_view()
417  if (exports.modifying++ == 0) {
418  // test for already set export-flags here? might indicate wrong logic
419  scr->gfx->check_for_DB_update(scr->gb_main);
420  }
421  }
423  AWT_graphic_exports& exports = scr->gfx->exports;
424  if (--exports.modifying <= 0) {
425  awt_assert(exports.modifying == 0);
426  scr->sync_DB_model_and_view(true);
427  }
428  }
429 
431  // use at end of scope of initial AWT_auto_refresh to suppress any updates of model + view
432  // Note: use carefully, may cause model inconsistencies!!!
433 
434  AWT_graphic_exports& exports = scr->gfx->exports;
435  LocallyModify<int> permit_suppression(exports.get_modifying_flag_ref(), -1);
436 
438  exports.clear_zoom_reset_request();
439  exports.clear_resize_request();
440  exports.clear_refresh_request();
441  }
442 };
443 
444 inline void AWT_graphic_exports::update_display_as_requested(AWT_canvas *scr, bool perform_refresh) {
446 
447  if (zoom_reset) {
448  scr->instant_zoom_reset(); // also does resize
449  awt_assert(!zoom_reset && !resize && refresh);
450  }
451  else if (resize) {
452  scr->instant_resize(true);
453  awt_assert(!resize && refresh);
454  }
455 
456  if (refresh && perform_refresh) {
457  scr->instant_refresh();
458  awt_assert(!refresh);
459  }
460 }
461 
462 void AWT_expose_cb(UNFIXED, AWT_canvas *scr);
463 void AWT_resize_cb(UNFIXED, AWT_canvas *scr);
464 void AWT_GC_changed_cb(GcChange whatChanged, AWT_canvas *scr);
465 
466 void AWT_popup_tree_export_window(AW_window *parent_win, AWT_canvas *scr);
467 void AWT_popup_sec_export_window (AW_window *parent_win, AWT_canvas *scr);
468 void AWT_popup_print_window (AW_window *parent_win, AWT_canvas *scr);
469 
470 
471 #endif
void zoom(AW_device *device, bool zoomIn, const AW::Rectangle &wanted_part, const AW::Rectangle &current_part, int percent)
Definition: AWT_canvas.cxx:205
void set_equilateral_default_padding(int pad)
Definition: awt_canvas.hxx:176
const char * GB_ERROR
Definition: arb_core.h:25
void push_transaction() const
Definition: AWT_canvas.cxx:59
AW_key_code key_code() const
Definition: awt_canvas.hxx:226
int zoom_drag_ey
Definition: awt_canvas.hxx:322
AW_event_type
Definition: aw_window.hxx:62
bool inside_auto_refresh() const
Definition: awt_canvas.hxx:134
#define STANDARD_PADDING
Definition: awt_canvas.hxx:70
virtual GB_ERROR load_from_DB(GBDATA *gb_main, const char *name)=0
AWT_auto_refresh(AWT_canvas *scr_)
Definition: awt_canvas.hxx:412
AWT_COMMAND_MODE
Definition: awt_canvas.hxx:25
void request_zoom_reset()
Definition: awt_canvas.hxx:364
void set_extra_text_padding(const AW_borders &text_padding)
Definition: awt_canvas.hxx:179
void set_horizontal_scrollbar_position(AW_window *aww, int pos)
Definition: AWT_canvas.cxx:62
void suppress_update_and_refresh()
Definition: awt_canvas.hxx:430
void request_structure_update()
Definition: awt_canvas.hxx:156
static char * y[maxsp+1]
void AWT_resize_cb(UNFIXED, AWT_canvas *scr)
void update_display_as_requested(AWT_canvas *scr, bool perform_refresh)
Definition: awt_canvas.hxx:444
AW_key_mod key_modifier() const
Definition: awt_canvas.hxx:225
virtual GB_ERROR save_to_DB(GBDATA *gb_main, const char *name)=0
bool inside_auto_refresh() const
Definition: awt_canvas.hxx:354
void request_refresh()
Definition: awt_canvas.hxx:362
int get_left_padding() const
Definition: awt_canvas.hxx:189
virtual void update_structure()=0
void scroll(const AW::Vector &delta, bool dont_update_scrollbars=false)
Definition: awt_canvas.hxx:385
int get_y_padding() const
Definition: awt_canvas.hxx:187
virtual ~AWT_graphic()
Definition: awt_canvas.hxx:252
void request_save()
Definition: awt_canvas.hxx:366
AW_pos trans_to_fit
Definition: awt_canvas.hxx:310
AW_pos shift_x_to_fit
Definition: awt_canvas.hxx:311
AWT_graphic_event(AWT_COMMAND_MODE cmd_, const AW_event &event, bool is_drag, AW_device_click *click_dev_)
Definition: awt_canvas.hxx:211
AW_root * awr
Definition: awt_canvas.hxx:338
void sync_DB_model_and_view(bool perform_refresh)
Definition: AWT_canvas.cxx:515
void set_standard_default_padding()
Definition: awt_canvas.hxx:177
void announce_screen_update()
Definition: awt_canvas.hxx:395
int get_drag_gc() const
Definition: awt_canvas.hxx:273
const AW_clicked_element * best_click(AW_device_click::ClickPreference prefer=AW_device_click::PREFER_NEARER)
Definition: awt_canvas.hxx:233
void instant_zoom_reset()
Definition: AWT_canvas.cxx:156
AWT_canvas(GBDATA *gb_main_, AW_window *aww_, const char *gc_base_name_, AWT_graphic *gfx_)
Definition: AWT_canvas.cxx:798
AW_MouseButton button() const
Definition: awt_canvas.hxx:223
unsigned int dont_scroll
Definition: awt_canvas.hxx:130
bool needs_structure_update() const
Definition: awt_canvas.hxx:162
AW_screen_area rect
Definition: awt_canvas.hxx:316
void(* screen_update_callback)(AWT_canvas *, AW_CL cd)
Definition: awt_canvas.hxx:296
int old_vert_scroll_pos
Definition: awt_canvas.hxx:315
struct Unfixed_cb_parameter * UNFIXED
Definition: cb_base.h:15
bool flags_writeable() const
Definition: awt_canvas.hxx:138
void clear_structure_update_request()
Definition: awt_canvas.hxx:149
int get_top_padding() const
Definition: awt_canvas.hxx:188
void clear_refresh_request()
Definition: awt_canvas.hxx:146
const AW::Position & position() const
Definition: awt_canvas.hxx:231
GcChange
Definition: aw_base.hxx:94
bool needs_save() const
Definition: awt_canvas.hxx:163
virtual AW_gc_manager * init_devices(AW_window *, AW_device *, AWT_canvas *scr)=0
double AW_pos
Definition: aw_base.hxx:29
void drag_target_detection(bool detect)
Definition: awt_canvas.hxx:271
char key_char() const
Definition: awt_canvas.hxx:227
void clear_zoom_reset_request()
Definition: awt_canvas.hxx:148
AW_MouseButton
Definition: aw_window.hxx:70
const char * get_gc_base_name() const
Definition: awt_canvas.hxx:391
GB_ERROR save_to_DB(GBDATA *gb_main, const char *name) OVERRIDE __ATTR__USERESULT
Definition: AWT_canvas.cxx:833
AWT_fit_mode fit_mode
Definition: awt_canvas.hxx:128
void set_dragEndpoint(int x, int y)
Definition: AWT_canvas.cxx:589
void request_save_and_zoom_reset()
Definition: awt_canvas.hxx:159
void set_vertical_scrollbar_position(AW_window *aww, int pos)
Definition: AWT_canvas.cxx:69
AW_world worldinfo
Definition: awt_canvas.hxx:317
screen_update_callback announce_update_cb
Definition: awt_canvas.hxx:304
void set_scrollbars()
Definition: AWT_canvas.cxx:76
const double & y() const
AWT_fit_mode
Definition: awt_canvas.hxx:82
void check_for_DB_update(GBDATA *gb_main) OVERRIDE
Definition: AWT_canvas.cxx:837
virtual void notify_synchronized(GBDATA *gb_main)=0
GB_ERROR load_from_DB(GBDATA *gb_main, const char *name) OVERRIDE __ATTR__USERESULT
Definition: AWT_canvas.cxx:829
int zoom_drag_sy
Definition: awt_canvas.hxx:320
bool inside_update() const
Definition: awt_canvas.hxx:135
int old_hor_scroll_pos
Definition: awt_canvas.hxx:314
AW_world worldsize
Definition: awt_canvas.hxx:318
AW_CL user_data
Definition: awt_canvas.hxx:305
virtual void handle_command(AW_device *device, AWT_graphic_event &event)=0
void set_default_padding(int t, int b, int l, int r)
Definition: awt_canvas.hxx:167
void AWT_popup_tree_export_window(AW_window *parent_win, AWT_canvas *scr)
Definition: AWT_canio.cxx:765
void AWT_popup_sec_export_window(AW_window *parent_win, AWT_canvas *scr)
Definition: AWT_canio.cxx:810
void instant_refresh()
Definition: AWT_canvas.cxx:373
AWT_graphic * gfx
Definition: awt_canvas.hxx:339
int zoom_drag_sx
Definition: awt_canvas.hxx:319
virtual ~AWT_canvas()
Definition: awt_canvas.hxx:348
void set_mode(AWT_COMMAND_MODE mo)
Definition: awt_canvas.hxx:382
bool wants_drag_target() const
Definition: awt_canvas.hxx:270
void scroll(int delta_x, int delta_y, bool dont_update_scrollbars=false)
Definition: AWT_canvas.cxx:703
void request_save_and_zoom_reset()
Definition: awt_canvas.hxx:368
long AW_CL
Definition: cb.h:21
void request_structure_update()
Definition: awt_canvas.hxx:365
AW_key_code
Definition: aw_keysym.hxx:14
#define OVERRIDE
Definition: cxxforward.h:112
AW_gc_manager * gc_manager
Definition: awt_canvas.hxx:341
AW::Vector zoomVector(double transToFit) const
Definition: awt_canvas.hxx:191
AWT_COMMAND_MODE cmd() const
Definition: awt_canvas.hxx:222
#define __ATTR__USERESULT
Definition: attributes.h:58
int get_x_padding() const
Definition: awt_canvas.hxx:186
bool handleWheelEvent(AW_device *device, const AW_event &event)
Definition: AWT_canvas.cxx:454
AWT_graphic_exports exports
Definition: awt_canvas.hxx:249
void init_device(AW_device *device)
Definition: AWT_canvas.cxx:106
#define assert_no_auto_refresh_for(CANVAS)
Definition: awt_canvas.hxx:359
void AWT_expose_cb(UNFIXED, AWT_canvas *scr)
Definition: AWT_canvas.cxx:385
bool is_shown() const
Definition: AW_window.cxx:1647
AW_event_type type() const
Definition: awt_canvas.hxx:229
int zoom_drag_ex
Definition: awt_canvas.hxx:321
#define NULp
Definition: cxxforward.h:116
AW_key_mod
Definition: aw_keysym.hxx:46
~AWT_nonDB_graphic() OVERRIDE
Definition: awt_canvas.hxx:281
int & get_modifying_flag_ref()
Definition: awt_canvas.hxx:143
#define awt_assert(cond)
Definition: awt_canvas.hxx:20
bool flags_clearable() const
Definition: awt_canvas.hxx:137
void pop_transaction() const
Definition: AWT_canvas.cxx:60
AW_pos shift_y_to_fit
Definition: awt_canvas.hxx:312
void instant_resize(bool adjust_scrollbars)
Definition: AWT_canvas.cxx:112
AWT_COMMAND_MODE mode
Definition: awt_canvas.hxx:343
AWT_zoom_mode zoom_mode
Definition: awt_canvas.hxx:127
GBDATA * gb_main
Definition: adname.cxx:32
virtual void check_for_DB_update(GBDATA *gb_main)=0
void set_consider_text_for_zoom_reset(bool consider)
Definition: awt_canvas.hxx:378
AW_window * aww
Definition: awt_canvas.hxx:337
bool is_shown() const
Definition: awt_canvas.hxx:397
void AWT_popup_print_window(AW_window *parent_win, AWT_canvas *scr)
Definition: AWT_canio.cxx:863
AWT_zoom_mode
Definition: awt_canvas.hxx:75
const double & x() const
void notify_synchronized(GBDATA *gb_main) OVERRIDE
Definition: AWT_canvas.cxx:842
GBDATA * gb_main
Definition: awt_canvas.hxx:336
void AWT_GC_changed_cb(GcChange whatChanged, AWT_canvas *scr)
Definition: AWT_canvas.cxx:394
void request_resize()
Definition: awt_canvas.hxx:363
virtual void show(AW_device *device)=0