A kind of auxiliary information display panel system of desktop systemTechnical field
The present invention relates to display panel field, and in particular to a kind of auxiliary information display panel system of desktop system.
Background technology
In existing application software, application software can typically take whole screen, and after calling, the interface of the software can be shownShow in the top, block the interface of other software.
For the software itself, a part of region at interface does not utilize, and wastes interface resources.For another software,When we largely obtain information from another software will frequent switching interface, operating efficiency is not only reduced, when also wastingBetween and energy.
The content of the invention
To solve the above problems, the invention provides a kind of auxiliary information display panel system of desktop system, improveInterface utilization rate, realize information resources and arrange and remember, facilitate user to check, and it is cross-platform.
To achieve the above object, the technical scheme taken of the present invention is:
A kind of auxiliary information display panel system of desktop system, including:
Display module, for providing the user the display panel of a top set, display panel receives user and creates instruction, rootAccording to the form of file, dynamic creation it is different can be by the customized component of user management, size capable of automatic changing;Display panelIt is provided with and is used to receive the edit box that user edits information, user can be facilitated to record some information at any time, and user can selectSelect and whether be saved in file, after the preservation order for receiving user, by the content storage on display panel to file;Receive userOpening order after, by a display panel add " preservations " order stored by file in content;
Control module, initial analysis is carried out to event, by the data type delivery of return to document processing module, and thisEvent forwarding further analyzes and processes to event processing module;
Event processing module, comprising multiple event handling functions, source is done for receiving specific event, and to eventReason, it is necessary to carry out dynamic creation component in this module, and is moved to suitable position by component;
Document processing module, for the result according to event processing module, different functions is called to open file,And file content is returned, returned content is passed into control module, this module, which also has, preserves function, for by current interfaceHold and be saved in former form under identical file folder.
Described display panel is suspension forms, and the transparency of this suspension forms can change, and user can freely changeBecome interface size;
User, which creates instruction, to be included:Mouse drag, duplication, shearing, stickup.
The customized component of the dynamic creation creates according to following file type respectively:It is pure words, text, unrealLamp piece file, pdf document, picture file, video file.
Above-mentioned dynamic creation component includes:
User sends request to create on a display panel, analyzes the type of command context, according to data type dynamic creationOne component, user are managed to component and (mobile, deletion, preserved).
Above-mentioned editor's information includes:
System is supplied to user one to have the display panel of edit box, user can enter in edit box edlin (including:Input, pull, shear, replicating, pasting).The content of edit box can be saved in file.
The menu of described dynamic assembly includes publicly-owned menu and privately owned menu.
Described storage includes:Editor's information is stored and the content of the component to being created stores.
Publicly-owned menu includes:Interface size, delete, exit.
Privately owned menu is respectively:
TXT files:Editor;
PPT files, there are page up, lower one page;
Pdf document, there are page up, lower one page;
Picture file:There are scaling, rotation;
Video file:There are broadcasting, pause, and progress bar incidental component.
The file of different-format is shown on sub-panel with different components when adding content.
Initial analysis refers to which kind of type is the data in analysis event be, such as:Pure words, picture, text, magic lanternPiece, PDF, video, hyperlink.Gone to call document processing module according to the result of event processing module, and by returned contentPass to display module.
The invention has the advantages that:
Interface utilization rate is improved, information resources is realized and arranges and remember, facilitate user to check, and it is cross-platform.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the auxiliary information display panel system of desktop system of the embodiment of the present invention.
Fig. 2 is the algorithm pattern of the judgement data type of the embodiment of the present invention.
Fig. 3 is a kind of flow chart of document processing module of the embodiment of the present invention.
Fig. 4 is the event handling block diagram of the embodiment of the present invention.
Fig. 5 is user's process for using figure of the embodiment of the present invention.
Fig. 6 is the Machine Design application schematic diagram of the embodiment of the present invention.
Embodiment
In order that objects and advantages of the present invention are more clearly understood, the present invention is carried out with reference to embodiments furtherDescribe in detail.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit this hairIt is bright.
As shown in figure 1, the embodiments of the invention provide a kind of auxiliary information display panel system of desktop system, including
Display module M1, for providing the user the display panel of a top set, display panel receives user and creates instruction,According to the form of file, dynamic creation it is different can be by the customized component of user management, size capable of automatic changing;Display surfacePlate, which is provided with, to be used to receive the edit box that user edits information, and user can be facilitated to record some information at any time, and user can be withChoose whether to be saved in file, after the preservation order for receiving user, by the content storage on display panel to file;Receive useAfter the opening order at family, the content in the file stored by " preservation " order is added on a display panel;
Control module M2, initial analysis is carried out to event, by the data type delivery of return to document processing module, and handleThe event forwarding further analyzes and processes to event processing module;
Event processing module M3, comprising multiple event handling functions, source is done for receiving specific event, and to eventReason, it is necessary to carry out dynamic creation component in this module, and is moved to suitable position by component;
Document processing module M4, for the result according to event processing module, different functions is called to open textPart, and return to file content, returned content is passed into control module, this module, which also has, preserves function, for by current interfaceContent with former form be saved in identical file folder under.
Display module M1, it is necessary first to window is initialized, including setting initial size, mouse drag is received, ifDemarcation face size, add text edit box and addition menu etc..Text edit box is added, to facilitate user to record at any timeInformation, and user can choose whether to be saved in file.
Above-mentioned setting interface size, the method being combined using adjust automatically and Manual delimitation.Interface is with user's establishment groupThe content of part changes size automatically, and user can also set interface size.It is user-friendly and saves interface resources.
Preferably, menu can be placed in right button menu, to save interface resources.
Control module M2, initial analysis is carried out to event, by the data type delivery of return to document processing module, and handleThe event forwarding further analyzes and processes to event processing module.
Above-mentioned initial analysis refers to which kind of type is the data in analysis event be, such as:Pure words, picture, text,Lantern slide, PDF, video, hyperlink.Gone to call document processing module according to the result of event processing module, and will returnedContent passes to display module.
Event processing module M3, comprising multiple event handling functions, they only receive specific event, and event is madeProcessing., it is necessary to carry out dynamic creation component in this module, and component is moved to suitable position.
Above-mentioned " dynamic creation ", the type for referring to be returned according to control module call the different components that different functions create.For TXT files, component needs to use edit box, by text importing in edit box, the function such as has duplication, clip and paste, paste;ForPPT files, it is necessary to function menu have page up, lower one page;To pdf document, it is necessary to function menu have page up, nextPage;For picture, it is necessary to specific function menu have scaling, rotation;For video, it is necessary to specific function menu have broadcasting,Pause, and progress bar incidental component;For pure words and hyperlink, it is necessary to there is publicly-owned menu.Different components will have differentFunction needs the self-defining right-clickmenu and Custom component for possessing oneself.Also needed to after the completion of establishment according to create dynamicThe size of component adjusts interface size.By the component created be added in assembly management tree so as to follow-up management (it is mobile,Delete, preserve).
Said modules management tree its be substantially publicly-owned menu in menu.Menu is and the menu for managing dynamic assemblyIt is divided into publicly-owned menu and privately owned menu.Privately owned menu is the Custom component of component oneself.
Publicly-owned menu:Mobile, deletion, preserve.
Privately owned menu:
Text:Editor;
Slide file, pdf document:Page turning;
Picture:Scaling, rotation;
Video:Broadcasting, pause and progress bar incidental component.
Above-mentioned " suitable position ", it is the big of the size of the component created and component stored in assembly management treeIt is small to compare, find a sizeable white space and add created component.
Document processing module M4:According to the result of event processing module, different functions is called to open file.AndReturn to file content.Returned content is passed into control module.In addition, this module, which also has, preserves function, i.e., by current interfaceContent is saved under identical file folder with former form.
It is illustrated in figure 2 the algorithm for judging data type.Control module receives user and creates instruction and data therein.
Above-mentioned user creates instruction, refers to that user can be sent user by mouse drag, stickup, sectional drawing and create instruction.
Step 101 reads character string therein, and lteral data type is returned if the character string is not for sky.Otherwise continue.
Step 102 reads metadata, and metadata is changed into path address form.Metadata is stored in the form of addressInto an address character string.
Following steps are only to open file, are not read.If opened successfully, illustrate it is this document type.
Step 103 opens text, the returned text file data type if opening successfully.Otherwise continue.
Step 104 opens lantern slide, and PPT data types are returned if opening successfully.Otherwise continue.
Step 105 opens picture, and picture data type is returned if opening successfully.Otherwise continue.
Step 106 opens PDF, and PDF data types are returned if opening successfully.Otherwise continue.
Step 107 opens video, and video data type is returned if opening successfully.Otherwise continue.
Step 107 opens hyperlink, and hyperlink type is returned if opening successfully.Otherwise continue.
Document processing module flow chart as shown in Figure 3.
The result of event processing module can call document processing module, and using data type and address character string asParameter passes to document processing module.In document processing module, different functions is called according to data type, opens address wordThe file that symbol string points to.If successfully opening file, data therein are read, the data read are then returned into control mouldBlock.
Event handling block diagram is illustrated in figure 4, user sends establishment instruction by mouse drag, stickup, sectional drawing, triggers thingPart.Institute's trigger event can be divided into 201 mouse events and 202 system events.For example mouse drag is mouse event;Paste, sectional drawingFor system event.
203 driving layers:Driving layer directly communicates with mouse event.
204 system layers:System layer communicates with driving layer and system event simultaneously.
205 Event Communication Modules:Communication control module is the communication port of system layer and control module.
206 control modules:Control module carries out dynamic creation component and processing file by the communication with system layer.
Embodiment
By taking video as an example, with reference to concrete application scene, the embodiment of the present invention is explained.
User's process for using as shown in Figure 5 includes:S1 shows suspension interface to user;S2 receives user and creates instructionAfterwards, the type of analysis request content;S3 is according to the type dynamic creation component of content;S4 user component is managed (it is mobile,Delete, preserve).
S1, to user show suspension interface.
Interface property:On stream, by interface top set and size can be limited, and interface is received mouseDrag content, add menu bar, toolbar (to save space, toolbar can be not added with).
Button:Multiple function buttons are set, and each button realizes different control functions by forms, such as:Realizing shouldWith the minimum of software, closing, dragging window function.
Preferably, menu bar is not added with, sets and double-clicks the minimum that child form realizes application software.Interface size, which is set, to be usedThe method that adjust automatically and Manual delimitation are combined.The content that interface creates component with user changes size automatically, and user also may be usedSet interface size.In order that interface is as compact as possible, more interface display resources are saved, various menus can be all placed onIn right button menu.Such as:Interface size is set.
S2, receive user create instruction after, the type of analysis request content.Described request can have the pure text of additionWord, addition text, lantern slide, PDF, addition picture, sectional drawing, addition video simultaneously play, hyperlink.After receiving request,The affiliated type of the background analysis request, and obtained type is spread out of.
S3, the type dynamic creation component according to content.The type obtained according to analysis, a dynamic assembly is created, andIt is added in assembly management tree so as to follow-up management (mobile, deletion, preserving).Different components will have different functions just to needPossess exclusive the right button menu and incidental component of oneself, for example video, its component there can be the dishes such as broadcasting, pause, F.F.It is single, and the incidental component such as progress bar, and pure words and hyperlink need to have mobile, deletion, preserve menu.
S4, user are managed to component and (delete, preserve).Numerous components is moved by assembly management tree,Delete, preserve operation.All component can be preserved in certain sequence for assembly management tree, can when needing to operate componentVery easily to search.
Machine Design application schematic diagram as shown in Figure 5 is the application example by taking SolidWorks application software as an example.In this application example, a width machine drawing is dragged in display interface with mouse.User is thus eliminated in SolidWorks and figureThe trouble toggled between piece.It is white space to have subregion in SolidWorks editing area, and user will can showInterface is sized, and is then placed on white space.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the artFor member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also shouldIt is considered as protection scope of the present invention.