class QCloseEvent;
class QDragEnterEvent;
class QDropEvent;
+class QLabel;
class QMenu;
class QShowEvent;
/// programmatically and not by the user clicking the x.
bool closeScheduled();
+ /// Things that need to be done when the OSes session manager
+ /// requests a log out.
+ bool prepareAllBuffersForLogout();
+
int id() const { return id_; }
/// are we busy ?
bool busy() const;
+ /// Signal that the any "auto" minibuffer can be closed now.
+ void resetCommandExecute();
/// \name Generic accessor functions
//@{
///
void setFocus();
+ bool hasFocus() const;
///
void focusInEvent(QFocusEvent * e);
/// updates the possible layouts selectable
void updateLayoutList();
void updateToolbars();
- QMenu * createPopupMenu();
///
LayoutBox * getLayoutDialog() const;
Q_SIGNALS:
void closing(int);
void triggerShowDialog(QString const & qname, QString const & qdata, Inset * inset);
+ // emitted when the work area or its buffer view changed
+ void bufferViewChanged();
public Q_SLOTS:
///
/// idle timeout.
/// clear any temporary message and replace with current status.
void clearMessage();
-
-private Q_SLOTS:
///
void updateWindowTitle(GuiWorkArea * wa);
+
+private Q_SLOTS:
///
- void resetWindowTitleAndIconText();
+ void resetWindowTitle();
///
void on_currentWorkAreaChanged(GuiWorkArea *);
///
+ void onBufferViewChanged();
+ ///
void on_lastWorkAreaRemoved();
- /// slots to change the icon size
- void smallSizedIcons();
- void normalSizedIcons();
- void bigSizedIcons();
-
/// For completion of autosave or export threads.
void processingThreadStarted();
void processingThreadFinished();
void updateStatusBarMessage(QString const & str);
void clearMessageText();
+ ///
+ void toolBarPopup(const QPoint &pos);
+
private:
/// Open given child document in current buffer directory.
void openChildDocument(std::string const & filename);
bool goToFileRow(std::string const & argument);
///
- struct GuiViewPrivate;
+ class GuiViewPrivate;
GuiViewPrivate & d;
public:
///
void insertLyXFile(docstring const & fname);
///
- void insertPlaintextFile(docstring const & fname,
- bool asParagraph);
/// Open Export As ... dialog. \p iformat is the format the
/// filter is initially set to.
bool exportBufferAs(Buffer & b, docstring const & iformat);
PREVBUFFER
};
///
- void gotoNextOrPreviousBuffer(NextOrPrevious np);
+ void gotoNextOrPreviousBuffer(NextOrPrevious np, bool const move);
/// Is the dialog currently visible?
bool isDialogVisible(std::string const & name) const;
/// functions that call setBusy;
int busy_;
+ /// Request to open the command toolbar if it is "auto"
+ bool command_execute_;
+ /// Request to give focus to minibuffer
+ bool minibuffer_focus_;
+
+ /// Statusbar widget that shows read-only status
+ QLabel * read_only_;
+ /// Statusbar widget that shows version control status
+ QLabel * version_control_;
+
+ /// Minimum zoom percentage
+ static unsigned int const zoom_min_ = 10;
+
};
} // namespace frontend