}
};
+
struct GuiView::GuiViewPrivate
{
typedef std::map<int, FuncRequest> FuncMap;
}
};
+
unsigned int GuiView::GuiViewPrivate::lastIconSize = 0;
+
GuiView::GuiView(int id)
: QMainWindow(), LyXView(id), commandbuffer_(0), d(*new GuiViewPrivate)
{
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.
QMainWindow::close();
}
+
QMenu* GuiView::createPopupMenu()
{
return d.toolBarPopup(this);
}
+
void GuiView::init()
{
menubar_.reset(new QLMenubar(this, menubackend));
close_event->accept();
}
+
void GuiView::saveGeometry()
{
static bool done = false;
getToolbars().saveToolbarInfo();
}
+
void GuiView::setGeometry(unsigned int width,
unsigned int height,
int posx, int posy,
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);
statusbar_timer_.stop();
}
+
void GuiView::initTab(QWidget* workarea)
{
d.wt = new WidgetWithTabBar(workarea);
this, SLOT(currentTabChanged(int)));
}
+
void GuiView::updateTab()
{
QTabBar& tb = *d.wt->tabbar;
d.wt->update();
}
+
void GuiView::currentTabChanged (int index)
{
std::map<int, FuncRequest>::const_iterator it = d.funcmap.find(index);