source: branches/profile/AWT/awt_modules.hxx

Last change on this file was 8582, checked in by westram, 12 years ago
  • added generic subset-selection (refactored from yadhus code in 'concat alignments')
    • uses an existing string-selecttion-list (content does not matter)
      • creates a second, empty list
      • creates buttons for subset selection and sorting
  • concat alignments
    • use generic subset-selection for alignments
    • bugfix: generated alignment was too short (separators were ignored), always needed to format it after generation
  • added global defines for default-selection
File size: 1.4 KB
Line 
1// ============================================================= //
2//                                                               //
3//   File      : awt_modules.hxx                                 //
4//   Purpose   : small modules for GUI construction              //
5//                                                               //
6//   Coded by Ralf Westram (coder@reallysoft.de) in April 2012   //
7//   Institute of Microbiology (Technical University Munich)     //
8//   http://www.arb-home.de/                                     //
9//                                                               //
10// ============================================================= //
11
12#ifndef AWT_MODULES_HXX
13#define AWT_MODULES_HXX
14
15#ifndef AW_BASE_HXX
16#include <aw_base.hxx>
17#endif
18
19enum awt_reorder_mode {
20    ARM_TOP, 
21    ARM_UP, 
22    ARM_DOWN, 
23    ARM_BOTTOM, 
24};
25
26enum awt_collect_mode {
27    ACM_ADD, 
28    ACM_FILL, // aka "add all"
29    ACM_REMOVE, 
30    ACM_EMPTY, 
31};
32
33typedef void(*awt_orderfun)  (AW_window *aww, awt_reorder_mode pos,  AW_CL cl_user);
34typedef void(*awt_collectfun)(AW_window *aww, awt_collect_mode what, AW_CL cl_user);
35
36void awt_create_order_buttons(AW_window *aws, awt_orderfun reorder_cb, AW_CL cl_user);
37void awt_create_collect_buttons(AW_window *aws, bool collect_rightwards, awt_collectfun collect_cb, AW_CL cl_user);
38
39#else
40#error awt_modules.hxx included twice
41#endif // AWT_MODULES_HXX
Note: See TracBrowser for help on using the repository browser.