summaryrefslogtreecommitdiffstats
path: root/src/server/mainwindow/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/mainwindow/mainwindow.h')
-rw-r--r--src/server/mainwindow/mainwindow.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/server/mainwindow/mainwindow.h b/src/server/mainwindow/mainwindow.h
index b0ad498..988ac50 100644
--- a/src/server/mainwindow/mainwindow.h
+++ b/src/server/mainwindow/mainwindow.h
@@ -30,6 +30,8 @@ public:
MainWindow(QWidget *parent = 0);
~MainWindow();
+ QRect calcFrameGeometry(ConnectionFrame* frame) const;
+
private:
// Ui stuff
@@ -75,9 +77,9 @@ private:
DiscoveryListener *_discoveryListener;
QPoint closestFreeSlot(QPoint preferredPixels, ConnectionFrame* toIgnore);
- void placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred = QPoint(0, 0));
+ void placeFrameInFreeSlot(ConnectionFrame* frame, QPoint preferred = QPoint(-1, -1));
ConnectionFrame* createFrame();
- ConnectionFrame* createFrame(QString computerId, QPoint position, QPoint gridPosition);
+ ConnectionFrame* createFrame(QString computerId, QPoint gridPosition);
void savePosition(ConnectionFrame *cf);
void startVncServerIfNecessary(int from);
void tellClientCurrentSituation(Client* client);
@@ -122,7 +124,7 @@ protected slots:
void DisableButtons();
void EnableButtons();
// connection frame
- void onPlaceFrame(bool activateTrash, ConnectionFrame* frame);
+ void onPlaceFrame(ConnectionFrame* frame);
void onFrameClicked(ConnectionFrame* frame);
// Net
void onClientConnected(Client* client);