Added Set/GetFloatingLayoutMode to switch off time-consuming floating object layout if required
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5376,6 +5376,19 @@ public:
|
||||
*/
|
||||
void SetScale(double scale) { m_scale = scale; }
|
||||
|
||||
/**
|
||||
Sets the floating layout mode. Pass @false to speed up editing by not performing
|
||||
floating layout. This setting affects all buffers.
|
||||
|
||||
*/
|
||||
static void SetFloatingLayoutMode(bool mode) { sm_floatingLayoutMode = mode; }
|
||||
|
||||
/**
|
||||
Returns the floating layout mode. The default is @true, where objects
|
||||
are laid out according to their floating status.
|
||||
*/
|
||||
static bool GetFloatingLayoutMode() { return sm_floatingLayoutMode; }
|
||||
|
||||
protected:
|
||||
|
||||
/// Command processor
|
||||
@@ -5429,6 +5442,9 @@ protected:
|
||||
/// Factor to multiply by character height to get a reasonable bullet size
|
||||
static float sm_bulletProportion;
|
||||
|
||||
/// Floating layout mode, @true by default
|
||||
static bool sm_floatingLayoutMode;
|
||||
|
||||
/// Scaling factor in use: needed to calculate correct dimensions when printing
|
||||
double m_scale;
|
||||
|
||||
|
Reference in New Issue
Block a user