NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
UI.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// C++接口到JA API的头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// UI.ja
9
//
10
// 生成工具:
11
// apiwrap
12
//
13
// 警告:
14
// 此文件为自动生成 - 请勿手动编辑
15
//
16
#pragma once
17
#include <NXOpen/NXDeprecation.hxx>
18
#include <vector>
19
#include <NXOpen/NXString.hxx>
20
#include <NXOpen/Callback.hxx>
21
#include <NXOpen/BlockStyler_BlockDialog.hxx>
22
#include <NXOpen/CustomPopupMenuHandler.hxx>
23
#include <NXOpen/Gateway_ImageExportBuilder.hxx>
24
#include <NXOpen/TaggedObject.hxx>
25
#include <NXOpen/libnxopenuicpp_exports.hxx>
26
#ifdef _MSC_VER
27
#pragma warning(push)
28
#pragma warning(disable:4996)
29
#endif
30
#ifdef __GNUC__
31
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32
#endif
33
namespace
NXOpen
34
{
35
class
UI
;
36
namespace
BlockStyler
37
{
38
class
BlockDialog
;
39
}
40
namespace
BlockStyler
41
{
42
class
DialogTester
;
43
}
44
class
CustomPopupMenuHandler
;
45
namespace
Gateway
46
{
47
class
ImageExportBuilder
;
48
}
49
namespace
MenuBar
50
{
51
class
MenuBarManager
;
52
}
53
class
MovieManager
;
54
class
NXMessageBox
;
55
namespace
Preferences
56
{
57
class
ObjectPreferences
;
58
}
59
namespace
Preferences
60
{
61
class
SessionUserInterfaceUI
;
62
}
63
class
ProductDemo;
64
class
ResourceBarManager
;
65
class
Selection
;
66
namespace
UIStyler
67
{
68
class
Styler
;
69
}
70
class
ViewUIManager
;
71
class
_UIBuilder;
72
class
UIImpl;
80
class
NXOPENUICPPEXPORT UI :
public
NXOpen::TaggedObject
81
{
83
public
:
enum
Status
84
{
85
StatusLock
,
86
StatusUnlock
87
};
88
public
:
107
typedef
NXOpen::Callback1<void, bool>
UtilityFunctionVisibilityHandler
;
108
private
:
UIImpl
* m_ui_impl;
109
private
:
static
UI *theUI;
111
public
:
static
UI *
GetUI
();
112
private
:
friend
class
_UIBuilder;
113
protected
: UI();
114
public
: ~UI();
124
public
:
void
LockAccess
125
(
126
);
130
public
:
void
UnlockAccess
131
(
132
);
136
public
:
void
JournalPause
137
(
138
);
145
public
:
NXOpen::UI::Status
AskLockStatus
146
(
147
);
152
public
:
NXOpen::BlockStyler::BlockDialog
*
CreateDialog
153
(
154
const
NXString
& dialogName
155
);
160
NXOpen::BlockStyler::BlockDialog
*
CreateDialog
161
(
162
const
char
* dialogName
163
);
167
public
:
int
AddUtilityFunctionVisibilityHandler
168
(
169
const
NXOpen::UI::UtilityFunctionVisibilityHandler
& utilityFunctionVisibilityHandler
170
);
174
public
:
void
RemoveUtilityFunctionVisibilityHandler
175
(
176
int
id
177
);
181
public
:
NXOpen::CustomPopupMenuHandler
*
CreateCustomPopupMenuHandler
182
(
183
);
188
public
:
NX_DEPRECATED
(
"Deprecated in NX2007.0.0. Use NXOpen::ViewCollection::CreateImageExportBuilder instead."
)
NXOpen
::
Gateway
::ImageExportBuilder * CreateImageExportBuilder
189
(
190
);
195
public:
bool
CanOpenPart
196
(
197
);
201
public:
int
DisplayNotification
202
(
203
const
NXString
& title ,
204
const
NXString
& description ,
205
const
NXString
& extraText ,
206
const
NXString
& icon
207
);
211
int
DisplayNotification
212
(
213
const
char
* title ,
214
const
char
* description ,
215
const
char
* extraText ,
216
const
char
* icon
217
);
221
public:
void
RemoveNotification
222
(
223
int
id
224
);
228
public:
NXOpen
::
NXMessageBox
*
NXMessageBox
();
232
public:
NXOpen
::
UIStyler
::
Styler
*
Styler
();
236
public:
NXOpen
::
Selection
*
SelectionManager
();
240
public:
NXOpen
::
Preferences
::
ObjectPreferences
*
ObjectPreferences
();
244
public:
NXOpen
::
Preferences
::SessionUserInterfaceUI *
UserInterfacePreferences
();
248
public:
NXOpen
::MenuBar::
MenuBarManager
*
MenuBarManager
();
252
public:
NXOpen
::
MovieManager
*
MovieManager
();
256
public:
NXOpen
::
ResourceBarManager
*
ResourceBarManager
();
260
public:
NXOpen
::
ViewUIManager
*
ViewUIManager
();
262
265
public:
NXOpen
::
ProductDemo
*
ProductDemo
();
267
270
public:
NXOpen
::
BlockStyler
::
DialogTester
*
DialogTester
();
271
};
272
}
273
#ifdef _MSC_VER
274
#pragma warning(pop)
275
#endif
276
#ifdef __GNUC__
277
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
278
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
279
#endif
280
#endif
281
#undef EXPORTLIBRARY