CN102520919B - Inquiry method and device of control node - Google Patents
Inquiry method and device of control node Download PDFInfo
- Publication number
- CN102520919B CN102520919B CN201110341247.6A CN201110341247A CN102520919B CN 102520919 B CN102520919 B CN 102520919B CN 201110341247 A CN201110341247 A CN 201110341247A CN 102520919 B CN102520919 B CN 102520919B
- Authority
- CN
- China
- Prior art keywords
- node
- path
- pinyin
- control
- letter
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 239000011800 void material Substances 0.000 description 7
- 239000000203 mixture Substances 0.000 description 4
- 238000013518 transcription Methods 0.000 description 3
- 230000035897 transcription Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention provides an inquiry method and an inquiry device of a control node and is applicable to the field of computer software. The method comprises the following steps of: creating a control, wherein the control comprises a searching region and a pop-up selection region; creaking a node information base, and building corresponding relationship between the Pinyin initial letter and the node path in the information base; receiving the Pinyin initial letter input in the searching region by users; finding the node path corresponding to the Pinyin initial letter in the node information base, and displaying the found node path in the pop-up selection region; and displaying the node interface corresponding to the node path after instructions that the users select the node path are received. Through adopting the method and the device, a large number of screen resources can be saved, major information in a window realizes a greater display space, and in addition, users are helped to simply and fast inquire the concerned nodes.
Description
Technical field
The invention belongs to computer software fields, relate in particular to a kind of querying method and device of control node.
Background technology
Select operation (as certain function interface need to be selected corresponding area or website in advance) for the node relating in software interface, general list control or the Tree control of adopting realized, wherein list control is suitable for individual layer node and (between all nodes, is sane level, there is not upper and lower level relation), Tree control is suitable for multilayer node.
Because Tree control can embody the hierarchical relationship of node more intuitively, and can save interface shape, so prior art adopts Tree control to realize the selection operation of node mostly.But in the time of the quantity very many (reaching several thousand) of control node, the line number of Tree control will be very large, hierarchical relationship will become very complicated, want to find fast the node that user wants and will become very difficult, affect user's experience.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of querying method of control node, is intended to solve prior art in the time that control number of nodes is more, searches difficult problem.
The embodiment of the present invention is achieved in that a kind of querying method of control node, said method comprising the steps of:
Create control, described control comprises the field of search and ejects and select district;
Create nodal information storehouse, in this information bank, set up the corresponding relation of first letter of pinyin and node path, and at the identifier of described node path while being digital, set up first letter of pinyin and digital corresponding relation, specific as follows:
" one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " four ", ' 4'}, " five ", ' 5'}, " six ", ' 6'}, " seven ", ' 7'},
" eight ", ' 8'}, " nine ", ' 9'}, " 〇 ", ' 0'}, " one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " wantonly ", ' 4'},
" 5 ", ' 5'}, " land ", ' 6'}, " seven ", ' 7'}, " eight ", ' 8'}, " nine ", ' 9'}, " zero ", ' 0'}, " I ", ' 1'},
{"Ⅱ",'2'},{"Ⅲ",'3'},{"Ⅳ",'4'},{"Ⅴ",'5'},{"Ⅵ",'6'},{"Ⅶ",'7'},{"Ⅷ",'8'},
{"Ⅸ",'9'}{"1",'y'},{"2",'e'},{"3",'s'},{"4",'s'},{"5",'w'},{"6",'l'},{"7",'q'},
{"8",'b'},{"9",'j'},{"0",'l'};
Receive the first letter of pinyin of user in the input of the described field of search;
In described nodal information storehouse, search the node path corresponding with described first letter of pinyin, the node path finding is selected to show in district in ejection;
When receiving after the instruction of selected certain node path of user, show the node interface corresponding with this node path.
Another object of the embodiment of the present invention is to provide a kind of inquiry unit of control node, and described device comprises:
Control creating unit, for creating control, described control comprises the field of search and ejects and select district;
Information bank creating unit for creating nodal information storehouse, is set up the corresponding relation of first letter of pinyin and node path in this information bank, and is when numeral at the identifier of described node path, sets up first letter of pinyin and digital corresponding relation, specific as follows:
" one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " four ", ' 4'}, " five ", ' 5'}, " six ", ' 6'}, " seven ", ' 7'},
" eight ", ' 8'}, " nine ", ' 9'}, " 〇 ", ' 0'}, " one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " wantonly ", ' 4'},
" 5 ", ' 5'}, " land ", ' 6'}, " seven ", ' 7'}, " eight ", ' 8'}, " nine ", ' 9'}, " zero ", ' 0'}, " I ", ' 1'},
{"Ⅱ",'2'},{"Ⅲ",'3'},{"Ⅳ",'4'},{"Ⅴ",'5'},{"Ⅵ",'6'},{"Ⅶ",'7'},{"Ⅷ",'8'},
{"Ⅸ",'9'}{"1",'y'},{"2",'e'},{"3",'s'},{"4",'s'},{"5",'w'},{"6",'l'},{"7",'q'},
{"8",'b'},{"9",'j'},{"0",'l'};
Information receiving unit, for receiving the first letter of pinyin of user in the input of the described field of search;
Information searching unit, for searching the node path corresponding with described first letter of pinyin in described nodal information storehouse, selects in ejection the node path finding show in district;
Display unit, for when receiving after the instruction of selected certain node path of user, shows the node interface corresponding with this node path.
Can find out from technique scheme, the embodiment of the present invention replaces traditional tree structure control by the control creating, and can save a large amount of source of screen, makes the main information in window have larger display space.The method of searching for generally based on first letter of pinyin make user no longer need to be from the tree-like node of thousands of layers the node of leafing through, search its care from level to level, only need in the field of search, input several letters and can inquire about fast, easily and be switched to the node that user is concerned about, improve greatly user satisfaction.
Brief description of the drawings
Fig. 1 is the realization flow figure of the querying method of the control node that provides of the embodiment of the present invention one;
Fig. 2 is the schematic diagram of the control derivative strucure that provides of the embodiment of the present invention one;
Fig. 3 is the realization flow figure of the querying method of the control node that provides of the embodiment of the present invention two;
Fig. 4 is the design sketch of the querying method of the control node that provides of the embodiment of the present invention two;
Fig. 5 is the composition structural drawing of the inquiry unit of the control node that provides of the embodiment of the present invention three;
Fig. 6 is the composition structural drawing of the inquiry unit of the control node that provides of the embodiment of the present invention four.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
For technical solutions according to the invention are described, describe below by specific embodiment.
embodiment mono-:
Fig. 1 shows the realization flow of the querying method of the control node that the embodiment of the present invention one provides, and details are as follows for the method process:
In step S101, create control, described control comprises the field of search and ejects and select district.
In the present embodiment, create control in the tool bar of software interface or the top position of subwindow, described control including, but not limited to historical district, node path district, the field of search and eject and select district.
Wherein, described historical district comprises the historical viewings function of " advancing ", " retreating " button and the drop-down menu selection function of nearest some nodes; Described node path is distinguished section and has been shown current each section of node title in node (by the superior node of its top layer successively backward, until present node); The described field of search is for receiving the search key (search key can be placed by space multiple, and the sequencing that provides search key does not affect Search Results) of user input; It is when clicking the drop-down icon in node path district or both candidate nodes being listed selective with the form of expansion subrack after the field of search changes search key that district is selected in described ejection.In the time clicking the field of search, there is editor, user can revise search key by this editor, every input or a key word of deletion, control all can re-start to be searched for and upgrades and eject the content of selecting district, user is determined and is selected certain node path by the mode such as keyboard or mouse, once the node path of choosing will send message to upper-layer user's window, and redraw the displaying contents in node path district after changing.
In the present embodiment, the derivative strucure of described control as shown in Figure 2.
In step S102, create nodal information storehouse, in this information bank, set up the corresponding relation of first letter of pinyin and node path;
In step S103, receive the first letter of pinyin of user in the input of the described field of search;
In step S103, in described nodal information storehouse, search the node path corresponding with described first letter of pinyin, the node path finding is selected to show in district in ejection;
In the present embodiment, the mode of demonstration shows including, but not limited to the form with expansion subrack;
In step S104, when receiving after the instruction of selected certain node path of user, show the node interface corresponding with this node path.
In the present embodiment, adopt tree structure to represent node object, and record the user pointer of each node, node definition is as follows:
class?CFreePathItem
{
public:
CFreePathItem();
~CFreePathItem();
Bool AddChild (CString sPath, void*pUserPtr); // increase child node
Bool AddNext (CFreePathItem*pNewItem); // increase the brotgher of node
Void Delete (); // delete whole child nodes
CFreePathItem*SearchChild (CString sPath); The node that // retrieval is specified
CFreePathItem*SearchChildByName(CString?sName,bool?bHaveSub=false);
// retrieval node
void?FilterItem(YsPtrList<CString>&sFilterList,
YsPtrList<CFreePathItem>&selectItem,
Bool bCatchFromParent); // filter node
Void AnalyzeAlaphabet (); // analysis alphabet
YsPtrList<CString>m_slAlphabe t; The alphabet of // segmentation and multitone
CString m_sPath; // complete trails
CString m_sName; // present node name
Void*m_pUserPtr; The user pointer of // node
CFreePathItem*m_pParent; // father node
CFreePathItem*m_pChild; // child node
CFreePathItem*m_pLastChild; // last child node
CFreePathItem*m_pNext; // next brother node
};
The corresponding node of each CFreePathItem example, m_pUserPtr wherein points to the pointer to object on upper strata, this pointer type can be any type, when elected middle node path, in the time that sending message, upper strata application layer window will provide m_pUserPtr pointer, parent window just knows which node path is selected like this, and then can do corresponding processing, as shown node interface corresponding to node path of choosing.
CFreePathControl class is the main classes of described control, and upper strata only needs instance objects while use, and creates control on the window's position of needs, and its main interface is:
class?CFreePathControl:public?CFreeWnd
{
public:
friend?class?CFreePathPopWnd;
CFreePathControl();
virtual~CFreePathControl();
Bool Create (CWnd*pParentWnd, CRect & rect); // establishment control
Void SetPathChangeMsg (CWnd*pNotifyWnd, DWORD dwMsgId); // establish message window and ID
Bool AddPath (char*sPath, void*pUserPtr); A path of // increase
Bool SetPath (char*sPath); // current path is set
//…..
};
Each node all adds by the AddPath function of CFreePathControl control, generate the pinyin indexes of search use simultaneously, pinyin indexes is also considered the situation of polyphone simultaneously, generate the various combination of multiple index keys according to the quantity of polyphone, in order to improve index speed, the indexed results of each section header is preserved in MAP mode, so that while there is identical result next time, no longer double counting and directly use result.
As another embodiment of the present invention, be digital node path in order to facilitate query node path identifier, described method has also been set up following first letter of pinyin and digital corresponding relation:
static?stuFreePathItemAlphabet?g_FreePathAlphabetAscii[]=
{
" one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " four ", ' 4'}, " five ", ' 5'}, " six ", ' 6'}, " seven ", ' 7'},
" eight ", ' 8'}, " nine ", ' 9'}, " 〇 ", ' 0'}, " one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " wantonly ", ' 4'},
" 5 ", ' 5'}, " land ", ' 6'}, " seven ", ' 7'}, " eight ", ' 8'}, " nine ", ' 9'}, " zero ", ' 0'}, " I ", ' 1'},
{"Ⅱ",'2'},{"Ⅲ",'3'},{"Ⅳ",'4'},{"Ⅴ",'5'},{"Ⅵ",'6'},{"Ⅶ",'7'},{"Ⅷ",'8'},
{"Ⅸ",'9'}{"1",'y'},{"2",'e'},{"3",'s'},{"4",'s'},{"5",'w'},{"6",'l'},{"7",'q'},
{"8",'b'},{"9",'j'},{"0",'l'}
};
In embodiments of the present invention, replace traditional tree structure control by the simple controls creating at software interface, can save a large amount of source of screen, make the main information in window have larger display space.The method of searching for generally based on first letter of pinyin make user no longer need to be from the tree-like node of thousands of layers the node of leafing through, search its care from level to level, only need in the field of search, input several letters and can inquire about fast, easily and be switched to the node that user is concerned about, improve greatly user satisfaction.In addition, be digital node in order to facilitate query node path identifier, the embodiment of the present invention has also been set up first letter of pinyin and digital corresponding relation.
embodiment bis-:
Fig. 3 shows the realization flow of the querying method method of the control node that the embodiment of the present invention two provides, and details are as follows for the method process:
In step S301, create control, described control comprises the field of search and ejects and select district.
In the present embodiment, its specific implementation process, does not repeat them here as described in one step S101 as implemented.
In step S302, create nodal information storehouse, in this information bank, set up the corresponding relation of first letter of pinyin and node path identifier, described first letter of pinyin is the initial of node path identifier phonetic.
In the present embodiment, before creating nodal information storehouse, also comprise that by the node division of different levels be different paths, each node has a unique path, and the path of child node adds that by his father's node path identifier the path identifier of path separators '/' and child node forms.
In step S303, receive user's one or more initial of level node path identifier phonetic not in the input of the described field of search, the initial of multiple not level node path identifier phonetics is separated by space.
In the present embodiment, user only need input in the field of search it and want the initial of the node path identifier phonetic entering, control can be listed the node of coupling automatically, alphabetical matching result of every input all upgrades automatically, allow layering input (centre space-separated), and the result out of the more couplings of letter of input is more accurate, can inquire the node that user is concerned about after generally inputting 2 to 3 letters, effectively raise the search efficiency of control node.
In step S304, in described nodal information storehouse, search the node path corresponding with described first letter of pinyin, the node path finding is selected to show in district in ejection.
In step S305, when receiving after the instruction of selected certain node path of user, show the node interface corresponding with this node path.
As another embodiment of the present invention, in order to strengthen the portability of code, move relevant resource file (picture buttons such as, showing in phonetic transcriptions of Chinese characters table, control etc.) to control and all provide with the form of source code all.Phonetic transcriptions of Chinese characters table adopts array form directly in program, to provide, and does not need to use extra resource file; And in control, show the picture buttons of use, also be to provide with the form of pure code, here need to the picture of finishing be converted to by an external program to the code of C++, picture point form with dot matrix directly draws in DC, the point that simple and clear color bits is put does not need picture, and be that each picture is specified an ID, code is as follows:
COLORREF?CFreePathControl::GetColor(bool?enable,int?r,int?g,int?b)
{
if(!enable)
{
int?a=(r+g+b)/3;
return?RGB(a,a,a);
}
else
return?RGB(r,g,b);
}
bool?CFreePathControl::DrawIconByName(CDC*pDC,CString?name,int?x,int?y,bool?enable/*=true*/)
{
if(name.Left(6)=="search")
{
pDC->SetPixel(x+8,y+16,GetColor(enable,146,157,179));
pDC->SetPixel(x+9,y+15,GetColor(enable,56,85,138));
pDC->SetPixel(x+9,y+16,GetColor(enable,34,58,104));
pDC->SetPixel(x+9,y+17,GetColor(enable,164,168,176));
pDC->SetPixel(x+10,y+13,GetColor(enable,209,218,231));
pDC->SetPixel(x+10,y+14,GetColor(enable,64,98,159));
pDC->SetPixel(x+10,y+15,GetColor(enable,43,73,130));
pDC->SetPixel(x+10,y+16,GetColor(enable,102,118,149));
pDC->SetPixel(x+11,y+8,GetColor(enable,180,209,230));
pDC->SetPixel(x+11,y+9,GetColor(enable,141,182,219));
pDC->SetPixel(x+11,y+10,GetColor(enable,146,181,217));
pDC->SetPixel(x+11,y+11,GetColor(enable,197,212,230));
pDC->SetPixel(x+11,y+12,GetColor(enable,209,219,232));
pDC->SetPixel(x+11,y+13,GetColor(enable,69,110,176));
pDC->SetPixel(x+11,y+14,GetColor(enable,51,87,153));
pDC->SetPixel(x+11,y+15,GetColor(enable,108,128,167));
pDC->SetPixel(x+12,y+7,GetColor(enable,99,170,213));
pDC->SetPixel(x+12,y+8,GetColor(enable,57,140,201));
pDC->SetPixel(x+12,y+9,GetColor(enable,57,132,197));
pDC->SetPixel(x+12,y+10,GetColor(enable,57,124,192));
pDC->SetPixel(x+12,y+11,GetColor(enable,57,117,187));
pDC->SetPixel(x+12,y+12,GetColor(enable,63,113,182));
pDC->SetPixel(x+12,y+13,GetColor(enable,56,101,171));
pDC->SetPixel(x+12,y+14,GetColor(enable,114,138,183));
pDC->SetPixel(x+13,y+6,GetColor(enable,94,183,219));
pDC->SetPixel(x+13,y+7,GetColor(enable,57,148,205));
pDC->SetPixel(x+13,y+8,GetColor(enable,99,163,211));
pDC->SetPixel(x+13,y+9,GetColor(enable,172,200,226));
pDC->SetPixel(x+13,y+10,GetColor(enable,162,191,221));
pDC->SetPixel(x+13,y+11,GetColor(enable,77,131,192));
pDC->SetPixel(x+13,y+12,GetColor(enable,57,109,180));
pDC->SetPixel(x+13,y+13,GetColor(enable,91,128,185));
pDC->SetPixel(x+14,y+5,GetColor(enable,176,222,235));
pDC->SetPixel(x+14,y+6,GetColor(enable,54,167,212));
pDC->SetPixel(x+14,y+7,GetColor(enable,100,170,214));
pDC->SetPixel(x+14,y+12,GetColor(enable,67,117,184));
pDC->SetPixel(x+14,y+13,GetColor(enable,56,101,171));
pDC->SetPixel(x+15,y+5,GetColor(enable,135,209,230));
pDC->SetPixel(x+15,y+6,GetColor(enable,54,167,212));
pDC->SetPixel(x+15,y+7,GetColor(enable,176,209,230));
pDC->SetPixel(x+15,y+12,GetColor(enable,129,161,205));
pDC->SetPixel(x+15,y+13,GetColor(enable,56,101,171));
pDC->SetPixel(x+15,y+14,GetColor(enable,190,200,218));
pDC->SetPixel(x+16,y+5,GetColor(enable,142,211,231));
pDC->SetPixel(x+16,y+6,GetColor(enable,54,167,212));
pDC->SetPixel(x+16,y+7,GetColor(enable,170,206,228));
pDC->SetPixel(x+16,y+12,GetColor(enable,125,158,203));
pDC->SetPixel(x+16,y+13,GetColor(enable,56,101,171));
pDC->SetPixel(x+16,y+14,GetColor(enable,194,203,221));
pDC->SetPixel(x+17,y+5,GetColor(enable,183,224,236));
pDC->SetPixel(x+17,y+6,GetColor(enable,54,167,212));
pDC->SetPixel(x+17,y+7,GetColor(enable,89,164,212));
pDC->SetPixel(x+17,y+12,GetColor(enable,63,113,182));
pDC->SetPixel(x+17,y+13,GetColor(enable,63,105,173));
pDC->SetPixel(x+18,y+6,GetColor(enable,109,189,221));
pDC->SetPixel(x+18,y+7,GetColor(enable,57,148,205));
pDC->SetPixel(x+18,y+8,GetColor(enable,81,153,205));
pDC->SetPixel(x+18,y+9,GetColor(enable,148,186,220));
pDC->SetPixel(x+18,y+10,GetColor(enable,138,176,215));
pDC->SetPixel(x+18,y+11,GetColor(enable,66,123,189));
pDC->SetPixel(x+18,y+12,GetColor(enable,57,109,180));
pDC->SetPixel(x+18,y+13,GetColor(enable,160,180,211));
pDC->SetPixel(x+19,y+7,GetColor(enable,114,178,217));
pDC->SetPixel(x+19,y+8,GetColor(enable,57,140,201));
pDC->SetPixel(x+19,y+9,GetColor(enable,57,132,197));
pDC->SetPixel(x+19,y+10,GetColor(enable,57,124,192));
pDC->SetPixel(x+19,y+11,GetColor(enable,61,120,188));
pDC->SetPixel(x+19,y+12,GetColor(enable,160,184,215));
pDC->SetPixel(x+20,y+8,GetColor(enable,219,231,240));
pDC->SetPixel(x+20,y+9,GetColor(enable,172,200,226));
pDC->SetPixel(x+20,y+10,GetColor(enable,176,201,225));
pDC->SetPixel(x+20,y+11,GetColor(enable,225,232,239));
};
Wherein, DrawIconByName function is to draw a picture, and first parameter p DC is target DC, name is the identifier of picture, (x, y), for starting coordinate, whether enable for being shown as available (being shown as a gray-scale map when false).
In the present embodiment, move relevant resource file to control and all provide with the form of source code all, make only to need a .cpp file and .h file can comprise whole source codes of control, effectively strengthened the portability of control code.
When the embodiment of the present invention is applied to power failure information processing main station system, it is more directly perceived, quick that the feature navigator of each transformer station will become, user no longer need to be from the tree-like node of thousands of layers from level to level leaf through, search he about node, and can easily navigate to as long as input several letters in the field of search node (as shown in Fig. 4 a, 4b, 4c) that user is concerned about.
embodiment tri-:
Fig. 5 shows the composition structure of the inquiry unit of the control node that the embodiment of the present invention three provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
The inquiry unit of this control node can be to run on the unit that software unit, hardware cell or software and hardware in application system combine.
The inquiry unit of this control node comprises control creating unit 51, information bank creating unit 52, information receiving unit 53, information searching unit 54 and display unit 55.Wherein, the concrete function of each unit is as follows:
Control creating unit 51, for creating control, described control comprises the field of search and ejects and select district;
Information bank creating unit 52 for creating nodal information storehouse, is set up the corresponding relation of first letter of pinyin and node path in this information bank;
Information receiving unit 53, for receiving the first letter of pinyin of user in the input of the described field of search;
Information searching unit 54, for searching the node path corresponding with described first letter of pinyin in described nodal information storehouse, selects in ejection the node path finding show in district;
Display unit 55, for when receiving after the instruction of selected certain node path of user, shows the node interface corresponding with this node path.
Further, the inquiry unit of described control node also comprises that corresponding relation sets up unit 56, and described corresponding relation is set up unit 56 at described node path identifier during for numeral, sets up first letter of pinyin and digital corresponding relation.
In the present embodiment, described control also comprises historical district and node path district, and described historical district comprises the drop-down menu selection function of historical node function of browse and nearest some nodes; The path identifier that shows each node is separated in described node path district by separator.
The inquiry unit of the control node that the present embodiment provides can use the querying method at the control node of aforementioned correspondence, and details, referring to the associated description of the querying method embodiment mono-of above-mentioned control node, do not repeat them here.
embodiment tetra-:
Fig. 6 shows the composition structure of the inquiry unit of the control node that the embodiment of the present invention four provides, and for convenience of explanation, only shows the part relevant to the embodiment of the present invention.
The inquiry unit of this control node can be to run on the unit that software unit, hardware cell or software and hardware in application system combine.
The inquiry unit of this control node comprises control creating unit 61, information bank creating unit 62, information receiving unit 63, information searching unit 64 and display unit 65.Wherein, the concrete function of each unit is as follows:
Control creating unit 61, for creating control, described control comprises the field of search and ejects and select district.
Information bank creating unit 62 for creating nodal information storehouse, is set up the corresponding relation of first letter of pinyin and node path in this information bank.Wherein, described information bank creating unit 62 also comprises corresponding relation building module 621, and for set up the corresponding relation of first letter of pinyin and node path identifier at this information bank, described first letter of pinyin is the initial of node path identifier phonetic.
Information receiving unit 63, for receiving the first letter of pinyin of user in the input of the described field of search.Wherein, described information receiving unit 63 also comprises information receiving module 631, for receiving user's one or more initial of level node path identifier phonetic not in the input of the described field of search, the initial of multiple not level node path identifier phonetics is separated by space.
Information searching unit 64, for searching the node path corresponding with described first letter of pinyin in described nodal information storehouse, selects in ejection the node path finding show in district;
Display unit 65, for when receiving after the instruction of selected certain node path of user, shows the node interface corresponding with this node path.
Further, described device also comprises that corresponding relation sets up unit 66 and path division unit 67, and described corresponding relation is set up unit 66 at described node path identifier during for numeral, sets up first letter of pinyin and digital corresponding relation; Described path division unit 67 is for being different paths by the node division of different levels, and each node has a unique path, and the path of child node adds that by his father's node path identifier the path identifier of path separators and child node forms.
Further, described device also comprises converting unit, for moving relevant resource file to control and be converted to source code all.Wherein, described resource file comprises picture buttons showing in phonetic transcriptions of Chinese characters table, control etc.
In the present embodiment, described control also comprises historical district and node path district, and described historical district comprises the drop-down menu selection function of historical node function of browse and nearest some (for example nearest 5) nodes; The path identifier that shows each node is separated in described node path district by separator.
The inquiry unit of the control node that the present embodiment provides can use the querying method at the control node of aforementioned correspondence, and details, referring to the associated description of the querying method embodiment bis-of above-mentioned control node, do not repeat them here.
In sum, the embodiment of the present invention replaces traditional tree structure control by the simple controls creating at software interface, can save a large amount of source of screen, makes the main information in window have larger display space.The method of searching for generally based on first letter of pinyin make user no longer need to be from the tree-like node of thousands of layers the node of leafing through, search its care from level to level, only need in the field of search, input several letters and can inquire about fast, easily and be switched to the node that user is concerned about, improve greatly user satisfaction.And, be digital node in order to facilitate query node path identifier, the embodiment of the present invention has also created first letter of pinyin and digital corresponding relation.In addition, move relevant resource file to control and all provide with the form of source code all, effectively strengthened the portability of control code.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.
Claims (8)
1. a querying method for control node, is characterized in that, said method comprising the steps of:
Create control, described control comprises the field of search and ejects and select district;
Create nodal information storehouse, in this nodal information storehouse, set up the corresponding relation of first letter of pinyin and node path identifier, described first letter of pinyin is the initial of node path identifier phonetic, and in the time that described node path identifier is numeral, set up first letter of pinyin and digital corresponding relation, specific as follows:
" one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " four ", ' 4'}, " five ", ' 5'}, " six ", ' 6'}, " seven ", ' 7'},
" eight ", ' 8'}, " nine ", ' 9'}, " 〇 ", ' 0'}, " one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " wantonly ", ' 4'},
" 5 ", ' 5'}, " land ", ' 6'}, " seven ", ' 7'}, " eight ", ' 8'}, " nine ", ' 9'}, " zero ", ' 0'}, " I ", ' 1'},
{"Ⅱ",'2'},{"Ⅲ",'3'},{"Ⅳ",'4'},{"Ⅴ",'5'},{"Ⅵ",'6'},{"Ⅶ",'7'},{"Ⅷ",'8'},
{"Ⅸ",'9'}{"1",'y'},{"2",'e'},{"3",'s'},{"4",'s'},{"5",'w'},{"6",'l'},{"7",'q'},
{"8",'b'},{"9",'j'},{"0",'l'};
Receive the first letter of pinyin of user in the input of the described field of search;
In described nodal information storehouse, search the node path corresponding with described first letter of pinyin, the node path finding is selected to show in district in ejection;
When receiving after the instruction of selected certain node path of user, show the node interface corresponding with this node path.
2. the method for claim 1, is characterized in that, before the step in described establishment nodal information storehouse, also comprises:
Be different paths by the node division of different levels, each node has a unique path, and the path of child node adds that by his father's node path identifier the path identifier of path separators and child node forms.
3. method as claimed in claim 2, is characterized in that,
Described reception user specifically comprises in the step of the first letter of pinyin of described field of search input:
Receive the initial of user at one or more different levels node path identifier phonetic of described field of search input, the initial of multiple different levels node path identifier phonetics is separated by space.
4. the method for claim 1, is characterized in that, described control also comprises historical district and node path district, and described historical district comprises the drop-down menu selection function of historical node function of browse and nearest some nodes; The path identifier that shows each node is separated in described node path district by separator.
5. an inquiry unit for control node, is characterized in that, described device comprises:
Control creating unit, for creating control, described control comprises the field of search and ejects and select district;
Information bank creating unit, be used for creating nodal information storehouse, in this nodal information storehouse, set up the corresponding relation of first letter of pinyin and node path identifier, described first letter of pinyin is the initial of node path identifier phonetic, and in the time that described node path identifier is numeral, set up first letter of pinyin and digital corresponding relation, specific as follows:
" one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " four ", ' 4'}, " five ", ' 5'}, " six ", ' 6'}, " seven ", ' 7'},
" eight ", ' 8'}, " nine ", ' 9'}, " 〇 ", ' 0'}, " one ", ' 1'}, " two ", ' 2'}, " three ", ' 3'}, " wantonly ", ' 4'},
" 5 ", ' 5'}, " land ", ' 6'}, " seven ", ' 7'}, " eight ", ' 8'}, " nine ", ' 9'}, " zero ", ' 0'}, " I ", ' 1'},
{"Ⅱ",'2'},{"Ⅲ",'3'},{"Ⅳ",'4'},{"Ⅴ",'5'},{"Ⅵ",'6'},{"Ⅶ",'7'},{"Ⅷ",'8'},
{"Ⅸ",'9'}{"1",'y'},{"2",'e'},{"3",'s'},{"4",'s'},{"5",'w'},{"6",'l'},{"7",'q'},
{"8",'b'},{"9",'j'},{"0",'l'};
Information receiving unit, for receiving the first letter of pinyin of user in the input of the described field of search;
Information searching unit, for searching the node path corresponding with described first letter of pinyin in described nodal information storehouse, selects in ejection the node path finding show in district;
Display unit, for when receiving after the instruction of selected certain node path of user, shows the node interface corresponding with this node path.
6. device as claimed in claim 5, is characterized in that, described device also comprises:
Path division unit, for being different paths by the node division of different levels, each node has a unique path, and the path of child node adds that by his father's node path identifier the path identifier of path separators and child node forms.
7. device as claimed in claim 6, is characterized in that,
Described information receiving unit comprises:
Information receiving module, for receiving the initial of user at one or more different levels node path identifier phonetic of described field of search input, separates the initial of multiple different levels node path identifier phonetics by space.
8. device as claimed in claim 5, is characterized in that, described control also comprises historical district and node path district, and described historical district comprises the drop-down menu selection function of historical node function of browse and nearest some nodes; The path identifier that shows each node is separated in described node path district by separator.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110341247.6A CN102520919B (en) | 2011-11-02 | 2011-11-02 | Inquiry method and device of control node |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110341247.6A CN102520919B (en) | 2011-11-02 | 2011-11-02 | Inquiry method and device of control node |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102520919A CN102520919A (en) | 2012-06-27 |
CN102520919B true CN102520919B (en) | 2014-10-29 |
Family
ID=46291862
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110341247.6A Expired - Fee Related CN102520919B (en) | 2011-11-02 | 2011-11-02 | Inquiry method and device of control node |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102520919B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105487765A (en) * | 2014-09-19 | 2016-04-13 | 中兴通讯股份有限公司 | Method and device for identifying window objects of Windows |
CN111857490A (en) * | 2020-07-17 | 2020-10-30 | 苏州易卖东西信息技术有限公司 | Vue-based pull-down selection component construction method supporting multi-tree structure |
CN113110770B (en) * | 2021-03-31 | 2023-03-21 | 联想(北京)有限公司 | Control method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101034350A (en) * | 2007-04-17 | 2007-09-12 | 珠海金山软件股份有限公司 | Device and method for quick searching computer program functional entrance |
CN101702157A (en) * | 2009-10-28 | 2010-05-05 | 金蝶软件(中国)有限公司 | Method and device for realizing selection of tree nodes |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020047858A1 (en) * | 2000-09-28 | 2002-04-25 | International Business Machines Corporation | Graphical user interfaces |
-
2011
- 2011-11-02 CN CN201110341247.6A patent/CN102520919B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101034350A (en) * | 2007-04-17 | 2007-09-12 | 珠海金山软件股份有限公司 | Device and method for quick searching computer program functional entrance |
CN101702157A (en) * | 2009-10-28 | 2010-05-05 | 金蝶软件(中国)有限公司 | Method and device for realizing selection of tree nodes |
Also Published As
Publication number | Publication date |
---|---|
CN102520919A (en) | 2012-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8463731B2 (en) | Translating user interaction with a touch screen into text | |
CN102460362B (en) | Glyph entry on computing device | |
CN101622619B (en) | Method and system for navigation and visualization of data in relational and/or multidimensional databases | |
CN102890672A (en) | Method and device for finding application program of mobile terminal | |
KR101846238B1 (en) | Chinese character input apparatus and controlling method thereof | |
WO2008080192A1 (en) | Process and apparatus for selecting an item from a database | |
CN107729396B (en) | Data dynamic query method and device | |
CN102104688A (en) | Software recommendation method and mobile terminal | |
US20090172603A1 (en) | Method and apparatus for information retrieval | |
CN101802765B (en) | Method, and apparatus for facilitating object selection on display screen | |
CN103885983A (en) | Travelling route determining method, and optimizing method and device | |
CN102405470A (en) | Systems and methods for compound searching | |
CN102968453A (en) | Film and video searching method for mobile terminal | |
CN101727201A (en) | Method and device for automatically adjusting symbol rank and input method system | |
CN102520919B (en) | Inquiry method and device of control node | |
CN102662487A (en) | Display keyboard, input processing method and input processing device | |
JPH09231238A (en) | Display method for text retrieval result and device therefor | |
CN104978047A (en) | Cross-keyboard association method and apparatus | |
CN102541278B (en) | A kind of text input interface enters the method and system that line character selects | |
CN110032673A (en) | Page index, address list, client, data processing method and device | |
CN105069014A (en) | Map searching method and device | |
CN103106001A (en) | Method, client terminal and system for editing candidate item of input method with streaming media | |
CN107193390A (en) | Information processing method and device | |
CN102546961A (en) | Contact lookup method and mobile terminal | |
CN104021201A (en) | Data conversion method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141029 Termination date: 20181102 |
|
CF01 | Termination of patent right due to non-payment of annual fee |