source: tags/arb-6.0/WINDOW/aw_status.hxx

Last change on this file was 8619, checked in by westram, 12 years ago

merge from e4fix [8239] [8275] [8276] [8277] [8286] [8288] [8289] [8290] [8293] [8295] [8296] [8298] [8299]

  • define window-contexts by instanciating context-objects
    • ED4_LocalWinContext (used where calls are triggered via a window)
    • ED4_MostRecentWinContext (uses "last used window"; used when window is not known)
    • dump backtrace on missing context
  • window-context changes
    • ED4_search_cb (ensure search is performed in correct window)
    • ED4_set_iupac
  • fixed ED4_compression_changed_cb (now updates all windows when compression changes)
  • made several functions context independent
    • ED4_calc_terminal_extentions uses any device (that of first window)
    • ED4_expose_recalculations no longer does update_scrolled_rectangle (now performed by caller; caller knows the context)
  • added special class ED4_WinContextFree (denies access to global context for derived classes)
  • each cursor remembers the window where its located
  • declared ED4_window and ED4_cursor as ED4_WinContextFree (the window is their explicit context)
    • replaced invalid references to global context by uses of explicit context (get_device() + window())


  • cleaned ED4-object-deletion (what a mess)
    • rewrote ED4_terminal::kill_object using Delete()
    • regenerate group-ids during refresh (after deletion took place)
    • DRYed delete mechanisms
    • announce_deletion down to ED4_base_position (to invalidate its cache)
  • 'Get' selected species failed to
    • update bases-tables of parent-managers (that was one cause for folding errors!)
    • regenerate group-ids
  • syncronize mode in all edit windows
  • use position/size from awars when creating a 2nd window with identical ID
  • removed some useless virtualization
  • denglish (actual→current)
File size: 1.4 KB
Line 
1// ================================================================= //
2//                                                                   //
3//   File      : aw_status.hxx                                       //
4//   Purpose   : Provide AW_status and related functions             //
5//                                                                   //
6//   Coded by Ralf Westram (coder@reallysoft.de) in September 2010   //
7//   Institute of Microbiology (Technical University Munich)         //
8//   http://www.arb-home.de/                                         //
9//                                                                   //
10// ================================================================= //
11
12#ifndef AW_STATUS_HXX
13#define AW_STATUS_HXX
14
15bool AW_status(const char *text); // return 1 if exit button is pressed + set statustext
16bool AW_status(double gauge);     // return 1 if exit button is pressed + set progress bar
17bool AW_status();                 // return 1 if exit button is pressed
18
19bool aw_status_title(const char *text); // return 1 if exit button is pressed + set status title
20
21// ---------------------
22//      progress bar
23
24void aw_openstatus(const char *title); // show status
25void aw_closestatus();                 // hide status
26
27// special for EDIT4 (obsolete - nobody listens to EDIT4-errors)
28void aw_clear_message_cb(AW_window *aww);
29
30#else
31#error aw_status.hxx included twice
32#endif // AW_STATUS_HXX
Note: See TracBrowser for help on using the repository browser.