CN104537221A - Window management method and system - Google Patents

Window management method and system Download PDF

Info

Publication number
CN104537221A
CN104537221A CN201410795250.9A CN201410795250A CN104537221A CN 104537221 A CN104537221 A CN 104537221A CN 201410795250 A CN201410795250 A CN 201410795250A CN 104537221 A CN104537221 A CN 104537221A
Authority
CN
China
Prior art keywords
subwindow
independent
admin table
work area
window
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.)
Granted
Application number
CN201410795250.9A
Other languages
Chinese (zh)
Other versions
CN104537221B (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.)
BGP Inc
Original Assignee
BGP Inc
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 BGP Inc filed Critical BGP Inc
Priority to CN201410795250.9A priority Critical patent/CN104537221B/en
Publication of CN104537221A publication Critical patent/CN104537221A/en
Application granted granted Critical
Publication of CN104537221B publication Critical patent/CN104537221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a window management method and system. The method includes the following steps that S1, work area data are selected in a main window to establish a main and child window management table; S2, change of the position of a common child window is monitored, and when it is monitored that the common child window is dragged out of the main window to form an independent child window, whether an independent child window management table having the same work area global identifier as the main window to which the common child window belongs exists or not is inquired; S3, when the inquiry result indicates that the independent child window management table exists, an independent child window record is added to the independent child window management table, and otherwise an independent child window management table corresponding to the main window is established; S4, the independent child window has access to the work area data on the basis of the work area global identifier in the independent child window management table. Through the window management method and system, the flexibility of the child window display position can be improved, and management and communication among different windows can be achieved.

Description

