source: branches/port5/EDIT4/ED4_secedit.cxx

Last change on this file was 5942, checked in by westram, 16 years ago
  • added AW_window::activate (activates window using show() and sending _NET_ACTIVE_WINDOW to WM)
  • use activate in
    • standard popups (all menu/button popups using AW_POPUP)
    • special popup functions that don't bind window to menu/button
    • small requesters (aw_input, aw_question, …)
    • in popup-functions of information windows. But not if info-window is minimized and user just selects a new result in search window.
    • popup message window on each new message
  • no-exit-shells now popdown when X-Button is pressed (e.g. MESSAGE BOX)
  • fixed several special popup functions
  • renamed AW_window::get_show() → is_shown()
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 658 bytes
Line 
1#include <stdio.h>
2
3#include <aw_root.hxx>
4#include <arbdb.h>
5#include <aw_device.hxx>
6#include <aw_window.hxx>
7
8#include <awt_canvas.hxx>
9
10#include <secedit_extern.hxx>
11#include "ed4_secedit.hxx"
12
13void ED4_SECEDIT_start(AW_window *aw, AW_CL cl_gbmain, AW_CL) {
14    static AW_window *aw_sec = 0;
15
16    if (!aw_sec) { // do not open window twice
17        aw_sec = SEC_create_main_window(aw->get_root(), (GBDATA*)cl_gbmain);
18        if (!aw_sec) {
19            GB_ERROR err = GB_await_error();
20            aw_message(GBS_global_string("Couldn't start secondary structure editor.\nReason: %s", err));
21            return;
22        }
23    }
24    aw_sec->activate();
25}
26
Note: See TracBrowser for help on using the repository browser.