summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-18 12:15:05 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-03-18 12:21:40 +0000
commitebfc7ace27c9b476627dd2fdfdf2f9341c764930 (patch)
tree33c6d3385d2ee2a22dae9fe367522f2757f5deac
parent12d89865f8ea63765baa9f62611d7c89f2879176 (diff)
vcldemo: horrible scratch me - exposes internals for testing. private/mmeeks/gldebug
Change-Id: I812b8b879930c3be51af69d09d51b12d81897a02
-rw-r--r--vcl/inc/helpwin.hxx3
-rw-r--r--vcl/workben/vcldemo.cxx8
2 files changed, 9 insertions, 2 deletions
diff --git a/vcl/inc/helpwin.hxx b/vcl/inc/helpwin.hxx
index b6beda35a6d3..dc1857c24369 100644
--- a/vcl/inc/helpwin.hxx
+++ b/vcl/inc/helpwin.hxx
@@ -20,12 +20,13 @@
#ifndef INCLUDED_VCL_INC_HELPWIN_HXX
#define INCLUDED_VCL_INC_HELPWIN_HXX
+#include <vcl/dllapi.h>
#include <vcl/floatwin.hxx>
#include <vcl/timer.hxx>
// - HelpTextWindow -
-class HelpTextWindow : public FloatingWindow
+class VCL_DLLPUBLIC HelpTextWindow : public FloatingWindow
{
private:
Rectangle maHelpArea; // If next Help for the same rectangle w/ same text, then keep window
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 3dc3d913a1f5..26205cdb3b89 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -37,6 +37,8 @@
#include <vcl/salbtype.hxx>
#include <vcl/bmpacc.hxx>
#include <vcl/help.hxx>
+#include "helpwin.hxx"
+
#include <basegfx/numeric/ftools.hxx>
#include <basegfx/matrix/b2dhommatrix.hxx>
#include <vcldemo-debug.hxx>
@@ -1447,6 +1449,7 @@ class DemoWidgets : public WorkWindow
VclBox *mpBox;
ToolBox *mpToolbox;
PushButton *mpButton;
+ HelpTextWindow *pHelpWindow;
Timer maHelpTimer;
DECL_LINK (HelpTimerCb, void *);
@@ -1522,7 +1525,10 @@ IMPL_LINK_NOARG(DemoWidgets,HelpTimerCb)
Point aPos = GetPosPixel();
aPos.Move(100,100);
- Help::ShowBalloon( this, aPos, "This is another help balloon text" );
+ OUString aText = "This is a help text test";
+ pHelpWindow = new HelpTextWindow( this, aText, 1 /* balloon */, 0 );
+
+ pHelpWindow->ShowHelp( 3 /* delay none */ );
return 0;
}