Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
SoMessageDialog.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : Nicolas DAGUISE (Jan 2003)
22**=======================================================================*/
23#ifndef _SO_MESSAGE_DIALOG_
24#define _SO_MESSAGE_DIALOG_
25
26#include <DialogViz/dialog/SoDialogViz.h>
27#include <Inventor/threads/SbThread.h>
28
40{
41 SO_DG_HEADER(SoMessageDialog);
42
43 public:
44
45 enum Type {
58 };
63
68
73 SoMessageDialog(SbString MDText, SbString MDTitle, Type MDType );
74
79
83 virtual void show();
84
88 virtual void close();
89
93 void destroy();
94
95 /*==============================================================================*/
96 private:
97
98 void * m_wnd;
99 void * m_wndLabel;
100 SbThread * m_thread;
101
102 static void initClass();
103 static void exitClass();
104 void createWorkingMessageDialog();
105
106 private:
107
108 virtual ~SoMessageDialog();
109
110 private:
111 static SbVec2i32 getLabelPixelSize(SbString string);
112};
113
114#endif // _SO_MESSAGE_DIALOG_
115
116
Class for smart character strings.
Definition SbString.h:202
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Portable thread ...
Definition SbThread.h:65
2D vector class.
Definition SbVec.h:517
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Message Dialog n...
virtual void show()
Show the MessageDialog widget.
SoMessageDialog(SbString MDText, SbString MDTitle, Type MDType)
Special constructor : build the message dialog box with text, title and type properties,...
@ MD_ERROR
Display the Error symbol.
@ MD_MESSAGE
Display the default message symbol.
@ MD_WORKING
Display a working window.
@ MD_QUESTION
Display the question symbol (a "?" in a circle).
@ MD_WARNING
Display the warning symbol (a "!" is displayed)
@ MD_INFORMATION
Display the international information symbol (an "i" with a circle around it).
SoSFString title
Title of the message dialog box.
SoMessageDialog()
Constructor.
SoSFEnum type
Control the message dialog box type.
void destroy()
Destroy the message dialog.
virtual void close()
Close the current working message dialog.
Field containing an enumerated value.
Definition SoSFEnum.h:89
Field containing a string.
Definition SoSFString.h:117