A kind of window management method and system
Technical field
The application belongs to oil seismic exploration technical field of data processing, particularly relates to a kind of window management method and system.
Background technology
In oil seismic exploration field, after obtaining the geological data gathered, usually need corresponding data handling system to earthquake data analysis and displaying, to study and to contrast the geological information of seismic performance and structural differences etc. further.
In existing earthquake data processing system, different various ways is usually needed to show the geological data in same work area, the geological characteristics showed than the data of different subwindow or convenient working personnel simultaneous observation geological data.Such as, when showing the 3-D data volume of geological data in the main window in a work area, the subwindow of the master line section (being equivalent to a right section visual angle of a three-dimensional square) for display described work area data can be created, one for showing the subwindow of the cross-track section (being equivalent to the section visual angle, a side of a three-dimensional square) of described work area data, one for showing the subwindow of the 3-D data volume block base map (overlooking visual angle for that is equivalent to a three-dimensional square) of described work area data.What these three subwindows showed is the geological data belonging to same work area, mutually there is association and interaction relation under normal circumstances between multiple subwindow.Such as, in above-mentioned three subwindows, the position of described master line section and described cross-track section in described three-dimensional data block base map, can be shown; If when again choosing the position of cross-track on described three-dimensional data block base map, then the subwindow of described display cross-track section can read the data of new cross-track position again, and after system-computed again in the subwindow of cross-track section; Equally, if have chosen the seismic trace of a vertical direction in the subwindow of described master line or cross-track section, then can on described 3D seismic data block base map the corresponding point (a usual seismic trace on 3D seismic data block base map be projected as a point) being presented at the seismic trace that described master line or cross-track are chosen.
Multiple subwindow can be set up under the main window of one group of work area data, the displaying of a certain characteristic of work area data belonging to realizing in prior art.But the window of described subwindow shows that scope limits by the bounds of affiliated main window, need the content of some subwindow to amplify operating personnel, described subwindow is needed to be dragged to outside main window or earthquake data processing system interface, or be dragged on other screens of multi-display curtain, carry out detail characteristic to check, during contrast, can not described subwindow be dragged out away from main window, in the scope causing all subwindows all to control to limit at main window, cause subwindow can drag and drop scope too small, display location underaction, the applied environment demand resistance of multi-screen data disposal system can not be adapted to.In prior art, the subwindow of earthquake data processing system can not by outside hauling-out main window, therefore more need a kind of management method departing from the independent subwindow at main window interface badly, realize main window, unification between common subwindow and independent subwindow, effectively manage.
Summary of the invention
The application's object is to provide a kind of window management method and system, what can expand Data processing subwindow can drag and drop scope, improve the dirigibility of subwindow display location, the applied environment demand adapting to multi-screen data disposal system is convenient, checking separately further or the comparative analysis of multiwindow of convenient working personnel child windows, improves data-handling efficiency.
A kind of window management method that the application provides and system are achieved in that
A kind of window management method, described method comprises:
S1: for the work area data chosen in main window set up main pane admin table; Described main pane admin table comprises work area overall identification and the subwindow overall identification of described work area data;
S2: the change in location of monitoring the common subwindow in described main window; Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, whether inquiry has the independent subwindow admin table with described main window belonging to the common subwindow of hauling out with identical work area overall identification;
S3: be sometimes in the result of described inquiry, adds independent subwindow record to described independent subwindow admin table; Otherwise, set up the independent subwindow admin table corresponding with described main window, and add independent subwindow record in the independent subwindow admin table of described foundation;
Described independent subwindow record comprises described by subwindow overall identification, the work area overall identification of common subwindow of hauling out;
S4: described independent subwindow is based on overall identification access work area, the work area data in described independent subwindow admin table.
Realize a system for window management, described system comprises:
Main pane administration module, sets up main pane admin table for the work area data for choosing in main window; Described main pane admin table comprises work area overall identification and the subwindow overall identification of described work area data;
Data service module, for unified definition and the data model managing work area data, and provides preset access interface;
Monitoring enquiry module, for monitoring the change in location of the common subwindow in the data main window of described work area; Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, inquiry whether have with described belonging to the common subwindow of hauling out main window there is the independent subwindow admin table of identical work area overall identification;
Independent window module, for setting up independent subwindow admin table, also for when the result of described inquiry is for there being a described independent subwindow admin table, adds independent subwindow record to described independent subwindow admin table;
Described independent subwindow record comprises described by subwindow overall identification, the work area overall identification of common subwindow of hauling out;
Communication module, for independent subwindow based on the work area overall identification access work area data in described independent subwindow admin table, also at least one in following:
Independent subwindow finds corresponding main window mark based on the work area overall identification in described independent subwindow table, communicates with described main window;
Main window communicates with described independent subwindow based on the subwindow overall identification in main pane admin table;
Common subwindow communicates with described independent subwindow based on the subwindow overall identification in independent subwindow admin table;
First independent subwindow communicates with the second independent subwindow based on the subwindow mark in described independent subwindow table.
In preferred embodiment, described system can also comprise:
First processing unit, for perform comprise following at least one item:
After increasing independent subwindow record to described independent subwindow record sheet, delete described independent subwindow corresponding subwindow record in described main pane admin table;
Monitor the change in location of described independent subwindow; Be towed back to when to form common subwindow to main window in the position monitoring described independent subwindow, main pane admin table to described main window adds the subwindow record of described independent subwindow, and deletes described independent subwindow at the corresponding independent subwindow record of independent subwindow admin table;
After the work area data chosen in main window set up main pane admin table, detect the independent subwindow that whether there are the work area data chosen; If existed, then the work area overall identification in described independent subwindow table is added in boss's management window table of foundation, as the work area overall identification in described boss's admin table.
A kind of window management method that the application provides and system, can common subwindow realized departing from the window operation pattern of bounds of main window, the mode of main pane admin table and independent subwindow admin table is adopted to manage main window and subwindow in this mode, the exploitation being convenient to application system is integrated, makes the management of main window in application system, common subwindow and independent subwindow more unified, effective.Window management method in the application, both common subwindow still can keep communicating with between former data service system and main window, common subwindow after can have been made to become independent subwindow, can also after main window is closed, independent subwindow be made to keep independence, continue to keep running with corresponding data service system, convenient working personnel process data, improve operating efficiency and convenience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, the accompanying drawing that the following describes is only some embodiments recorded in the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of window management method embodiment that the application provides;
Fig. 2 is a kind of position relationship schematic diagram of the application's independence subwindow and main window;
Fig. 3 is the method flow diagram of another embodiment of a kind of window management method that the application provides;
Fig. 4 is the method flow diagram of another embodiment of a kind of window management method that the application provides;
Fig. 5 is the method flow diagram of another embodiment of a kind of window management method that the application provides;
Fig. 6 is a kind of modular structure schematic diagram realizing the system of window management of the application;
Fig. 7 is a kind of modular structure schematic diagram realizing the another kind of embodiment of the system of window management of the application.
Embodiment
Technical scheme in the application is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present application, technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all should belong to the scope of the application's protection.
In Seismic exploration and development, generally the one group of data that are mutually related belonging to a survey area or a survey acquisition are defined as work area data, comprise survey line, well curve, layer position, seismic trace etc.When to the process of earthquake Data Data, normally to a work area data analysis process.General work area data are a corresponding main window interface when processing.Due to data dimension difference, display section difference etc. that work area data are checked that mode is different, shown, usually under a work area data main window, set up multiple subwindow and carry out analyzing and processing.
The application provides a kind of window management method, can realize subwindow being drawn out main window and become independent subwindow, the analyzing and processing to work area data is realized in described independent window, and still can keep communicating and share same data service system with main window and common subwindow wherein, data transmission, interlock can be carried out easily.Fig. 1 is the method flow diagram of a kind of window management method embodiment that the application provides.As shown in Figure 1, described a kind of window management method can comprise:
S1: for the work area data chosen in main window set up main pane admin table; Described main pane admin table comprises work area overall identification and the subwindow overall identification of described work area data.
Main pane admin table can be created after user opens application start main window in concrete application, a main window of usual startup can corresponding work area data, and the subwindow can opening data a certain characteristic in work area in main window carries out further data analysis and process.The mode of a main pane admin table can be adopted in the present embodiment to manage the data service system of all subwindows under a corresponding work area data main window and access thereof.Described main pane admin table can comprise the subwindow overall identification of the subwindow under the main window of the work area overall identification of described work area data and the corresponding with this work area overall identification of startup.Certainly the data service system mark storing described work area data can also be comprised, described data service system can be the service unit of described work area data, may be used for the data model of unified definition and management work area data, and preset access interface is provided, can be process a certain storage unit in the application of described work area data, the processing unit realizing identical function that also can be other servers or divide out in applying.Can be the data service system setting data service system mark of described storage work area data under normal circumstances, may be used for realizing main window or subwindow to the data access of described data service system.Described main pane admin table can be the data storage cell in window application, or by the functional module realizing boss's admin table function described in the application stored and logic judgment unit is formed.
Following table 1 manages a kind of signal table of form for the main pane provided in the present embodiment.The work area global identifier that one unique is had, for identifying the selected work area data of current main window in following table main pane admin table.The data service system mark that one unique is had in main pane admin table, the data service system that current selected work area data, services is provided can be found by this mark, usual described data service system also can have a unique work area global identifier, can be consistent with the work area global identifier in main pane admin table, thus form corresponding relation.
Table 1 main pane admin table
The main pane admin table of each work area data main window can comprise main window record, the main window mark that may be used for this main window of overall identification is at least comprised in described main window record, like this, subwindow can find main window corresponding to oneself by main pane admin table.Certainly, as shown in table 1, Window state can also be comprised in described main window record, for identifying the current state of main window, such as whether maximize, whether minimize, message interface description, function interface description etc. can also be comprised, may be used for realizing the information interaction with subwindow, such as can call the function interface that main window provides, carry out menu item registration, various operation such as registration audiomonitor etc., concrete such as can realize subwindow by CMDIFrameWnd frame clsss in the class libraries of Microsft Windows and have independently menu, tool bar etc.The description of the message interface involved by other embodiments, function interface description etc. in the present embodiment and in the application are not limited to a certain application design language specifically.
Can comprise in described main window record sheet zero or at least one belong to described main window under subwindow record.It should be noted that, described subwindow record can for producing when being registered in described main window record when opening in described main window or set up subwindow, therefore, if do not open in described main window or set up subwindow, then the subwindow record in described main window record can be zero.The subwindow overall identification of the common subwindow belonged under this main window is at least comprised in described main window record, like this, described main window can find by described main pane admin table the subwindow belonged under described main window, can send message by one or more subwindow wherein.Common subwindow described in the present embodiment can be the subwindow in described main window bounds, if described common subwindow is dragged out outside described main window border, then described common subwindow can become independent subwindow.Described subwindow can comprise common subwindow and independent subwindow.Certainly, as shown in above-mentioned table 1, Window state (whether maximize, whether minimize), window type, message interface description etc. in described subwindow record, can also be comprised.
Adopt the mode of main pane admin table in the application, main window and lower subwindow thereof can carry out information interaction, function call etc. by main pane admin table, can realize the unified management to window, improve the system windows efficiency of management.In concrete one example based on main pane admin table, such as: when namely main window will close, main window sends its closedown of message calls to the whole subwindows in main pane admin table; Oneself subwindow record corresponding in main pane admin table, after oneself has been closed, can be deleted by each subwindow; After main window can wait for that subwindows all in main pane admin table or common subwindow record are all deleted, then close main window, destroy corresponding main pane admin table simultaneously.
S2: the change in location of monitoring the common subwindow in described main window; Be stowed described main window in the position monitoring described common subwindow when forming independent subwindow outward, whether inquiry has the independent subwindow admin table with described main window belonging to the common subwindow that drags with identical work area overall identification.
Subwindow described in the present embodiment can comprise the program by the window class and class analyzing and reconstruct windows, develop the window application formed based on the framework of dynamic base, described subwindow can realize basic closedown, maximizes, minimize, also can realize being dragged to outside main window border, formation can self-existent independent subwindow.Certainly, described independent subwindow also can comprise oneself menu, tool bar, can realize dragging and convergent-divergent.
When traditional boss's forms show, usually want first to obtain a Drawing zone to operating system application, then in Drawing zone, draw out whole forms.Be generally to operating system application Drawing zone in units of main window, subwindow is to affiliated main window application Drawing zone, and the Drawing zone of oneself is distributed to child form by Main form.Like this, child form can carry out freely dragging in the indication range of Main form, but can not leave the indication range of Main form, and when dragging, mouse can not leave Main form limited range; When dragging Main form, child form wherein also can move thereupon.
In order to child form can be allowed to be dragged away from Main form, in the present embodiment, implementation procedure can comprise following two steps: one in Main form, the position of mouse when siding stopping forms are not dragged; Two is the positions being detected mouse when child form drags, once mouse is positioned at the boundary position of Main form and continues child form outwards to drag, then start the changeover program of independent child form: nullify the Drawing zone applied in Main form, a new Drawing zone is obtained to development and Design application (such as windows operating system) application, amendment boss's forms admin table and independent child form admin table, make subwindow can continue maintenance and move to outside Main form boundary position.Such as can heavily loaded CMDIChildWnd class, and heavily loaded multiple message and member function realize the mobile operation of window.
The change in location of all common subwindows in the data main window of described work area can be monitored in the present embodiment, obtain the change in location information of common subwindow.If when described common subwindow is dragged out main window border, described common subwindow departs from described main window becomes independent subwindow, and as shown in Figure 2, Fig. 2 is a kind of position relationship schematic diagram of the application's independence subwindow and main window.The bounds that can to comprise described common subwindow outside described main window and depart from described main window is completely hauled out in the position of the common subwindow described in the application, also the bounds that described common subwindow not exclusively departs from described main window can be comprised, still have the part overlapping with described main window, the independent subwindow of one as described in Figure 2 and main window position relationship schematic diagram.
Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, look into see if there is with described belonging to the common subwindow of hauling out main window there is the independent subwindow admin table of identical work area overall identification.It is described by the independent subwindow of hauling-out main window that described independent subwindow admin table may be used for management, described independent subwindow can be found by the affiliated work area overall identification in the independent subwindow admin table of inquiry oneself original belonging to work area data, and then the main pane admin table of data inquiring about this work area can inquire originally belonging to main window.Overall identification access work area, the work area data that described independent subwindow can provide according to independent subwindow admin table, can carry out Message Transmission or be formed linking with the common subwindow in main window or main window.
Described independent subwindow admin table can be the data storage cell in window application, or by the functional module realizing independent subwindow admin table function described in the application stored and logic judgment unit is formed.
S3: be sometimes in the result of described inquiry, adds independent subwindow record to described independent subwindow admin table; Otherwise, set up the independent subwindow admin table corresponding with described main window, and add independent subwindow record in the independent subwindow admin table of described foundation;
The subwindow overall identification of the common subwindow be stowed described in described independent subwindow record comprises, affiliated work area data work area overall identification.
Following table 2 is the signal tables of a kind of form of independent subwindow admin table that the present embodiment provides:
The independent subwindow admin table of table 2
Monitor common subwindow hauled out main window form independent subwindow outward time, if this main window has had independent subwindow admin table, can by the described described independent subwindow admin table added by the record that the common subwindow of hauling out outside main window form independent subwindow, form an independent subwindow record corresponding with described independent subwindow.The subwindow overall identification of this independent subwindow can be comprised in described independent subwindow record, namely described by the subwindow overall identification of common subwindow of hauling out, can also to comprise described in this access by the common subwindow of hauling out the work area overall identification of work area data and data service system mark.If independent subwindow will communicate with main window, whether the main pane admin table first can inquiring about work area corresponding to the work area overall identification in independent subwindow mark exists, and if there is no, illustrates that main window is closed; If existed, then have main window identifier in main pane admin table, described independent subwindow can inquire the main window mark in main pane admin table, and then communicates.Certainly, when described independent subwindow communicates with common subwindow, also can being the subwindow overall identification by removing to search in main pane admin table common subwindow, then communicating.Like this, can be convenient, efficient when the independent subwindow admin table in above-mentioned and main pane admin table being safeguarded.
It should be noted that, when communicating between different windows, after inquiring main window mark or subwindow overall identification, usually also need to obtain corresponding message interface descriptor.Described message interface descriptor can comprise the description of the information such as agreement, function call realizing communicating between window, does not repeat at this.Work area overall identification in the work area data of described access can be consistent with the work area overall identification identified in data service system, forms corresponding relation.Although the bounds of the main window that described so independent subwindow departs from, but still same data service system can be shared with main window or common subwindow wherein, data transmission, combined operation etc. can be carried out easily.
It should be noted that, when there is independent subwindow, can main window be closed and not affect independent subwindow and normally running.After closing main window, main window mark before just fails.Therefore, in the application between main pane admin table and independent subwindow admin table, be placed through " work area overall identification " to associate.Because work area overall identification represents a certain work area data file called, have more stability.And various window identifier is actually relevant to operating system, that is, all different values may be had during each run.
When using work area overall identification, if independent subwindow wants the main window finding corresponding work area, first can find work area overall identification from independent subwindow admin table, then remove to search the main pane admin table that whether there is corresponding work area by work area overall identification.If there is no, illustrate that main window is closed; If existed, main window mark can be obtained from main pane admin table.
The continuity of whole system and consistance when can guarantee that various window is changed between opening and closing like this.
In this application, for same work area data, for same work area data, when closing main window, the independent subwindow admin table of described main window is there is if described, and independent subwindow record in described independent subwindow admin table is non-vanishing, then corresponding with work area overall identification in described independent subwindow admin table data service system continuous service.Under normal circumstances, if a main window does not have independent subwindow, the independent subwindow in its corresponding described independent subwindow record sheet is recorded as zero, now can destroy the independent subwindow record sheet that this is recorded as zero.But the application does not get rid of and still exists, but the independent subwindow in independent subwindow record sheet is recorded as the situation of zero.
When main window or independent subwindow are closed, main pane admin table or independent subwindow admin table can be checked, then determine whether terminate corresponding data service system.Under normal circumstances, when common subwindow is closed, described inspection, non-end data service system can not be done.If being about to current be closed window is main window, each common subwindow is after oneself has been closed, oneself record corresponding in main pane admin table is deleted, after having closed the common subwindow in main window, then need to check independent subwindow admin table, if the not independent subwindow table of this main window, or the independent subwindow in described independent subwindow table is recorded as zero, then end data service system; If there is the independent subwindow of described main window to exist, then not end data service system.If being closed window current is independent subwindow, then check main pane admin table and independent subwindow admin table, if main window has been closed and has not had other independent subwindows, the independent subwindow in described independent subwindow admin table has been recorded as zero, then can end data service system; Otherwise data service system continues to run.On the one hand, as long as close main window, all common subwindows also will inevitably Close All thereupon; On the other hand, as long as main window exists, even if close all subwindows (comprising common subwindow and independent subwindow), data service system also can continue to run.
As long as there is an existence in main pane admin table, independent subwindow admin table, then the corresponding data service system of these work area data will continuous service, until these two tables are all destroyed.That is, although data service system is run along with the startup of main window, but when main window is closed, as long as there is the independent subwindow of same work area data to exist, then data service system can continue to run, and makes the data access function of independent subwindow can not be subject to the pent impact of main window.
Described independent subwindow admin table can have zero or many independent subwindow records, the corresponding independent subwindow of every bar independence subwindow record, can comprise the subwindow global identifier of independent subwindow, window type, Window state (whether maximize, whether minimize), message interface description.When common subwindow is become independent subwindow by hauling-out from main window, can from main pane admin table by record move corresponding for this subwindow in independent subwindow admin table; Otherwise, when independent subwindow be towed back to main window, again to become common subwindow time, by record corresponding for this subwindow from independent subwindow admin table, can move back in main pane admin table.
S4: described independent subwindow is based on overall identification access work area, the work area data in described independent subwindow admin table.
Described by haul out main window independent main window can based on the work area overall identification access in independent subwindow admin table former in independent window time access work area data, realize the same data service system of shared use with described main window.Meanwhile, described independent subwindow can based on the work area overall identification in described independent subwindow table obtain oneself belong to originally in main window, still can realize communicating with described main window when departing from main window interface.Especially opening the work area data in multiple work area, when there is multiple main window, described independent subwindow can find correct main window mark based on work area overall identification, communicates with main window.
In aforementioned, when common subwindow is become independent subwindow by hauling-out from main window, can increase independent subwindow record in independent subwindow table, the application can provide two kinds of processing modes.Fig. 3 is the method flow schematic diagram of the another kind of embodiment of a kind of window management method described in the application, and as shown in Figure 3, wherein one can for comprising after increasing independent subwindow record to described independent subwindow record sheet:
S5: delete described independent subwindow corresponding subwindow record in described main pane admin table.
When common subwindow in main window is hauled out and is formed independent subwindow outside main window interface, can will delete the subwindow record of its common subwindow corresponding in main pane record sheet of this independent subwindow, like this, described independent subwindow no longer can receive main window and send message by main pane record sheet.Such as, when user closes main window interface, usually the subwindow belonged under this main window is together closed, and adopt in the window management method described in the present embodiment, main window can not comprise described independent subwindow by the close instruction that main pane admin table issues, even if the main window that independent like this subwindow belongs to originally is closed, still independent existence can be kept, the data service system of simultaneously accessing due to described independent subwindow still can continue to keep running, make the data access function of described independent subwindow can not be subject to the pent impact of main window, substantially increase window management, the dirigibility used.
Certainly, in another embodiment, when common subwindow is become independent subwindow by hauling-out from main window, the subwindow record of described independent subwindow in described main pane admin table can not be deleted.Like this, main window can send message by main pane record sheet to independent subwindow.Fig. 4 is the method flow schematic diagram of the another kind of embodiment of a kind of window management method described in the application.The another kind of embodiment of the application is total, and as shown in Figure 4, described method can also comprise:
S6: the message that described independent subwindow reception main window or common subwindow send based on the subwindow overall identification in main pane admin table.
Further, in the another kind of embodiment of the application, the change in location of described independent subwindow can also be monitored, obtain the change in location information of described independent subwindow.Monitor described independent subwindow be towed back to main window, again to become common subwindow time, from independent subwindow admin table, record move corresponding for this independent subwindow can be returned in main pane admin table.Fig. 5 is the method flow schematic diagram of the another kind of embodiment of a kind of window management method described in the application, and as shown in Figure 5, described a kind of window management method can also comprise:
S7: the change in location of monitoring described independent subwindow; Be towed back to when to form common subwindow to main window in the position monitoring described independent subwindow, main pane admin table to described main window adds the subwindow record of described independent subwindow, and deletes described independent subwindow at the corresponding independent subwindow record of independent subwindow admin table.
Usually, described independent subwindow only just can become common subwindow record again being towed back in its main window interface consistent with the work area overall identification recorded in the independence subwindow admin table of place.Can the record of independent subwindow in independent subwindow record sheet be moved in main pane record more like this, now, the subwindow of the independent subwindow added in described main pane record sheet is recorded as the subwindow record that this independent subwindow becomes the common subwindow after common subwindow record again.After the dragging realizing independent subwindow task location can be ensured like this, with the main window still belonging to same work area data before dragging, what still access is same data service system, improves window and drags dirigibility, user is operated convenient, quick.
Data service system described in the application can start after start up system main window selects work area data.In Seismic exploration and development, general definition work area data are one group of data that are mutually related.In the window frame of traditional data processing, each subwindow has separately independently data model, carries out Database Systems access or file system access separately.The work area data of corresponding earthquake Data processing, the data of the display between each subwindow, control and operation are usually there is a large amount of incidence relation each other, and what comprise the access of multiple subwindow in a lot of situation is same table in same file or database.And the difference of data model may just be between each subwindow, by the data in diverse ways extraction document, or by the record in different conditional filtering tables, extract different fields, this just may cause the problem such as repetition buffer memory, resource access conflict.
Adopt a data service system to manage one group of work area data that are mutually related in the application, each data service system indicates a work area global identifier.Data service system defines the complete data model in a work area, and can provide a series of access interface.Each subwindow has oneself data model no longer, and the data model of direct usage data service subsystem and access interface, carry out United Dispatching by data, services subsystem to data access, thus avoid the problems referred to above.
Data service system starts after startup main window selects work area.Data service system arranges corresponding work area overall identification and carries out data initialization.Feature between base area seismic exploration data correlation relation generally mostly exists with the data in same work area, setting a main window same time can only a corresponding work area.When user reselects work area data, if the independent subwindow in not this work area, then reset data, services subsystem, reset corresponding work area overall identification and carry out data initialization; If there is the independent subwindow in this work area to exist, then re-establishes a new data, services subsystem process and associate with main window.When user opens multiple main window, each main window can a corresponding different work area, and each main window can have a data, services subsystem process corresponding with it.
During above-mentioned middle employing main pane admin table or independent subwindow admin table manage the main window of same work area data, independent subwindow, common subwindow, the application can provide the implementation of the Message Transmission between wherein involved window, and concrete can realize according to Programming language or system frame structure.In the present invention, the data volume that the carrying out between subwindow communicates is considered and little, all subwindow is all lower in the frequency of occurrences of paired running, so can adopt asynchronous communication means.According to the difference of transmitted data amount, two kinds of communication modes can be provided: for small amount of data, between subwindow, directly use message mode to communicate; For mass data, data are first submitted to data, services process by transmit leg subwindow, then send message to take over party's subwindow, after take over party's subwindow receives message, according to own situation, select extract data suitable opportunity from data, services process.
In the another kind of embodiment of the application, if choose after work area data set up main pane admin table in main window, the independent subwindow that whether there are the work area data chosen can be detected, if detect the independent subwindow that there are these work area data, then there is this independent subwindow accordingly to independent subwindow admin table, work area overall identification in the independent subwindow table of these work area data can be added in boss's management window table of foundation, as the work area overall identification in described boss's admin table.In this embodiment, the work area overall identification of usual work area data identifies consistent with the data service system in independent subwindow admin table and main pane admin table or there is corresponding relation, the independent subwindow admin table that whether there are the work area data chosen can be inquired by detecting, if existed, then can use the work area overall identification in independent subwindow admin table; Otherwise can create a new data service system, it can be the work area overall identification of described work area data that the work area overall situation of described new data service system is known.
In this application, the communication belonged between the subwindow under same main window mark can comprise:
First subwindow finds the second subwindow needing to carry out communicating in main pane admin table or independent subwindow admin table, obtain the subwindow overall identification of described second subwindow, the ground window overall identification based on described second subwindow sends message to described second subwindow.
Or, in another kind of embodiment,
First subwindow to second subwindow send readjustment message, by described main pane admin table or independent subwindow admin table carry out registering the particular event required in monitoring second subwindow;
When have sent the particular event of described registration in described second subwindow, described second subwindow sends message according to the described type of message registered in main pane admin table or in independent subwindow admin table and customized content to described first subwindow.
Between described subwindow, message communicating can comprise the communication between common subwindow, also can comprise the communication between independent subwindow, also can comprise the communication between independent subwindow and common subwindow.In the application, between subwindow, message communicating is adopted in two ways, does not pass through main window:
(1) active message, subwindow A searches the subwindow B wanting to carry out communicating in main pane admin table or independent subwindow admin table, the message interface obtaining the subwindow overall identification of subwindow B and the B of subwindow describes, and then sends message directly to subwindow B;
(2) adjust back message, subwindow B sends message to subwindow A, by registration, require to monitor a certain event in subwindow A, then, when there occurs this event in subwindow A, subwindow A sends message according to the type of message registered before subwindow B and customized content to subwindow B.Subwindow B also can send message to subwindow A, requires to remove registration.Other window having carried out message registration at this window made regular check on by each readjustment message sender window, by checking main pane admin table and independent subwindow admin table, if certain window having carried out message registration is closed, then window initiatively carries out releasing registration to closing window.Correctly do not carry out when this inspection can avoid certain window to exit removing registration and causing adjusting back the situation that message sender window continues to send message.
When common subwindow becomes independent subwindow, subwindow record is moved to independent subwindow admin table from main pane admin table.If subwindow have registered event or menu item etc. to parent window, then subwindow sends message calls to parent window and removes registration.Because the overall identification of subwindow does not change, so the message communicating between subwindow is not affected.Because the main pane admin table in same work area is consistent with the data, services subsystem identification in independent subwindow admin table, namely share same data, services subsystem, therefore the data access service of subwindow is not affected.
When common subwindow becomes independent subwindow or independent subwindow becomes common subwindow again, just have modified the position of subwindow record, parent window registered events or menu item etc.Between subwindow, the data access service of communication, subwindow is not affected equally.
Main window in the application only goes to manage all common subwindows by main pane admin table, and can not remove to access independent subwindow admin table; Further, when common subwindow becomes independent subwindow, have sent message calls to main window and remove registration.So independent subwindow and main window have departed from incidence relation, can no longer be subject to the management of main window and affect.
The application also provides a kind of system realizing window management, and Fig. 6 is a kind of system realizing window management described in the application, and as shown in Figure 6, described system can comprise:
Main pane administration module 101, the work area data that may be used for for choosing in main window set up main pane admin table; Described main pane admin table comprises storage described work area data work area overall identification and subwindow overall identification;
Data service module 102, may be used for the data model of unified definition and management work area data, and provides preset access interface;
Monitoring enquiry module 103, may be used for the change in location of the common subwindow of monitoring in the data main window of described work area; Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, inquiry whether have with described belonging to the common subwindow of hauling out main window there is the independent subwindow admin table of identical work area overall identification;
Independent window module 104, may be used for setting up independent subwindow admin table, can also be used for, when the result of described inquiry is for there being a described independent subwindow admin table, adding independent subwindow record to described independent subwindow admin table;
Described independent subwindow record comprises described by subwindow overall identification, the work area overall identification of common subwindow of hauling out;
Communication module 105, may be used for independent subwindow based on the data service system identification access work area data in described independent subwindow admin table, can also be used for following at least one:
Independent subwindow finds corresponding main window mark based on the work area overall identification in described independent subwindow table, communicates with described main window;
Main window communicates with described independent subwindow based on the subwindow overall identification in main pane admin table;
Common subwindow communicates with described independent subwindow based on the subwindow overall identification in independent subwindow admin table;
First independent subwindow communicates with the second independent subwindow based on the subwindow mark in described independent subwindow table.
Fig. 7 is a kind of another embodiment realizing the system of window management described in the application, and as shown in Figure 7, described system can also comprise:
First processing unit 106, may be used for performing comprise following at least one item:
After increasing independent subwindow record to described independent subwindow record sheet, delete described independent subwindow corresponding subwindow record in described main pane admin table;
Monitor the change in location of described independent subwindow; Be towed back to when to form common subwindow to main window in the position monitoring described independent subwindow, main pane admin table to described main window adds the subwindow record of described independent subwindow, and deletes described independent subwindow at the corresponding independent subwindow record of independent subwindow admin table;
After the work area data chosen in main window set up main pane admin table, detect the independent subwindow that whether there are the work area data chosen; If existed, then the work area overall identification in described independent subwindow table is added in boss's management window table of foundation, as the work area overall identification in described boss's admin table.
The communication belonged between the subwindow under same main window mark can realize in described communication module 105, and described communication module can comprise:
Registering unit, may be used for the first subwindow and registers the particular event required in monitoring second subwindow in main pane admin table or in independent subwindow admin table;
Message sending unit, may be used for the first subwindow and sends readjustment message to the second subwindow;
Trigger element, may be used for when have sent the particular event of described registration in described second subwindow, sending message according to the described type of message registered in main pane admin table or in independent subwindow admin table and customized content to described first subwindow.
A kind of window management method that the application provides and system, can common subwindow realized departing from the window operation pattern of bounds of main window, the mode of main pane admin table and independent subwindow admin table is adopted to manage main window and subwindow in this mode, the exploitation being convenient to application system is integrated, makes the management of main window in application system, common subwindow and independent subwindow more unified, effective.Window management method described in the application and system, both common subwindow still can keep communicating with between former data service system and main window, common subwindow after can have been made to become independent subwindow, can also after main window is closed, independent subwindow be made to keep independence, continue to keep running with corresponding data service system, convenient working personnel process data, improve operating efficiency and convenience.
Although mention the relevant communication protocol such as the communication between different windows, windows window class in teachings herein, application design and develop the description that language is correlated with and so on, but it must be meet the situation that language standard is designed and developed in the communication transport protocols of specification or application completely that the application is not limited to.Also the scheme of each embodiment of above-mentioned the application can be carried out after the basis of some agreement or class or assembly is revised slightly.Certainly, even if do not adopt above-mentioned general agreement or application and development standard, but adopt proprietary protocol or application development language, as long as meet the information interaction of the application's the various embodiments described above and information judges feedback system, still can realize identical application, not repeat them here.
The unit that above-described embodiment is illustrated or module, specifically can be realized by computer chip or entity, or be realized by the product with certain function.For convenience of description, various module is divided into describe respectively with function when describing above device.Certainly, the function of each module can be realized in same or multiple software and/or hardware when implementing the application, also the module realizing same function can be realized by the combination of multiple submodule or subelement.
Those skilled in the art also know, except realizing except controller in pure computer readable program code mode, controller can be made to realize identical function with the form of logic gate, switch, special IC, programmable logic controller (PLC) and embedding microcontroller etc. by method step being carried out programming in logic completely.Therefore this controller can be considered to a kind of hardware component, and to the structure that also can be considered as the device realizing various function in hardware component that its inside comprises.Or even, the device being used for realizing various function can be considered as not only can be implementation method software module but also can be structure in hardware component.
The application can describe in the general context of computer executable instructions, such as program module.Usually, program module comprises the routine, program, object, assembly, data structure, class etc. that perform particular task or realize particular abstract data type.Also can put into practice the application in a distributed computing environment, in these distributed computing environment, be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium comprising memory device.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, mobile terminal, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this instructions adopts the mode of going forward one by one to describe, between each embodiment same or analogous part mutually see, what each embodiment stressed is the difference with other embodiments.The application can be used in numerous general or special purpose computing system environments or configuration.Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system, set top box, programmable electronic equipment, network PC, small-size computer, mainframe computer, the distributed computing environment comprising above any system or equipment etc. based on microprocessor.
Although depict the application by embodiment, those of ordinary skill in the art know, the application has many distortion and change and do not depart from the spirit of the application, and the claim appended by wishing comprises these distortion and change and do not depart from the spirit of the application.

