lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [6156] Show tabbed-dialog dimensions if requested


From: Greg Chicares
Subject: [lmi-commits] [6156] Show tabbed-dialog dimensions if requested
Date: Sat, 28 Mar 2015 12:52:25 +0000

Revision: 6156
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6156
Author:   chicares
Date:     2015-03-28 12:52:24 +0000 (Sat, 28 Mar 2015)
Log Message:
-----------
Show tabbed-dialog dimensions if requested

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/mvc_controller.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2015-03-27 02:52:35 UTC (rev 6155)
+++ lmi/trunk/ChangeLog 2015-03-28 12:52:24 UTC (rev 6156)
@@ -35973,3 +35973,8 @@
 Reapply patches that were somehow misapplied. See:
   http://lists.nongnu.org/archive/html/lmi/2015-03/msg00046.html
 
+20150328T1252Z <address@hidden> [516]
+
+  mvc_controller.cpp
+Show tabbed-dialog dimensions if requested.
+

Modified: lmi/trunk/mvc_controller.cpp
===================================================================
--- lmi/trunk/mvc_controller.cpp        2015-03-27 02:52:35 UTC (rev 6155)
+++ lmi/trunk/mvc_controller.cpp        2015-03-28 12:52:24 UTC (rev 6156)
@@ -32,6 +32,8 @@
 #include "alert.hpp"
 #include "assert_lmi.hpp"
 #include "calendar_date.hpp"
+#include "contains.hpp"
+#include "global_settings.hpp"
 #include "map_lookup.hpp"
 #include "mc_enum.hpp"
 #include "mvc_model.hpp"
@@ -737,6 +739,14 @@
         ,&MvcController::UponUpdateUI
         ,wxXmlResource::GetXRCID(view_.MainDialogName())
         );
+
+    if(contains(global_settings::instance().pyx(), "show_mvc_dims"))
+        {
+        int width  = 0;
+        int height = 0;
+        GetSize(&width, &height);
+        status() << width << " by " << height << std::flush;
+        }
 }
 
 void MvcController::UponPageChanged(wxBookCtrlBaseEvent& event)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]