[rkward-cvs] SF.net SVN: rkward:[3037] trunk/rkward/rkward/windows/rkwindowcatcher.cpp
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Tue Sep 14 14:16:32 UTC 2010
Revision: 3037
http://rkward.svn.sourceforge.net/rkward/?rev=3037&view=rev
Author: tfry
Date: 2010-09-14 14:16:32 +0000 (Tue, 14 Sep 2010)
Log Message:
-----------
Try to be helpful when a device window is too large to fit on screen.
Modified Paths:
--------------
trunk/rkward/rkward/windows/rkwindowcatcher.cpp
Modified: trunk/rkward/rkward/windows/rkwindowcatcher.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkwindowcatcher.cpp 2010-09-14 11:26:27 UTC (rev 3036)
+++ trunk/rkward/rkward/windows/rkwindowcatcher.cpp 2010-09-14 14:16:32 UTC (rev 3037)
@@ -21,6 +21,7 @@
#include <qlayout.h>
#include <qapplication.h>
+#include <QDesktopWidget>
#include <kmessagebox.h>
#include <klocale.h>
@@ -216,6 +217,13 @@
// make xembed_container resizable, again, now that it actually has a content
dynamic_size_action->setChecked (true);
fixedSizeToggled ();
+
+ // try to be helpful when the window is too large to fit on screen
+ QRect dims = window ()->frameGeometry ();
+ QRect avail = QApplication::desktop ()->availableGeometry (window ());
+ if ((dims.width () > avail.width ()) || (dims.height () > avail.height ())) {
+ KMessageBox::information (this, i18n ("The current window appears to too large to fit on the screen. If this happens regularly, you may want to adjust the default graphics window size in Settings->Configure RKWard->Onscreen Graphics."), i18n ("Large window"), "dont_ask_again_large_x11_window");
+ }
}
RKCaughtX11Window::~RKCaughtX11Window () {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list