2000-06-12 11:55:12 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* DialogBase.h
|
|
|
|
* Abstract base class of all dialogs.
|
|
|
|
* Author: Allan Rae <rae@lyx.org>
|
|
|
|
* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 1995 Matthias Ettrich
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
2000-06-12 11:55:12 +00:00
|
|
|
*
|
|
|
|
* This file Copyright 2000
|
|
|
|
* Allan Rae
|
|
|
|
* ======================================================
|
|
|
|
*/
|
|
|
|
#ifndef DIALOGBASE_H
|
|
|
|
#define DIALOGBASE_H
|
|
|
|
|
|
|
|
#include <sigc++/signal_system.h>
|
2001-02-19 16:46:01 +00:00
|
|
|
#include <boost/utility.hpp>
|
2000-06-12 11:55:12 +00:00
|
|
|
|
|
|
|
/** Abstract base class of all dialogs.
|
|
|
|
The outside world only needs some way to tell a dialog when to show, hide
|
|
|
|
or update itself. A dialog then takes whatever steps are necessary to
|
|
|
|
satisfy that request. Thus a dialog will have to "pull" the necessary
|
|
|
|
details from the core of the program.
|
|
|
|
*/
|
2001-04-17 15:15:59 +00:00
|
|
|
class DialogBase : public SigC::Object, boost::noncopyable
|
2000-06-12 11:55:12 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**@name Constructors and Deconstructors */
|
|
|
|
//@{
|
2001-03-15 13:37:04 +00:00
|
|
|
/// Virtual base destructor
|
2000-06-12 11:55:12 +00:00
|
|
|
virtual ~DialogBase() {}
|
|
|
|
//@}
|
|
|
|
|
|
|
|
/**@name Signal Targets */
|
|
|
|
//@{
|
|
|
|
///
|
2001-03-15 13:37:04 +00:00
|
|
|
//virtual void show() = 0;
|
2000-06-12 11:55:12 +00:00
|
|
|
///
|
|
|
|
virtual void hide() = 0;
|
2000-10-24 13:13:59 +00:00
|
|
|
///
|
2000-11-10 17:29:47 +00:00
|
|
|
virtual void update() {};
|
2001-02-12 14:09:09 +00:00
|
|
|
///
|
|
|
|
virtual void close() {};
|
2000-06-12 11:55:12 +00:00
|
|
|
//@}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DIALOGBASE_H
|