• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

xap_StatusBar.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiSource Program Utilities
00004  *
00005  * Copyright (C) 2002 Francis James Franklin <fjf@alinameridon.com>
00006  * Copyright (C) 2002 AbiSource, Inc.
00007  *
00008  * This program is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU General Public License
00010  * as published by the Free Software Foundation; either version 2
00011  * of the License, or (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00021  * 02110-1301 USA.
00022  */
00023 
00024 #ifndef XAP_STATUSBAR_H
00025 #define XAP_STATUSBAR_H
00026 
00027 /* pre-emptive dismissal; ut_types.h is needed by just about everything,
00028  * so even if it's commented out in-file that's still a lot of work for
00029  * the preprocessor to do...
00030  */
00031 #ifndef UT_TYPES_H
00032 #include "ut_types.h"
00033 #endif
00034 
00035 class ABI_EXPORT XAP_StatusBar
00036 {
00037 public:
00038     static void setStatusBar (XAP_StatusBar * statusbar);
00039     static void unsetStatusBar (XAP_StatusBar * statusbar);
00040 
00041     /* These have subtly different behaviours. message() will write to
00042      * both status bars (if set); debugmsg() will write only to the
00043      * second (if set).
00044      */
00045     static void message (const char * pbuf, bool urgent = false);
00046     static void debugmsg (const char * pbuf, bool urgent = false);
00047 
00048     virtual void statusMessage (const char * pbuf, bool urgent = false) = 0;
00049 
00050     virtual ~XAP_StatusBar () { }
00051 };
00052 
00053 #endif /* ! XAP_STATUSBAR_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1