1
// $Id: status.h,v 1.20 2000/12/11 12:21:48 zeller Exp $ -*- C++ -*-
2
// Interpret GDB output
4
// Copyright (C) 1996 Technische Universitaet Braunschweig, Germany.
5
// Written by Andreas Zeller <zeller@gnu.org>.
7
// This file is part of DDD.
9
// DDD is free software; you can redistribute it and/or
10
// modify it under the terms of the GNU General Public
11
// License as published by the Free Software Foundation; either
12
// version 2 of the License, or (at your option) any later version.
14
// DDD is distributed in the hope that it will be useful,
15
// but WITHOUT ANY WARRANTY; without even the implied warranty of
16
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
// See the GNU General Public License for more details.
19
// You should have received a copy of the GNU General Public
20
// License along with DDD -- see the file COPYING.
21
// If not, write to the Free Software Foundation, Inc.,
22
// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
// DDD is the data display debugger.
25
// For details, see the DDD World-Wide-Web page,
26
// `http://www.gnu.org/software/ddd/',
27
// or send a mail to the DDD developers <ddd@gnu.org>.
40
#include <X11/Intrinsic.h>
42
// Show MESSAGE in status window.
43
// If TEMPORARY is set, override locks and do not add to status history.
44
void set_status(string message, bool temporary = false);
46
// Same, but use an MString.
47
void set_status_mstring(MString text, bool temporary = false);
49
// Return current contents of status line
50
extern const MString& current_status(void);
53
extern Widget status_history(Widget parent);
56
void set_buttons_from_gdb(Widget w, string& text);
57
void set_status_from_gdb(const string& text);
59
// True if last cmd came from GDB window
60
extern bool gdb_keyboard_command;
62
// True if asking `yes or no'
63
extern bool gdb_asks_yn;
65
// True if the next line is to be displayed in the status line
66
extern bool show_next_line_in_status;
68
// Number of messages to keep in status history
69
extern int status_history_size;
72
void lock_status(void); // Place a lock on status
73
void unlock_status(void); // Remove lock from status
74
void reset_status_lock(void); // Remove all locks from status
76
// These are convenient for setting the status during a function
84
_StatusMsg(const string& c)
85
: cause(c), outcome("done")
87
set_status(cause + "...");
92
set_status(cause + "..." + outcome + ".");
96
class StatusMsg: public _StatusMsg {
98
StatusMsg(const string& c)
109
class StatusDelay: public StatusMsg, public Delay {
111
StatusDelay(const string& c)
116
#endif // _DDD_status_h
117
// DON'T ADD ANYTHING BEHIND THIS #endif