source: branches/ali/SL/DB_UI/dbui.h

Last change on this file was 14734, checked in by westram, 9 years ago
  • use item-specific awars for field-reorder, -delete, -create and -convert
    • switch to lazy-awar-initialization for item-specific awars
  • remove some unused awars
File size: 1.8 KB
Line 
1// ============================================================ //
2//                                                              //
3//   File      : dbui.h                                         //
4//   Purpose   : Encapsulate query and info user interface      //
5//               (atm only for species)                         //
6//                                                              //
7//   Coded by Ralf Westram (coder@reallysoft.de) in July 2011   //
8//   Institute of Microbiology (Technical University Munich)    //
9//   http://www.arb-home.de/                                    //
10//                                                              //
11// ============================================================ //
12
13#ifndef DBUI_H
14#define DBUI_H
15
16#ifndef AW_BASE_HXX
17#include <aw_base.hxx>
18#endif
19#ifndef ATTRIBUTES_H
20#include <attributes.h>
21#endif
22#ifndef ITEMS_H
23#include <items.h>
24#endif
25
26// @@@ rename the functions below
27
28class AW_window_simple;
29class AW_window_simple_menu;
30
31namespace DBUI {
32
33    AW_window *create_fields_reorder_window(AW_root *root, BoundItemSel *bound_selector);
34    AW_window *create_field_delete_window(AW_root *root, BoundItemSel *bound_selector);
35    AW_window *create_field_create_window(AW_root *root, BoundItemSel *bound_selector);
36
37    AW_window *create_species_query_window(AW_root *aw_root, GBDATA *gb_main);
38
39    void popup_species_info_window(AW_root *aw_root, GBDATA *gb_main);
40    void popup_organism_info_window(AW_root *aw_root, GBDATA *gb_main);
41
42    void insert_field_admin_menuitems(AW_window *aws, GBDATA *gb_main);
43
44    void create_dbui_awars(AW_root *aw_root);
45
46    void init_info_window(AW_root *aw_root, AW_window_simple_menu *aws, const ItemSelector& itemType, int detach_id);
47
48    void unquery_all();
49    void query_update_list();
50};
51
52#else
53#error dbui.h included twice
54#endif // DBUI_H
Note: See TracBrowser for help on using the repository browser.