#include "frontends/LyXView.h"
#include <X11/Xlib.h> // for Pixmap
-#include <boost/signals/signal0.hpp>
+#include <boost/signal.hpp>
#include <map>
+namespace lyx {
+namespace frontend {
+
class XMiniBuffer;
/**
~XFormsView();
/// Accessor to the appropriate layout Box.
- lyx::frontend::Box & getBox(Position pos) const;
+ boost::shared_ptr<Box> getBox(Position pos) const;
/**
* show - display the top-level window
virtual void busy(bool) const;
/// callback for close event from window manager
- static int atCloseMainFormCB(FL_FORM *, void *);
+ int atCloseMainFormCB();
/// display a status message
virtual void message(std::string const & str);
/// clear back to normal status message
virtual void clearMessage();
- boost::signal0<void> metricsUpdated;
+ ///
+ void updateMetrics(bool resize_form = false);
+ ///
+ boost::signal<void()> metricsUpdated;
+
+ // returns true if this view has the focus.
+ virtual bool hasFocus() const;
private:
/**
/// update the minibuffer state message
void show_view_state();
- ///
- void updateMetrics();
/// The top-most box of the layout engine containing all other boxes.
- lyx::frontend::Box window_;
+ Box window_;
+
+ typedef std::map<Position, boost::shared_ptr<Box> > BoxMap;
// Accessors to the various Boxes.
- std::map<Position, lyx::frontend::Box *> box_map_;
+ BoxMap box_map_;
/// the minibuffer
boost::scoped_ptr<XMiniBuffer> minibuffer_;
///
Pixmap icon_mask_;
};
+
+} // namespace frontend
+} // namespace lyx
+
#endif