Debian Codegraph @

src/af/xap/xp/xap_StatusBar.h

raw
1 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
2
3 /* AbiSource Program Utilities
4 *
5 * Copyright (C) 2002 Francis James Franklin <[email protected]>
6 * Copyright (C) 2002 AbiSource, Inc.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA.
22 */
23
24 #ifndef XAP_STATUSBAR_H
25 #define XAP_STATUSBAR_H
26
27 /* pre-emptive dismissal; ut_types.h is needed by just about everything,
28 * so even if it's commented out in-file that's still a lot of work for
29 * the preprocessor to do...
30 */
31 #ifndef UT_TYPES_H
32 #include "ut_types.h"
33 #endif
34
35 class ABI_EXPORT XAP_StatusBar
36 {
37 public:
38 static void setStatusBar (XAP_StatusBar * statusbar);
39 static void unsetStatusBar (XAP_StatusBar * statusbar);
40
41 /* These have subtly different behaviours. message() will write to
42 * both status bars (if set); debugmsg() will write only to the
43 * second (if set).
44 */
45 static void message (const char * pbuf, bool urgent = false);
46 static void debugmsg (const char * pbuf, bool urgent = false);
47
48 virtual void statusMessage (const char * pbuf, bool urgent = false) = 0;
49
50 virtual ~XAP_StatusBar () { }
51 };
52
53 #endif /* ! XAP_STATUSBAR_H */