Mercurial > hg > svapp
comparison framework/MainWindowBase.h @ 168:875a21ad7a95
* Avoid resizing the window on file load to larger than the available screen
size
author | Chris Cannam |
---|---|
date | Thu, 19 Mar 2009 15:50:59 +0000 |
parents | 2c2029007618 |
children | d71dccaa576c |
comparison
equal
deleted
inserted
replaced
167:7fff1bb8cc3d | 168:875a21ad7a95 |
---|---|
149 void replacedDocument(); | 149 void replacedDocument(); |
150 void activity(QString); | 150 void activity(QString); |
151 | 151 |
152 public slots: | 152 public slots: |
153 virtual void preferenceChanged(PropertyContainer::PropertyName); | 153 virtual void preferenceChanged(PropertyContainer::PropertyName); |
154 virtual void resizeConstrained(QSize); | |
154 | 155 |
155 protected slots: | 156 protected slots: |
156 virtual void zoomIn(); | 157 virtual void zoomIn(); |
157 virtual void zoomOut(); | 158 virtual void zoomOut(); |
158 virtual void zoomToFit(); | 159 virtual void zoomToFit(); |
332 { | 333 { |
333 public: | 334 public: |
334 PaneCallback(MainWindowBase *mw) : m_mw(mw) { } | 335 PaneCallback(MainWindowBase *mw) : m_mw(mw) { } |
335 virtual Pane *addPane() { return m_mw->addPaneToStack(); } | 336 virtual Pane *addPane() { return m_mw->addPaneToStack(); } |
336 virtual void setWindowSize(int width, int height) { | 337 virtual void setWindowSize(int width, int height) { |
337 m_mw->resize(width, height); | 338 m_mw->resizeConstrained(QSize(width, height)); |
338 } | 339 } |
339 virtual void addSelection(int start, int end) { | 340 virtual void addSelection(int start, int end) { |
340 m_mw->m_viewManager->addSelection(Selection(start, end)); | 341 m_mw->m_viewManager->addSelection(Selection(start, end)); |
341 } | 342 } |
342 protected: | 343 protected: |