Skip to content
Permalink
Browse files
-Small changs to auto arrange to fit better on laptops and Macs
git-svn-id: http://svn.osgeo.org/qgis/trunk@9054 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
ersts committed Aug 12, 2008
1 parent 9db5c1d commit 65f678a2b9d0298e6fd61e09c4a43071bde7dbf2
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/plugins/georeferencer/plugingui.cpp
@@ -180,28 +180,28 @@ void QgsGeorefPluginGui::on_mArrangeWindowsButton_clicked()

int newPluginDialogHeight = qMax(int(myScreenHeight * 0.2), minimumHeight());
int newPluginDialogWidth = qMax(int(myScreenWidth * 0.33), minimumWidth());
int newPointDialogHeight = qMax(int(myScreenHeight * 0.70), mPointDialog->minimumHeight());
int newPointDialogHeight = qMax(int(myScreenHeight * 0.60), mPointDialog->minimumHeight());
int newPointDialogWidth = qMax(int(myScreenWidth * 0.33), mPointDialog->minimumWidth());
int newMainWindowHeight = qMax(int(myScreenHeight * 0.95), mainWindow->minimumHeight());
int newMainWindowHeight = qMax(int(myScreenHeight * 0.90), mainWindow->minimumHeight());
int newMainWindowWidth = qMax(int(myScreenWidth * 0.65), mainWindow->minimumHeight());

//place main window
mainWindow->setEnabled(false); //avoid getting two resize events for the main canvas
mainWindow->resize(newMainWindowWidth, newMainWindowHeight);
//Resize again to account for frame border width -- Probably a better way to do this.
mainWindow->resize(newMainWindowWidth - (mainWindow->width() - newMainWindowWidth), newMainWindowHeight - (mainWindow->height() - newMainWindowHeight));
mainWindow->move(myScreenWidth - newMainWindowWidth, 0);
mainWindow->move(myScreenWidth - newMainWindowWidth, int(myScreenHeight * 0.05));
mainWindow->setEnabled(true);

//place this dialog
resize(newPluginDialogWidth, newPluginDialogHeight);
resize(newPluginDialogWidth - (width() - newPluginDialogWidth), newPluginDialogHeight - (height() - newPluginDialogHeight));
move(0, 0);
move(0, int(myScreenHeight * 0.05));

//place point dialog
mPointDialog->resize(newPointDialogWidth, newPointDialogHeight);
mPointDialog->resize(newPointDialogWidth - (mPointDialog->width() - newPointDialogWidth), newPointDialogHeight - (mPointDialog->height() - newPointDialogHeight));
mPointDialog->move(0, int(myScreenHeight * 0.3));
mPointDialog->move(0, int(myScreenHeight * 0.35));


}

0 comments on commit 65f678a

Please sign in to comment.