source: tags/ms_r16q3/AWT/awt_misc.hxx

Last change on this file was 15269, checked in by westram, 8 years ago
  • cleanup shell/system interface for GUI
    • add wrappers w/o AW_window*-dummy
    • inline GB_xterm in AWT_console
    • replace NT_primer_cb by AWT_system_in_console_cb
    • use AWT_system_cb where suitable
File size: 1.5 KB
Line 
1// ============================================================ //
2//                                                              //
3//   File      : awt_misc.hxx                                   //
4//   Purpose   :                                                //
5//                                                              //
6//   Coded by Ralf Westram (coder@reallysoft.de) in July 2015   //
7//   http://www.arb-home.de/                                    //
8//                                                              //
9// ============================================================ //
10
11#ifndef AWT_MISC_HXX
12#define AWT_MISC_HXX
13
14#ifndef AW_BASE_HXX
15#include <aw_base.hxx>
16#endif
17#ifndef ARBDB_H
18#include <arbdb.h>
19#endif
20
21AW_window *AWT_create_IUPAC_info_window(AW_root *aw_root);
22
23void AWT_insert_DBsaveType_selector(AW_window *aww, const char *awar_name);
24void AWT_insert_DBcompression_selector(AW_window *aww, const char *awar_name);
25
26// system/shell interface (for GUI apps):
27// (note: AW_window parameter is an unused callback-dummy)
28void AWT_system_cb(AW_window *, const char *command);
29void AWT_console(AW_window*);
30void AWT_system_in_console_cb(AW_window*, const char *command, XCMD_TYPE exectype);
31
32// for direct calls use these:
33inline void AWT_system_cb(const char *command) { AWT_system_cb(NULL, command); }
34inline void AWT_console() { AWT_console(NULL); }
35inline void AWT_system_in_console_cb(const char *command, XCMD_TYPE exectype) { AWT_system_in_console_cb(NULL, command, exectype); }
36
37#else
38#error awt_misc.hxx included twice
39#endif // AWT_MISC_HXX
Note: See TracBrowser for help on using the repository browser.