Pleora Technologies Inc. eBUS SDK v7.0.1.7536 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 class QWidget;
15 
16 
17 class PV_GUI_API PvWnd
18 {
19 public:
20 
21  void SetPosition( int32_t aPosX, int32_t aPosY, int32_t aSizeX, int32_t aSizeY );
22  void GetPosition( int32_t &aPosX, int32_t &aPosY, int32_t &aSizeX, int32_t &aSizeY );
23 
24 
25  PvResult ShowModal();
26  PvResult ShowModal( QWidget *aParentHwnd );
27 
28  PvResult Create( QWidget *aHwnd );
29  PvResult ShowModeless();
30  PvResult ShowModeless( QWidget *aParentHwnd );
31 #ifdef WIN32
32 // These functions should only be used by MFC applications.
33 // But since PvGUI is compiled using OS flags, we use WIN32 and not _AFXDLL here for compatibility.
34  PvResult ShowModeless( HWND aParentHwnd );
35  PvResult Create( HWND aHwnd, int aControlID = 0 );
36  HWND GetHandle() const;
37  bool IsVisible() const;
38 #endif
39  QWidget *GetQWidget();
40 
41  PvString GetTitle() const;
42  void SetTitle( const PvString &aTitle );
43 
44  PvResult Close();
45 
46  static void DoEvents();
47 
48 protected:
49 
50  PvWnd();
51  virtual ~PvWnd();
52 
53  Wnd *mThis;
54 
55 private:
56 
57  // Not implemented
58  PvWnd( const PvWnd & );
59  const PvWnd &operator=( const PvWnd & );
60 };
61 
62 
63 #endif
PvResult
Result information.
Definition: PvResult.h:29
PvString
String class.
Definition: PvString.h:25
PvWnd
Window controller superclass.
Definition: PvWnd.h:17

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