Claims (10)

1. a window management method, is characterized in that, described method comprises:
S1: for the work area data chosen in main window set up main pane admin table; Described main pane admin table comprises work area overall identification and the subwindow overall identification of described work area data;
S2: the change in location of monitoring the common subwindow in described main window; Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, whether inquiry has the independent subwindow admin table with described main window belonging to the common subwindow of hauling out with identical work area overall identification;
S3: be sometimes in the result of described inquiry, adds independent subwindow record to described independent subwindow admin table; Otherwise, set up the independent subwindow admin table corresponding with described main window, and add independent subwindow record in the independent subwindow admin table of described foundation;
Described independent subwindow record comprises described by subwindow overall identification, the work area overall identification of common subwindow of hauling out;
S4: described independent subwindow is based on overall identification access work area, the work area data in described independent subwindow admin table.
2. a kind of window management method as claimed in claim 1, it is characterized in that, for same work area data, when closing main window, if there is the independent subwindow admin table of described main window, and independent subwindow record in described independent subwindow admin table is non-vanishing, then corresponding with work area overall identification in described independent subwindow table data service system continuous service.
3. a kind of window management method as claimed in claim 1, is characterized in that, also comprises after increasing independent subwindow record to described independent subwindow record sheet:
S5: delete described independent subwindow corresponding subwindow record in described main pane admin table.
4. a kind of window management method as claimed in claim 1, is characterized in that, described method also comprises:
S6: the message that described independent subwindow reception main window or common subwindow send based on the subwindow overall identification in main pane admin table.
5. a kind of window management method as claimed in claim 1, is characterized in that, described method also comprises:
S7: the change in location of monitoring described independent subwindow; Be towed back to when to form common subwindow to main window in the position monitoring described independent subwindow, main pane admin table to described main window adds the subwindow record of described independent subwindow, and deletes described independent subwindow at the corresponding independent subwindow record of independent subwindow admin table.
6. a kind of window management method as described in claim 1, is characterized in that, for the work area data chosen in main window set up main pane admin table after also comprise step:
Detect the independent subwindow that whether there are the work area data chosen; If existed, then the work area overall identification in described independent subwindow table is added in boss's management window table of foundation, as the work area overall identification in described boss's admin table.
7. as a kind of window management method in claim 1-6 as described in any one, it is characterized in that, the communication mode belonged between the subwindow under same main window mark comprises the following steps:
First subwindow sends readjustment message, by described main pane admin table or carry out registering the particular event required in monitoring second subwindow in independent subwindow admin table to the second subwindow;
When have sent the particular event of described registration in described second subwindow, described second subwindow sends message according to the described type of message registered in main pane admin table or in independent subwindow admin table and customized content to described first subwindow.
8. realize a system for window management, it is characterized in that, described system comprises:
Main pane administration module, sets up main pane admin table for the work area data for choosing in main window; Described main pane admin table comprises work area overall identification and the subwindow overall identification of described work area data;
Data service module, for unified definition and the data model managing work area data, and provides preset access interface;
Monitoring enquiry module, for monitoring the change in location of the common subwindow in the data main window of described work area; Hauled out described main window in the position monitoring described common subwindow when forming independent subwindow outward, inquiry whether have with described belonging to the common subwindow of hauling out main window there is the independent subwindow admin table of identical work area overall identification;
Independent window module, for setting up independent subwindow admin table, also for when the result of described inquiry is for there being a described independent subwindow admin table, adds independent subwindow record to described independent subwindow admin table;
Described independent subwindow record comprises described by subwindow overall identification, the work area overall identification of common subwindow of hauling out;
Communication module, for independent subwindow based on the work area overall identification access work area data in described independent subwindow admin table, also at least one in following:
Independent subwindow finds corresponding main window mark based on the work area overall identification in described independent subwindow table, communicates with described main window;
Main window communicates with described independent subwindow based on the subwindow overall identification in main pane admin table;
Common subwindow communicates with described independent subwindow based on the subwindow overall identification in independent subwindow admin table;
First independent subwindow communicates with the second independent subwindow based on the subwindow mark in described independent subwindow table.
9., as right wants a kind of system realizing window management as described in 8, it is characterized in that, described system also comprises:
First processing unit, for perform comprise following at least one item:
After increasing independent subwindow record to described independent subwindow record sheet, delete described independent subwindow corresponding subwindow record in described main pane admin table;
Monitor the change in location of described independent subwindow; Be towed back to when to form common subwindow to main window in the position monitoring described independent subwindow, main pane admin table to described main window adds the subwindow record of described independent subwindow, and deletes described independent subwindow at the corresponding independent subwindow record of independent subwindow admin table;
After the work area data chosen in main window set up main pane admin table, detect the independent subwindow that whether there are the work area data chosen; If existed, then the work area overall identification in described independent subwindow table is added in boss's management window table of foundation, as the work area overall identification in described boss's admin table.
10., as right wants a kind of system realizing window management as described in 8, it is characterized in that, described communication module comprises:
Registering unit, registers the particular event required in monitoring second subwindow in main pane admin table or in independent subwindow admin table for the first subwindow;
Message sending unit, sends readjustment message for the first subwindow to the second subwindow;
Trigger element, for when have sent the particular event of described registration in described second subwindow, sends message according to the described type of message registered in main pane admin table or in independent subwindow admin table and customized content to described first subwindow.
CN201410795250.9A 2014-12-19 2014-12-19 A kind of window management method and system Active CN104537221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410795250.9A CN104537221B (en) 2014-12-19 2014-12-19 A kind of window management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410795250.9A CN104537221B (en) 2014-12-19 2014-12-19 A kind of window management method and system

