X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffrontends%2FDialogBase.h;h=b6227f6613bf76fdf88e7cd454e7ba9ef6359da5;hb=3e39bef2c13125023f3b72532d90575bbe307335;hp=07fa8732cd742ee810e26900fbfcc7b7fb519b5e;hpb=0c978e6a3fb133c97d95e87715add6bae26f7837;p=lyx.git diff --git a/src/frontends/DialogBase.h b/src/frontends/DialogBase.h index 07fa8732cd..b6227f6613 100644 --- a/src/frontends/DialogBase.h +++ b/src/frontends/DialogBase.h @@ -3,12 +3,12 @@ * Abstract base class of all dialogs. * Author: Allan Rae * This file is part of - * ====================================================== + * ====================================================== * * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * This file Copyright 2000 * Allan Rae @@ -18,16 +18,7 @@ #define DIALOGBASE_H #include - -// If we do not want to bring them in global namespace, they could be -// defined inside DialogBase... (JMarc) -#ifdef SIGC_CXX_NAMESPACES -using SigC::Connection; -using SigC::slot; -using SigC::Object; - -#endif - +#include /** Abstract base class of all dialogs. The outside world only needs some way to tell a dialog when to show, hide @@ -35,23 +26,25 @@ using SigC::Object; satisfy that request. Thus a dialog will have to "pull" the necessary details from the core of the program. */ -class DialogBase : public Object +class DialogBase : public SigC::Object, boost::noncopyable { public: /**@name Constructors and Deconstructors */ //@{ - /// + /// Virtual base destructor virtual ~DialogBase() {} //@} /**@name Signal Targets */ //@{ /// - virtual void show() = 0; + //virtual void show() = 0; /// virtual void hide() = 0; /// virtual void update() {}; + /// + virtual void close() {}; //@} };