namespace lyx {
class Cursor;
-class ToolbarInfo;
namespace frontend {
class GuiToolbar;
class GuiWorkArea;
class TabWorkArea;
+class TocModels;
+class ToolbarInfo;
/**
* GuiView - Qt4 implementation of LyXView
void updateLayoutList();
void updateToolbars();
QMenu * createPopupMenu();
- FuncStatus getStatus(FuncRequest const & cmd);
+ bool getStatus(FuncRequest const & cmd, FuncStatus & flag);
bool dispatch(FuncRequest const & cmd);
///
///@{
void resetAutosaveTimers();
void errors(std::string const &);
- void structureChanged() { updateToc(); }
+ void structureChanged();
///@}
+
+ ///
+ TocModels & tocModels();
/// called on timeout
void autoSave();
- ///
- void updateEmbeddedFiles();
/// \return the current buffer view.
BufferView * view();
///
void on_currentWorkAreaChanged(GuiWorkArea *);
+ ///
+ void on_lastWorkAreaRemoved();
/// slots to change the icon size
void smallSizedIcons();
/// disconnect from signals in the given buffer
void disconnectBuffer();
///
- void updateToc();
- ///
void dragEnterEvent(QDragEnterEvent * ev);
///
void dropEvent(QDropEvent * ev);
///
void resetDialogs();
- /** Check the status of all visible dialogs and disable or reenable
+ /// Hide all visible dialogs
+ void hideAll() const;
+
+ /// Update all visible dialogs.
+ /**
+ * Check the status of all visible dialogs and disable or reenable
* them as appropriate.
*
* Disabling is needed for example when a dialog is open and the
* cursor moves to a position where the corresponding inset is not
* allowed.
*/
- void checkStatus();
-
- /// Hide all visible dialogs
- void hideAll() const;
- /// Hide any dialogs that require a buffer for them to operate
- void hideBufferDependent() const;
- /** Update visible, buffer-dependent dialogs
- If the bool is true then a buffer change has occurred
- else it is still the same buffer.
- */
- void updateBufferDependent(bool) const;
+ void updateDialogs();
/** \param name == "bibtex", "citation" etc; an identifier used to
launch a particular dialog.
std::string const & data, Inset * inset = 0);
/** \param name == "citation", "bibtex" etc; an identifier used
- to update the contents of a particular dialog with \param data.
+ to reset the contents of a particular dialog with \param data.
See the comments to 'show', above.
*/
void updateDialog(std::string const & name, std::string const & data);
void updateCompletion(Cursor & cur, bool start, bool keep);
private:
+ ///
+ void saveLayout() const;
+ ///
+ void restoreLayout();
+ ///
+ GuiToolbar * toolbar(std::string const & name);
+ ///
+ void constructToolbars();
+ ///
+ void initToolbars();
///
void lfunUiToggle(FuncRequest const & cmd);
-
+ ///
+ void toggleFullScreen();
///
void insertLyXFile(docstring const & fname);
///
///
bool saveBuffer(Buffer & b);
///
- bool closeBuffer(Buffer & buf);
+ bool closeBuffer(Buffer & buf, bool tolastopened = false);
///
Inset * getOpenInset(std::string const & name) const;