From: Abdelrazak Younes Date: Sun, 3 Dec 2006 13:17:35 +0000 (+0000) Subject: two lines between function. X-Git-Tag: 1.6.10~11658 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=99cae6c72393d90eb2ba8ecd808fc4d210215dd7;p=features.git two lines between function. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16158 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiView.C b/src/frontends/qt4/GuiView.C index c42f97090b..094d606d83 100644 --- a/src/frontends/qt4/GuiView.C +++ b/src/frontends/qt4/GuiView.C @@ -90,6 +90,7 @@ public: } }; + struct GuiView::GuiViewPrivate { typedef std::map FuncMap; @@ -150,8 +151,10 @@ struct GuiView::GuiViewPrivate } }; + unsigned int GuiView::GuiViewPrivate::lastIconSize = 0; + GuiView::GuiView(int id) : QMainWindow(), LyXView(id), commandbuffer_(0), d(*new GuiViewPrivate) { @@ -164,8 +167,6 @@ GuiView::GuiView(int id) d.normalIconSize = 20; // ok, default d.bigIconSize = 26; // better for some math icons - //bufferview_.reset(new BufferView(this, width, height)); - #ifndef Q_WS_MACX // assign an icon to main form. We do not do it under Qt/Mac, // since the icon is provided in the application bundle. @@ -188,11 +189,13 @@ void GuiView::close() QMainWindow::close(); } + QMenu* GuiView::createPopupMenu() { return d.toolBarPopup(this); } + void GuiView::init() { menubar_.reset(new QLMenubar(this, menubackend)); @@ -251,6 +254,7 @@ void GuiView::closeEvent(QCloseEvent * close_event) close_event->accept(); } + void GuiView::saveGeometry() { static bool done = false; @@ -286,6 +290,7 @@ void GuiView::saveGeometry() getToolbars().saveToolbarInfo(); } + void GuiView::setGeometry(unsigned int width, unsigned int height, int posx, int posy, @@ -404,22 +409,26 @@ void GuiView::clearMessage() update_view_state_qt(); } + void GuiView::setIconSize(unsigned int size) { d.lastIconSize = size; QMainWindow::setIconSize(QSize(size, size)); } + void GuiView::smallSizedIcons() { setIconSize(d.smallIconSize); } + void GuiView::normalSizedIcons() { setIconSize(d.normalIconSize); } + void GuiView::bigSizedIcons() { setIconSize(d.bigIconSize); @@ -439,6 +448,7 @@ void GuiView::update_view_state_qt() statusbar_timer_.stop(); } + void GuiView::initTab(QWidget* workarea) { d.wt = new WidgetWithTabBar(workarea); @@ -447,6 +457,7 @@ void GuiView::initTab(QWidget* workarea) this, SLOT(currentTabChanged(int))); } + void GuiView::updateTab() { QTabBar& tb = *d.wt->tabbar; @@ -549,6 +560,7 @@ void GuiView::updateTab() d.wt->update(); } + void GuiView::currentTabChanged (int index) { std::map::const_iterator it = d.funcmap.find(index);