NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
BlockStyler_Tree.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// BlockStyler_Tree.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_Node.hxx>
22#include <NXOpen/BlockStyler_TreeListMenu.hxx>
23#include <NXOpen/BlockStyler_UIBlock.hxx>
24#include <NXOpen/libnxopenuicpp_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 namespace BlockStyler
35 {
36 class Tree;
37 }
38 namespace BlockStyler
39 {
40 class Node;
41 }
42 namespace BlockStyler
43 {
44 class TreeListMenu;
45 }
46 namespace BlockStyler
47 {
48 class UIBlock;
49 }
50 namespace BlockStyler
51 {
52 class _TreeBuilder;
53 class TreeImpl;
59 class NXOPENUICPPEXPORT Tree : public NXOpen::BlockStyler::UIBlock
60 {
74
81
88
94
100
106
112
119 public:
123 public:
129 public:
133 public:
137 public:
141 public:
147 public:
149 public:
156 public:
160 public:
165 public:
170 public:
175 public:
182 public:
188 public:
198 public:
203 public:
207 public:
215 public:
220 public:
229 public:
233 private: TreeImpl * m_tree_impl;
234 private: friend class _TreeBuilder;
235 protected: Tree();
236public: ~Tree();
241 (
242 const NXString & displayText
243 );
248 (
249 const char * displayText
250 );
255 public: void InsertNode
256 (
257 NXOpen::BlockStyler::Node * newNode ,
258 NXOpen::BlockStyler::Node * parentNode ,
259 NXOpen::BlockStyler::Node * afterNode ,
262 );
266 public: void DeleteNode
267 (
269 );
273 public: void SelectNode
274 (
276 bool isSelect ,
277 bool isOtherNodeAffected
279 );
283 public: void SelectNodes
284 (
285 const std::vector<NXOpen::BlockStyler::Node *> & node ,
286 bool isSelect ,
287 bool isOtherNodeAffected
289 );
303 public: int InsertColumn
304 (
305 int columnID ,
306 const NXString & columnTitle ,
307 int columnWidth
308 );
323 (
324 int columnID ,
325 const char * columnTitle ,
326 int columnWidth
327 );
332 (
333 int columnID
334 );
338 public: void SetColumnTitle
339 (
340 int columnID ,
341 const NXString & columnHeaderTitle
342 );
347 (
348 int columnID ,
349 const char * columnHeaderTitle
350 );
354 public: int GetColumnId
355 (
356 int columnPosition
357 );
362 (
363 int columnID
364 );
368 public: int GetColumnWidth
369 (
370 int columnID
371 );
375 public: void SetColumnWidth
376 (
377 int columnID ,
378 int columnWidth
379 );
384 (
385 int columnID
386 );
391 (
392 int columnID ,
394 );
398 public: bool GetColumnSortable
399 (
400 int columnID
401 );
405 public: void SetColumnSortable
406 (
407 int columnID ,
408 bool isSortable
409 );
413 public: bool GetColumnVisible
414 (
415 int columnID
416 );
420 public: void SetColumnVisible
421 (
422 int columnID ,
423 bool isVisible
424 );
429 (
430 int columnID
431 );
436 (
437 int columnID ,
439 );
444 (
445 int columnID
446 );
451 (
452 int columnID ,
454 );
460 (
461 );
467 (
468 );
473 (
474 double timeOut
475 );
479 public: std::vector<NXOpen::BlockStyler::Node *> GetSelectedNodes
480 (
481 );
488 public: void Redraw
489 (
490 bool redraw
491 );
495 public: int NumberOfColumns
496 (
497 );
502 (
504 );
509 (
511 );
516 (
518 );
523 (
525 );
530 (
532 );
537 (
539 );
544 (
546 );
551 (
553 );
558 (
560 );
565 (
567 );
572 (
574 );
579 (
581 );
586 (
588 );
592 public: void SetEditOptions
593 (
594 std::vector<NXString> & stringArray ,
595 int defaultIndex
596 );
601 (
603 );
607 public: void SetOnMenuHandler
608 (
610 );
615 (
617 );
622 (
624 );
629 (
631 );
635 public: void SetOnDropHandler
636 (
638 );
643 (
645 );
650 (
652 );
657 (
658 );
662 public: void SetMenu
663 (
665 );
672 (
673 NXOpen::BlockStyler::Node * sourceNode
674 );
678 public: bool CanStretchHeight
679 (
680 );
685 (
686 bool stretchHeight
687 );
691 public: int Height
692 (
693 );
697 public: void SetHeight
698 (
699 int height
700 );
704 public: bool Localize
705 (
706 );
710 public: void SetLocalize
711 (
712 bool localize
713 );
717 public: int MaximumHeight
718 (
719 );
723 public: void SetMaximumHeight
724 (
725 int maxHeight
726 );
730 public: int MinimumHeight
731 (
732 );
736 public: void SetMinimumHeight
737 (
738 int minHeight
739 );
744 (
745 );
750 (
751 int scrollFrozenColumn
752 );
757 (
758 );
763 (
764 int scrollLineNumber
765 );
770 (
771 );
776 (
777 const NXString & enumString
778 );
783 (
784 const char * enumString
785 );
789 public: std::vector<NXString> GetSelectionModeMembers
790 (
791 );
796 (
797 );
802 (
803 bool show
804 );
808 public: bool ShowHeader
809 (
810 );
814 public: void SetShowHeader
815 (
816 bool show
817 );
822 (
823 );
828 (
829 bool show
830 );
834 public: bool ShowToolTips
835 (
836 );
840 public: void SetShowToolTips
841 (
842 bool show
843 );
847 public: bool SortRootNodes
848 (
849 );
853 public: void SetSortRootNodes
854 (
855 bool sort
856 );
860 public: bool CanStretchWidth
861 (
862 );
867 (
868 bool stretchWidth
869 );
873 public: int Width
874 (
875 );
879 public: void SetWidth
880 (
881 int width
882 );
886 public: int MaximumWidth
887 (
888 );
892 public: void SetMaximumWidth
893 (
894 int maxWidth
895 );
899 public: int MinimumWidth
900 (
901 );
905 public: void SetMinimumWidth
906 (
907 int minWidth
908 );
912 public: void TestNodeInserted
913 (
914 NXOpen::BlockStyler::Node * newNode ,
915 NXOpen::BlockStyler::Node * parentNode ,
916 NXOpen::BlockStyler::Node * afterNode ,
918 );
922 public: void TestNodeSelected
923 (
925 bool isSelect ,
926 bool isOtherNodeAffected
927 );
931 public: void TestNodeDeleted
932 (
934 );
938 public: void TestColumnSort
939 (
940 int columnID ,
944 );
948 public: void TestNodeExpanded
949 (
952 );
956 public: void TestDefaultAction
957 (
959 int columnID
960 );
964 public: void TestContextMenu
965 (
967 int columnID
968 );
972 public: void TestMenuAction
973 (
975 int command
976 );
980 public: void TestDropMenu
981 (
983 int columnID ,
984 NXOpen::BlockStyler::Node * targetNode ,
985 int targetColumnID
986 );
990 public: void TestNodeDrop
991 (
993 int columnID ,
994 NXOpen::BlockStyler::Node * targetNode ,
995 int targetColumnID ,
996 int command
997 );
1002 (
1003 int columnID ,
1004 const NXString & columnTitle ,
1005 int columnWidth
1006 );
1011 (
1012 int columnID ,
1013 const char * columnTitle ,
1014 int columnWidth
1015 );
1020 (
1022 int columnID
1023 );
1027 public: void TestStateChanged
1028 (
1030 int state
1031 );
1035 public: void TestLabelEdit
1036 (
1038 int columnID ,
1039 const NXString & editedText
1040 );
1045 (
1047 int columnID ,
1048 const char * editedText
1049 );
1050};
1051 }
1052}
1053#ifdef _MSC_VER
1054#pragma warning(pop)
1055#endif
1056#ifdef __GNUC__
1057#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1058#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1059#endif
1060#endif
1061#undef EXPORTLIBRARY