simplify repaints
[presencevnc] / src / vncview.h
index 2b7dde3..3fb0a2b 100644 (file)
@@ -47,8 +47,8 @@ public:
     QSize framebufferSize();
     QSize sizeHint() const;
     QSize minimumSizeHint() const;
-    void startQuitting();
     bool isQuitting();
+    qreal getZoomFactor() { return m_horizontalFactor;} //assumes fixed aspect ratio
     void reloadSettings();
     bool start();
     bool supportsScaling() const;
@@ -59,10 +59,10 @@ public:
     void showDotCursor(DotCursorState state);
     
 public slots:
-    void enableScaling(bool scale); //TODO: i may want to remove this
     void setZoomLevel(int level = -1); //'level' doesn't correspond to actual magnification, though mapping is done here
     void sendKey(Qt::Key key);
     void sendKeySequence(QKeySequence keys);
+    void startQuitting();
     void forceFullRepaint();
 
 protected:
@@ -80,8 +80,6 @@ private:
     QMap<unsigned int, bool> m_mods;
     int m_x, m_y, m_w, m_h;
     int cursor_x, cursor_y;
-       int listen_port;
-    bool m_repaint;
     bool m_quitFlag;
     bool m_firstPasswordTry;
     bool m_dontSendClipboard;
@@ -90,9 +88,10 @@ private:
     QImage m_frame;
     bool m_forceLocalCursor;
     bool force_full_repaint;
-    RemoteView::Quality quality;
     int left_zoom, right_zoom;
     bool disable_tapping;
+    RemoteView::Quality quality;
+       int listen_port;
 
     void keyEventHandler(QKeyEvent *e);
     void unpressModifiers();