CN106527873B - A kind of man-machine interactive interface method for customizing based on xml - Google Patents

A kind of man-machine interactive interface method for customizing based on xml Download PDF

Info

Publication number
CN106527873B
CN106527873B CN201610883220.2A CN201610883220A CN106527873B CN 106527873 B CN106527873 B CN 106527873B CN 201610883220 A CN201610883220 A CN 201610883220A CN 106527873 B CN106527873 B CN 106527873B
Authority
CN
China
Prior art keywords
menu item
pel
click
man
click menu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610883220.2A
Other languages
Chinese (zh)
Other versions
CN106527873A (en
Inventor
党睿
杨世江
黄耀德
王海宾
赵一衡
吴丽丽
冯飞
张修华
李论涛
刘芷合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Energy Engineering Group Xinjiang Electric Power Design Institute Co ltd
Shandong Luruan Digital Technology Co ltd Smart Energy Branch
Original Assignee
Co Ltd Of Chinese Energy Construction Group Xinjiang Electric Power Design Inst Wang Dazhi
State Grid Corp of China SGCC
Shandong Luneng Intelligence Technology Co Ltd
Economic and Technological Research Institute of State Grid Xinjiang Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Co Ltd Of Chinese Energy Construction Group Xinjiang Electric Power Design Inst Wang Dazhi, State Grid Corp of China SGCC, Shandong Luneng Intelligence Technology Co Ltd, Economic and Technological Research Institute of State Grid Xinjiang Electric Power Co Ltd filed Critical Co Ltd Of Chinese Energy Construction Group Xinjiang Electric Power Design Inst Wang Dazhi
Priority to CN201610883220.2A priority Critical patent/CN106527873B/en
Publication of CN106527873A publication Critical patent/CN106527873A/en
Application granted granted Critical
Publication of CN106527873B publication Critical patent/CN106527873B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Abstract

The invention discloses a kind of man-machine interactive interface method for customizing based on xml, the treatment process of right-click menu item is described due to specifically including that using right-click menu treatment process plug-in unit class, use xml document as the storage medium of information, it is then using marks such as primitive types, the titles of right-click menu processing plug-in unit that the treatment process of pel and its corresponding menu item and menu item is corresponding;So as to overcome in the prior art man-machine interactive interface fix, only meet current demand, and, specific pel and man-machine interactive interface are bound, can not flexible configuration defect, realize that newly-built pel is simplified, the modification of pel appearance is convenient, and realizes the advantages of primitive attribute facilitates extension.

Description

A kind of man-machine interactive interface method for customizing based on xml
Technical field
The present invention relates to man-machine interface custom technology fields, and in particular, to a kind of man-machine interactive interface based on xml is fixed Method processed.
Background technique
Man-machine interface is in addition to also providing the function of interacting with user, usually with right-click menu other than user's output information Mode realizes the corresponding personal-machine interactive interface of a menu item.
Prior art man-machine interactive interface is fixed, and only meets current demand, also, specific pel is tied up with man-machine interactive interface It is fixed, it can not flexible configuration.
Summary of the invention
It is an object of the present invention in view of the above-mentioned problems, propose a kind of man-machine interactive interface method for customizing based on xml, With overcome in the prior art specific pel and man-machine interactive interface bind, can not flexible configuration defect so that newly-built pel letter Dan Hua, the modification of pel appearance is convenient, and realizes the advantages of primitive attribute facilitates extension.
To achieve the above object, the technical solution adopted by the present invention is that: a kind of man-machine interactive interface customization side based on xml Method specifically includes that
Step 1: newly-increased menu item treatment process plug-in unit so that each menu item corresponds to a plug-in unit, for main program plus It carries and calls;
Step 2: increase newly-increased menu item proxy class in menu item management module, describes the display form of right-click menu, and The trigger signal of menu is associated with treatment process, and newly-increased menu item type itself is registered to list of menu;
Step 3: editing the configuration file of XML format, primitive types and right-click menu are corresponding, and corresponding relationship is one Primitive types are to multiple right-click menus;
Step 4: opening man-machine interface program, loading configuration file information, parses pel and the corresponding of right-click menu item is closed System is that each type of pel creates corresponding right-click menu in configuration file;
Step 5: clicking pel by right key, show corresponding right-click menu item, right-click menu item, triggering menu item processing Process, finishing man-machine interaction;
Further, the corresponding relationship of the pel and right-click menu item is stored in memory in the form of a list.
It further, further include pel and right-click menu item step being unbinded, if not showing the right side specially in the step 5 Key menu item then deletes the corresponding relationship of pel and right-click menu item in configuration file.
A kind of man-machine interactive interface method for customizing based on xml of various embodiments of the present invention, due to specifically including that using right The treatment process of right-click menu item is described in key menu treatment process plug-in unit class, uses xml document depositing as information Storage media, then using primitive types, the mark such as title of right-click menu processing plug-in unit by pel and its corresponding menu item with And the treatment process of menu item is corresponding;So as to overcome in the prior art man-machine interactive interface fix, only meet current need Ask, also, specific pel and man-machine interactive interface are bound, can not flexible configuration defect, realize that newly-built pel is simplified, pel Appearance modification is convenient, and realizes the advantages of primitive attribute facilitates extension.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of principle flow chart of the man-machine interactive interface method for customizing based on xml of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Specifically, a kind of man-machine interactive interface method for customizing based on xml, specifically includes that
Step 1: newly-increased menu item treatment process plug-in unit so that each menu item corresponds to a plug-in unit, for main program plus It carries and calls;
Step 2: increase newly-increased menu item proxy class in menu item management module, describes the display form of right-click menu, and The trigger signal of menu is associated with treatment process, and newly-increased menu item type itself is registered to list of menu;
Step 3: editing the configuration file of XML format, primitive types and right-click menu are corresponding, and corresponding relationship is one Primitive types are to multiple right-click menus;
Step 4: opening man-machine interface program, loading configuration file information, parses pel and the corresponding of right-click menu item is closed System is that each type of pel creates corresponding right-click menu in configuration file;
Step 5: clicking pel by right key, show corresponding right-click menu item, right-click menu item, triggering menu item processing Process, finishing man-machine interaction;
The corresponding relationship of the pel and right-click menu item is stored in memory in the form of a list.
It further include unbinding pel and right-click menu item step in the step 5, if not showing right-click menu item specially, Then the corresponding relationship of pel and right-click menu item is deleted in configuration file.
The treatment process of right-click menu item is described using right-click menu treatment process plug-in unit class, uses xml text Then storage medium of the part as information is identified using primitive types, title of right-click menu processing plug-in unit etc. by pel and its The treatment process of corresponding menu item and menu item is corresponding.In this way, not needing to modify man-machine if to increase an interface Interface source program, it is thus only necessary to increase a plug-in unit class, then be bound menu item and pel in configuration file. In addition, the binding and unbundlings to the corresponding right-click menu of pel are also very flexibly, it is only necessary to modify pel class in configuration file Type and corresponding list of menu.
Newly-increased right-click menu item
1. newly-increased menu item handles class plug-in unit, the corresponding plug-in unit of each menu item is loaded for main program and is called.
2. when program is run, proxy class is registered to dish automatically menu management module increases a menu item proxy class Individual event list of proxies, menu item keyword can be used for being correspondingly arranged for menu item and pel pel.
3. increasing the corresponding relationship of right-click menu keyword and primitive types in right-click menu configuration file.
4. loading the corresponding relationship of primitive types and right-click menu item when main program starts, from configuration file with list Form is stored in memory, and when pel is clicked by right key, program finds the corresponding right-click menu item of primitive types in lists And show, when some menu item is clicked, menu item treatment process will be triggered, to reach the mesh of human-computer interaction 's.
Unbind pel and right-click menu
If it is desired to some right-click menu item of pel is allowed not show, corresponding record is deleted in configuration file .The present invention is further described in detail with the human-computer interaction interface of distant control function below.
By taking distant control function as an example, the process that increase by a personal-machine interactive interface is gradually introduced.
One, increase remote control process and handle plug-in unit
For remote control process plug-in unit Similar integral from interface class IBaseCmdProcessor, the interface specifically provided is as follows:
IBaseCmdProcessor
CYkCmdProcessor
The wherein parameter of following four interface main program transmitting
void setIce(Ice::CommunicatorPtr pIce);
void setParam(const stDevParam& param);
void setObjectFullName(const QString&);
void setLogUser(const Power::OperatorInfo &info,const QString& sUserInfo);
QDialog * GetDialog();Interface returns to the processing window (not being described in detail) when right-click menu item is clicked.
Two, increase right-click menu class in right-click menu management module, describe the form of right-click menu, and by right-click menu Click signal and treatment process are bound.
Remote control right-click menu Similar integral is specific as follows from base class CBaseCmdAction:
It is remotely controlled menu class
The click signal of menu item QAction is associated with process slot function in remote control menu class, then again Remote processing process plug-in unit is loaded in process function, and calls relevant interface
It is remotely controlled menu item and is registered to list of menu by macro:
What typename function returned is the type of right-click menu, and the type for being remotely controlled right-click menu is " yk "
Three, configuration file
Configuration file is the file of xml format, and content is the corresponding relationship of primitive types and right-click menu type
A popmenu element is a pel and its corresponding right-click menu list in file.Wherein " setstate ", " yk " are the types of right-click menu.
Loading configuration file content when main program starts
The content of main program Loading Menu configuration file, right-click menu item is instantiated, and presses primitive types classification storage. In this way when right button clicks pel, corresponding right-click menu list is indexed according to primitive types, is shown in man-machine interface. When the user clicks when right-click menu item, corresponding slot function can be triggered, corresponding treatment process is called.
It at least can achieve following the utility model has the advantages that newly-built pel does not need to modify original program;The modification of pel appearance is convenient; Primitive attribute facilitates extension.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention, Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention Within protection scope.

Claims (3)

1. a kind of man-machine interactive interface method for customizing based on xml, it is characterised in that the following steps are included:
Step 1: newly-increased menu item treatment process plug-in unit is loaded for main program and is adjusted so that each menu item corresponds to a plug-in unit With;
Step 2: increasing newly-increased menu item proxy class in menu item management module, describe the display form of right-click menu, and by dish Single trigger signal is associated with treatment process, and newly-increased menu item type itself is registered to list of menu;
Step 3: editing the configuration file of XML format, primitive types and right-click menu are corresponding, and corresponding relationship is a pel Type corresponds to multiple right-click menus;
Step 4: opening man-machine interface program, loading configuration file information parses the corresponding relationship of pel and right-click menu item, is Each type of pel creates corresponding right-click menu in configuration file;
Step 5: it clicks pel by right key, shows that corresponding right-click menu item, right-click menu item trigger corresponding slot function, To call menu item treatment process, finishing man-machine interaction.
2. the man-machine interactive interface method for customizing according to claim 1 based on xml, which is characterized in that in step 4, institute The corresponding relationship for stating pel and right-click menu item is stored in memory in the form of a list.
3. the man-machine interactive interface method for customizing according to claim 2 based on xml, which is characterized in that in the step 5 It further include pel and right-click menu item step being unbinded, if not showing right-click menu item specially, by pel in configuration file It is deleted with the corresponding relationship of right-click menu item.
CN201610883220.2A 2016-10-10 2016-10-10 A kind of man-machine interactive interface method for customizing based on xml Active CN106527873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610883220.2A CN106527873B (en) 2016-10-10 2016-10-10 A kind of man-machine interactive interface method for customizing based on xml

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610883220.2A CN106527873B (en) 2016-10-10 2016-10-10 A kind of man-machine interactive interface method for customizing based on xml

Publications (2)

Publication Number Publication Date
CN106527873A CN106527873A (en) 2017-03-22
CN106527873B true CN106527873B (en) 2019-11-08

Family

ID=58331295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610883220.2A Active CN106527873B (en) 2016-10-10 2016-10-10 A kind of man-machine interactive interface method for customizing based on xml

Country Status (1)

Country Link
CN (1) CN106527873B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399188B (en) * 2018-01-19 2023-04-07 北京天耀宏图科技有限公司 Universal establishing and processing method for strong service object based on type metadata
CN110795024B (en) * 2019-10-12 2021-03-26 北京四方继保自动化股份有限公司 Protection equipment universal man-machine interaction system and method based on XML
CN116010015B (en) * 2023-03-27 2023-07-11 西安热工研究院有限公司 Method, device, equipment and storage medium for generating right key menu of monitoring picture

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060050715A (en) * 2004-08-26 2006-05-19 하만 베커 오토모티브 시스템즈 게엠베하 Car multimedia apparatus and method for controlling the display of hierarchically structured menus
CN102868717A (en) * 2011-07-08 2013-01-09 华为软件技术有限公司 Method, device and system for editing and debugging voice extensible markup language script
CN103425468A (en) * 2012-05-17 2013-12-04 航天信息股份有限公司 Method and device for integrating plug-in type software
CN104240148A (en) * 2014-08-28 2014-12-24 国家电网公司 Power grid visualization method based on plugins

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060050715A (en) * 2004-08-26 2006-05-19 하만 베커 오토모티브 시스템즈 게엠베하 Car multimedia apparatus and method for controlling the display of hierarchically structured menus
CN102868717A (en) * 2011-07-08 2013-01-09 华为软件技术有限公司 Method, device and system for editing and debugging voice extensible markup language script
CN103425468A (en) * 2012-05-17 2013-12-04 航天信息股份有限公司 Method and device for integrating plug-in type software
CN104240148A (en) * 2014-08-28 2014-12-24 国家电网公司 Power grid visualization method based on plugins

Also Published As

Publication number Publication date
CN106527873A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN104050621B (en) Electronic equipment and method for image procossing
CN103377051B (en) A kind of application interface customizing method based on android system
KR102248160B1 (en) Managing audio at the tab level for user notification and control
US9654589B2 (en) Configurable personal audiovisual device for use in application-sharing system
CN106527873B (en) A kind of man-machine interactive interface method for customizing based on xml
CN103222274B (en) Network browsing method and the image display using it
CN107113469A (en) System, digital device and its control method of control device
DE202016107435U1 (en) Systems for notifying users of changes to files in cloud-based file storage systems
CN104636139A (en) Visualized cross-platform mobile application development and generation system
TW200945173A (en) Extensible and application-adaptable toolbar for web services
WO2008025017A2 (en) Configurable personal audiovisual device for use in networked application-sharing system
CN110321183B (en) Configuration system and method for UI (user interface) of public component
US20170131688A1 (en) Adaptive control and management for electronic device
CN102637127B (en) Method for controlling mouse modules and electronic device
US20180376209A1 (en) Video player framework for a media distribution and management platform
CN102355529A (en) Method for unified display of short message and mail and device and mobile terminal
US8379031B2 (en) Image data management apparatus, image data management method, computer-readable storage medium
US9531769B2 (en) Methods and system for sharing gadgets between users
CN108304234A (en) A kind of page display method and device
CN103517149A (en) Homepage design method of smart television based on android platform
KR102238534B1 (en) Digital device and method of processing a screen saver thereof
CN103019727B (en) The treatment process of desktop wallpaper and device
CN103914286B (en) Management method and manager for tab page in user interface
CN110232173A (en) List configuration method and its system based on configurableization list engine
CN102135878A (en) Head portrait setting method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 830000 No. 123, Jianshe Road, Tianshan District, the Xinjiang Uygur Autonomous Region, Urumqi

Co-patentee after: State Grid Co., Ltd.

Patentee after: State Grid Xinjiang Electric Power Co., Ltd. economic and Technical Research Institute

Co-patentee after: National Network Intelligent Technology Co., Ltd.

Co-patentee after: Co., Ltd of Chinese energy construction group Xinjiang Electric Power Design Inst. Wang Dazhi

Address before: 830000 No. 123, Jianshe Road, Tianshan District, the Xinjiang Uygur Autonomous Region, Urumqi

Co-patentee before: State Grid Corporation

Patentee before: ECONOMIC TECHNOLOGY RESEARCH INSTITUTE, STATE GRID XINJIANG ELECTRIC POWER CO., LTD.

Co-patentee before: Shandong Luneng Intelligent Technology Co., Ltd.

Co-patentee before: Co., Ltd of Chinese energy construction group Xinjiang Electric Power Design Inst. Wang Dazhi

TR01 Transfer of patent right

Effective date of registration: 20201112

Address after: 250101 Electric Power Intelligent Robot Production Project 101 in Jinan City, Shandong Province, South of Feiyue Avenue and East of No. 26 Road (ICT Industrial Park)

Patentee after: National Network Intelligent Technology Co.,Ltd.

Patentee after: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

Address before: 830000 No. 123, Jianshe Road, Tianshan District, the Xinjiang Uygur Autonomous Region, Urumqi

Patentee before: STATE GRID XINJIANG ELECTRIC POWER CO., LTD. ECONOMIC TECHNOLOGY Research Institute

Patentee before: STATE GRID CORPORATION OF CHINA

Patentee before: National Network Intelligent Technology Co.,Ltd.

Patentee before: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210223

Address after: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee after: Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch

Patentee after: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

Address before: 250101 power intelligent robot production project 101 south of Feiyue Avenue and east of No.26 Road (in ICT Industrial Park) in Suncun District of Gaoxin, Jinan City, Shandong Province

Patentee before: National Network Intelligent Technology Co.,Ltd.

Patentee before: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee after: Shandong luruan Digital Technology Co.,Ltd. smart energy branch

Patentee after: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

Address before: Room 902, 9 / F, block B, Yinhe building, 2008 Xinluo street, hi tech Zone, Jinan City, Shandong Province

Patentee before: Shandong Luneng Software Technology Co.,Ltd. intelligent electrical branch

Patentee before: CHINA ENERGY ENGINEERING GROUP XINJIANG ELECTRIC POWER DESIGN INSTITUTE Co.,Ltd.

CP01 Change in the name or title of a patent holder