Pleora Technologies Inc. eBUS SDK v6.2.8.5877 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 #ifdef QT_GUI_LIB
15 class QWidget;
16 #endif
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 _AFXDLL
27  PvResult ShowModal( PvWindowHandle aParentHwnd = 0 );
28  PvResult ShowModeless( PvWindowHandle aParentHwnd = 0 );
29  PvResult Create( PvWindowHandle aHwnd, uint32_t aID );
30 #endif
31 
32 #ifdef QT_GUI_LIB
33  PvResult ShowModal();
34  PvResult ShowModal( QWidget* aParentHwnd );
35 
36  PvResult ShowModeless();
37  PvResult ShowModeless( QWidget* aParentHwnd );
38 
39  PvResult Create( QWidget* aHwnd );
40  QWidget* GetQWidget();
41 #endif
42 
43  PvString GetTitle() const;
44  void SetTitle( const PvString &aTitle );
45 
46  PvResult Close();
47 
48 #ifdef _AFXDLL
49  PvWindowHandle GetHandle();
50  PvResult DoEvents();
51 #endif
52 
53 #ifdef QT_GUI_LIB
54  static void DoEvents();
55 #endif
56 
57 protected:
58 
59  PvWnd();
60  virtual ~PvWnd();
61 
62  Wnd *mThis;
63 
64 private:
65 
66  // Not implemented
67  PvWnd( const PvWnd & );
68  const PvWnd &operator=( const PvWnd & );
69 };
70 
71 
72 #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-2021 Pleora Technologies Inc.
www.pleora.com