Publications (2)

Publication Number Publication Date
CN104537221A true CN104537221A (en) 2015-04-22
CN104537221B CN104537221B (en) 2017-09-15

Family

ID=52852748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410795250.9A Active CN104537221B (en) 2014-12-19 2014-12-19 A kind of window management method and system

Country Status (1)

Country Link
CN (1) CN104537221B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808047A (en) * 2015-12-17 2016-07-27 宁波睿易教育科技股份有限公司 Multi-window interactive teaching method executed on mobile equipment
CN111625307A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Synchronous group control method, device, PC (personal computer) end and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1076531A (en) * 1992-02-27 1993-09-22 国际商业机器公司 A kind of system and method for management window
US6313854B1 (en) * 1998-10-16 2001-11-06 International Business Machines Corporation Display mechanism for HTML frames
CN101299220A (en) * 2008-06-24 2008-11-05 腾讯科技(深圳)有限公司 Method for disassembling and combining multiple-page browser window and multiple-page browser
CN103064677A (en) * 2012-12-24 2013-04-24 广东威创视讯科技股份有限公司 Method and device for managing WEB multi-document child window
US20140282213A1 (en) * 2013-03-12 2014-09-18 Oracle International Corporation Management of multiple synchronized windows
US20140331174A1 (en) * 2013-05-06 2014-11-06 Samsung Electronics Co., Ltd. Terminal device and method for displaying an associated window thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1076531A (en) * 1992-02-27 1993-09-22 国际商业机器公司 A kind of system and method for management window
US6313854B1 (en) * 1998-10-16 2001-11-06 International Business Machines Corporation Display mechanism for HTML frames
CN101299220A (en) * 2008-06-24 2008-11-05 腾讯科技(深圳)有限公司 Method for disassembling and combining multiple-page browser window and multiple-page browser
CN103064677A (en) * 2012-12-24 2013-04-24 广东威创视讯科技股份有限公司 Method and device for managing WEB multi-document child window
US20140282213A1 (en) * 2013-03-12 2014-09-18 Oracle International Corporation Management of multiple synchronized windows
US20140331174A1 (en) * 2013-05-06 2014-11-06 Samsung Electronics Co., Ltd. Terminal device and method for displaying an associated window thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808047A (en) * 2015-12-17 2016-07-27 宁波睿易教育科技股份有限公司 Multi-window interactive teaching method executed on mobile equipment
CN111625307A (en) * 2019-12-03 2020-09-04 蘑菇车联信息科技有限公司 Synchronous group control method, device, PC (personal computer) end and system
CN111625307B (en) * 2019-12-03 2024-03-08 蘑菇车联信息科技有限公司 Synchronous group control method, device, PC (personal computer) terminal and system

