Pleora Technologies Inc. eBUS SDK v5.1.10.4642 API



PvWnd.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2008, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVWND_H__
8 #define __PVWND_H__
9 
10 #include <PvGUILib.h>
11 
12 
13 class Wnd;
14 #ifndef WIN32
15  class QWidget;
16 #endif // WIN32
17 
18 
19 class PV_GUI_API PvWnd
20 {
21 public:
22 
23  void SetPosition( int32_t aPosX, int32_t aPosY, int32_t aSizeX, int32_t aSizeY );
24  void GetPosition( int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY );
25 
26 #ifdef WIN32
27  PvResult ShowModal( PvWindowHandle aParentHwnd = 0 );
28  PvResult ShowModeless( PvWindowHandle aParentHwnd = 0 );
29  PvResult Create( PvWindowHandle aHwnd, uint32_t aID );
30 #else
31  PvResult ShowModal();
32  PvResult ShowModal( QWidget* aParentHwnd );
33 
34  PvResult ShowModeless();
35  PvResult ShowModeless( QWidget* aParentHwnd );
36 
37  PvResult Create( QWidget* aHwnd );
38 #endif // WIN32
39 
40  PvString GetTitle() const;
41  void SetTitle( const PvString &aTitle );
42 #ifndef WIN32
43  QWidget* GetQWidget();
44 #endif
45 
46  PvResult Close();
47 
48 #ifdef WIN32
49  PvWindowHandle GetHandle();
50  PvResult DoEvents();
51 #else
52  static void DoEvents();
53 #endif // WIN32
54 
55 protected:
56 
57  PvWnd();
58  virtual ~PvWnd();
59 
60  Wnd *mThis;
61 
62 private:
63 
64  // Not implemented
65  PvWnd( const PvWnd & );
66  const PvWnd &operator=( const PvWnd & );
67 
68 };
69 
70 #endif
String class.
Definition: PvString.h:21
Result information.
Definition: PvResult.h:13
Base class defining common functionality for all user interface classes.
Definition: PvWnd.h:19

Copyright (c) 2002-2018 Pleora Technologies Inc.
www.pleora.com