mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 10:01:50 +00:00
5d67f7c617
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6727 a592a061-630c-0410-9148-cb99ea01b6c8
89 lines
2.0 KiB
C++
89 lines
2.0 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file XFormsView.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author unknown
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#ifndef LyXView_H
|
|
#define LyXView_H
|
|
|
|
|
|
#include "forms_fwd.h"
|
|
|
|
#include "frontends/LyXView.h"
|
|
#include <X11/Xlib.h> // for Pixmap
|
|
|
|
class XMiniBuffer;
|
|
|
|
/**
|
|
* XFormsView - xforms implementation of LyXView
|
|
*
|
|
* xforms-private implementation of the main LyX window.
|
|
*/
|
|
class XFormsView : public LyXView {
|
|
public:
|
|
/// create a main window of the given dimensions
|
|
XFormsView(int w, int h);
|
|
|
|
~XFormsView();
|
|
|
|
/**
|
|
* show - display the top-level window
|
|
* @param xpos requested x position (or 0)
|
|
* @param xpos requested y position (or 0)
|
|
* @param title window title
|
|
*/
|
|
void show(int xpos, int ypos, string const & t = string("LyX"));
|
|
|
|
/// get the xforms main form
|
|
FL_FORM * getForm() const;
|
|
/// redraw the main form.
|
|
virtual void redraw();
|
|
/// show busy cursor
|
|
virtual void busy(bool) const;
|
|
|
|
/// callback for close event from window manager
|
|
static int atCloseMainFormCB(FL_FORM *, void *);
|
|
|
|
/// display a status message
|
|
virtual void message(string const & str);
|
|
|
|
/// clear back to normal status message
|
|
virtual void clearMessage();
|
|
|
|
private:
|
|
/**
|
|
* setWindowTitle - set title of window
|
|
* @param t main window title
|
|
* @param it iconified (short) title
|
|
*/
|
|
virtual void setWindowTitle(string const & t, string const & it);
|
|
|
|
/// update the minibuffer state message
|
|
void show_view_state();
|
|
|
|
/// makes the main form.
|
|
void create_form_form_main(int width, int height);
|
|
/// the minibuffer
|
|
boost::scoped_ptr<XMiniBuffer> minibuffer_;
|
|
///
|
|
boost::signals::connection view_state_con;
|
|
///
|
|
boost::signals::connection focus_con;
|
|
///
|
|
boost::signals::connection redraw_con;
|
|
|
|
/// the main form.
|
|
FL_FORM * form_;
|
|
/// Passed to the window manager to give a pretty little symbol ;-)
|
|
Pixmap icon_pixmap_;
|
|
///
|
|
Pixmap icon_mask_;
|
|
};
|
|
#endif
|