Also Published As

Publication number Publication date
CN104537221B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN102945248B (en) For the automatic relation detection that spread-sheet data is reported
US10127507B2 (en) Project management system providing interactive issue creation and management
JP6365519B2 (en) Data flow control device and data flow control method
US20100077313A1 (en) System and method for providing information in a virtual world
JP2019533231A (en) Automatic partitioning of shape stream data
CN109522357A (en) A kind of data processing method, device, server and storage medium
CN105577496A (en) System of home gateway for identifying access device type via cloud platform
US20210073054A1 (en) Flexible event ingestion framework in an event processing system
US10057143B2 (en) Automatic target selection
KR101641831B1 (en) The framework for knowledge information based architectural design support system
CN102999366B (en) Activate based on the expansion of inferring
CN101594376A (en) The method and the corresponding device thereof of device are provided to the CIMOM registering CIM
US20160147880A1 (en) Multi-dimensional visualization of query execution in distributed databases
CN102831167A (en) XML (extensive makeup language) processing method and device for graph structure
CN106708859A (en) Auditing method for resource access behaviors and device
CN105141699B (en) The control method and device of application program
US10305983B2 (en) Computer device for distributed processing
JP5695597B2 (en) Screen display device and screen display system
US20140249779A1 (en) Method and apparatus for determining and presenting differences between 3d models
CN104537221A (en) Window management method and system
Dessureault Rethinking fleet and personnel management in the era of IoT, big data, gamification, and low-cost tablet technology
CN104160389B (en) By having the method and system of the intelligent event dynamically aggregated content of non-illustration content
WO2013106802A1 (en) Method and apparatus for determining and presenting differences between 3d models
US10824655B2 (en) Data models for geo-enriched data
US10417809B2 (en) Efficient algorithms for volume visualization on irregular grids

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant