#include "frontends/Application.h"
-#include <QObject>
#include <QApplication>
-
-#include <vector>
+#include <QObject>
+#include <QList>
class QSessionManager;
class QAbstractItemModel;
class GuiWorkArea;
class Menus;
class SocketNotifier;
+class Toolbars;
/// The Qt main application class
/**
bool event(QEvent * e);
bool getRgbColor(ColorCode col, RGBColor & rgbcol);
std::string const hexName(ColorCode col);
- void readMenus(Lexer & lex);
void registerSocketCallback(int fd, SocketCallback func);
void unregisterSocketCallback(int fd);
- bool searchMenu(FuncRequest const & func, std::vector<docstring> & names) const;
+ bool searchMenu(FuncRequest const & func, docstring_list & names) const;
void hideDialogs(std::string const & name, Inset * inset) const;
Buffer const * updateInset(Inset const * inset) const;
//@}
+ Toolbars const & toolbars() const;
+ Toolbars & toolbars();
Menus const & menus() const;
Menus & menus();
/// Methods inherited from \c QApplication class
///
void setCurrentView(GuiView * view) { current_view_ = view; }
///
- size_t viewCount() const;
- ///
- std::vector<int> const & viewIds();
+ QList<int> viewIds() const;
///
ColorCache & colorCache();
/// return a suitable monospaced font name.
QString const typewriterFontName();
///
- bool unregisterView(int id);
+ void unregisterView(GuiView * gv);
///
GuiView & view(int id) const;
private:
///
bool closeAllViews();
+ /// read the given ui (menu/toolbar) file
+ bool readUIFile(QString const & name, bool include = false);
+
/// This LyXView is the one receiving Clipboard and Selection
/// events
GuiView * current_view_;