CN1202077A - Method and device for generating graphical interface system components in batches - Google Patents
Method and device for generating graphical interface system components in batches Download PDFInfo
- Publication number
- CN1202077A CN1202077A CN98105929A CN98105929A CN1202077A CN 1202077 A CN1202077 A CN 1202077A CN 98105929 A CN98105929 A CN 98105929A CN 98105929 A CN98105929 A CN 98105929A CN 1202077 A CN1202077 A CN 1202077A
- Authority
- CN
- China
- Prior art keywords
- batch
- component
- data
- generating
- components
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W68/00—User notification, e.g. alerting and paging, for incoming communication, change of service or the like
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/14—Display of multiple viewports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- User Interface Of Digital Computer (AREA)
- Processing Or Creating Images (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
- Digital Computer Display Output (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
提供了用于成批生成motif构件的设备和方法。按照本发明说明性实施例的用于成批生成motif构件的方法,包括编制构件生成数据文件,用以产生成批的构件,和定义批生成结构,用于在相应的构件组单元中读出所编制的构件生成数据。读出由批生成结构定义单元的指令所请示的相应数据文件,和通过使用构件生成函数,成批生成复合构件。
Apparatus and methods for batch generation of motif components are provided. A method for batch generation of motif components according to an illustrative embodiment of the present invention includes compiling component generation data files for generating batches of components, and defining batch generation structures for reading out in corresponding component group units The compiled components generate data. The corresponding data files requested by the command to batch generate structure definition units are read out, and composite components are generated in batches by using a component generating function.
Description
本发明涉及在移动通信系统中所实现的图形用户界面(GUI),更具体地涉及在数字蜂窝系统中实现用于显示基站管理器(BSM)的故障报警的报警显示的方法和设备。The present invention relates to a graphical user interface (GUI) implemented in a mobile communication system, and more particularly to a method and device for realizing an alarm display for displaying a fault alarm of a base station manager (BSM) in a digital cellular system.
自从80年代初期蜂窝通信业务可供商业服务以来,因为其提供给蜂窝业务用户的移动性,速度,宽广的区域覆盖,和方便性,对蜂窝通信业务的需求持续增长。为满足这种增长的需求,出现了以下进展:无线信道容量增加的微小区;数字技术的使用;窄带话音信号;高效率频率调制器;和多址系统。Since cellular communication services became commercially available in the early 1980's, the demand for cellular communication services has continued to grow because of the mobility, speed, wide area coverage, and convenience it provides cellular service users. To meet this growing demand, the following advances have occurred: microcells with increased radio channel capacity; the use of digital techniques; narrowband voice signals; high-efficiency frequency modulators; and multiple-access systems.
当前数字蜂窝移动通信系统分为TDMA(时分多址)和CDMA(码分多址)系统。TDMA系统利用一种技术,借此分配预定的时隙用于发送和接收信号。通过调整信号的发送时间,多路信号可被发送到不同的站,借此信号在空间域中重叠,但在时间域上并不互相干扰。TDMA方案当前正在欧洲,美国和日本使用,它们已建立了TDMA标准。另一方面CDMA系统按照跳频和直接序列被分为两组。Qualcomm公司提出了直接序列CDMA系统。The current digital cellular mobile communication system is divided into TDMA (Time Division Multiple Access) and CDMA (Code Division Multiple Access) systems. The TDMA system utilizes a technique whereby predetermined time slots are allocated for transmitting and receiving signals. By adjusting the transmission time of the signals, multiple signals can be sent to different stations, whereby the signals overlap in the space domain but do not interfere with each other in the time domain. The TDMA scheme is currently being used in Europe, the United States, and Japan, which have established TDMA standards. CDMA systems on the other hand are divided into two groups according to frequency hopping and direct sequence. Qualcomm Corporation proposes a direct-sequence CDMA system.
用于显示蜂窝BSM故障报警的报警显示器已由诸如SL-GMS那样的商用程序完成。SL-GMS是一种软件图形工具,它的安装非常昂贵并需要大量存储器以便驱动相关系统资源。SL-GMS的使用增加了在改变报警显示时有关的负荷,因而增加了为改变显示而需要的总时间。而且这样的使用增加了显示更新时间,从而降低了需要实时处理的GUI报警显示的效率。因此在使用图形界面系统(motif)的构件(widget)而不用SL-GMS的报警显示方面已不断地做出努力。Alarm displays for cellular BSM failure alarms have been implemented by commercial programs such as SL-GMS. SL-GMS is a software graphics tool that is very expensive to install and requires a lot of memory in order to drive the associated system resources. The use of SL-GMS increases the load involved in changing the alarm display, thus increasing the total time required for changing the display. Moreover, such use increases the display update time, thereby reducing the efficiency of GUI alarm display that requires real-time processing. Efforts have therefore been continuously made to use widgets of the graphical interface system (motif) instead of the alarm display of the SL-GMS.
有利地,motif的使用便于显示生成。它也是经济的,因为它基本上被提供有大多数UNIX系统。而且motif对驱动系统在驱动进程期间只加上很少的负荷,并且比起SL-GMS来能快速运行。尽管这些优点,基本motif元件(被称为构件)的生成需要被逐个输入的大量代码。而且非常难于改变构件的特性和结构。例如,由于一个代码必须被修改和编译以改变一个构件的颜色,所以改变包括许多构件的motif显示的颜色的处理变得非常复杂并需要很大量的时间。Advantageously, the use of motifs facilitates display generation. It is also economical because it is basically provided with most UNIX systems. Moreover, the motif puts little load on the driving system during the driving process, and can run faster than SL-GMS. Despite these advantages, the generation of basic motif elements (called artifacts) requires a large amount of code to be entered one by one. And it is very difficult to change the characteristics and structure of the components. For example, since a code must be modified and compiled to change the color of one component, the process of changing the displayed color of a motif including many components becomes very complicated and requires a large amount of time.
因此,本发明的目的是提供在数字蜂窝系统中用于成批生成motif构件的设备和方法,以便有效地完成基站管理器的报警显示。motif构件的生成包括数据文件的使用,该数据文件包括motif构件生成数据的集合。Therefore, it is an object of the present invention to provide an apparatus and method for generating motif components in batches in a digital cellular system in order to efficiently perform alarm display for a base station manager. The generation of the motif components includes the use of a data file that includes a collection of motif component generation data.
本发明的另一个目的是提供借助于数据文件成批生成motif构件的设备和方法。Another object of the present invention is to provide a device and method for generating motif components in batches by means of data files.
本发明的再一个目的是提供容易生成motif构件的设备和方法,以便完成报警显示。Another object of the present invention is to provide an apparatus and method for easily generating motif components in order to complete alarm display.
为达到以上的和其他的目的,给出了成批生成motif构件的设备和方法。按照本发明的实施例的用于成批生成motif构件的方法包括以下步骤,例如编制用于成批地产生构件的构件生成数据文件,和定义一个批生成结构,用于在相应的构件组单元中读出所编制的构件生成数据。接着,读出由一个批生成结构定义单元的指令所请求的相应数据文件,和通过使用构件生成函数,成批生成复合构件。To achieve the above and other objects, a device and method for generating motif components in batches are provided. The method for generating motif components in batches according to an embodiment of the present invention includes the following steps, such as compiling component generation data files for generating components in batches, and defining a batch generation structure for use in corresponding component group units Read out the compiled component generation data in . Next, corresponding data files requested by an instruction to batch generate structure definition units are read out, and composite components are batch-generated by using component generating functions.
通过参照附图详细描述本发明的实施例,本发明的目的和优点将变得更明显,其中:Objects and advantages of the present invention will become more apparent by describing in detail embodiments of the present invention with reference to the accompanying drawings, in which:
图1是与一个BSM有关的数字蜂窝通信系统的方框图,本发明的实施例应用于其中;Figure 1 is a block diagram of a digital cellular communication system associated with a BSM to which embodiments of the present invention are applied;
图2显示了示例性motif显示,以便于更好地了解构件组,组ID和Figure 2 shows an example motif display for a better understanding of component groups, group IDs and
子ID;child ID;
图3显示了图2所示的motif显示的motif的构件的结构;Figure 3 shows the structure of the components of the motif displayed by the motif shown in Figure 2;
图4是按照本发明的实施例的用于构件成批生成的算法;以及Figure 4 is an algorithm for component batch generation according to an embodiment of the present invention; and
图5是按照本发明的实施例的motif的构件成批生成设备的方框图。FIG. 5 is a block diagram of a motif batch generation device according to an embodiment of the present invention.
优选实施例的详细描述Detailed description of the preferred embodiment
在数字蜂窝系统中BSM作为工作站运行,其任务为管理,修理和维护整个移动通信系统,BSM通过按照本发明实施例实行的motif报警显示,传送移动通信系统的工作状态。In the digital cellular system, BSM operates as a workstation, and its task is to manage, repair and maintain the entire mobile communication system. The BSM transmits the working status of the mobile communication system through the motif alarm display implemented according to the embodiment of the present invention.
图1是与一个BSM有关的CDMA数字蜂窝通信系统的方框图。该系统包括移动站(MS)10-1到10-n,基站收发信台子系统(BTS)12,基站控制器(BSC)14,基站管理器(BSM)16,和基站交换中心(MSC)18。移动站10-1到10-n是在BTS12的控制下实行无线通信的移动通信终端。BTS12是和在它自己的小区半径内的移动站10-1到10-n进行无线通信的基站。BSC14被连接在BTS12和MSC18之间,并控制与BTS12有关的全部通信。BSM16被连接到BSC14,并接口到BTS12中的操作员。MSC18被连接到BSC14,并切换移动站10-1到10-n。Figure 1 is a block diagram of a CDMA digital cellular communication system associated with a BSM. The system includes mobile stations (MS) 10-1 through 10-n, base transceiver station subsystem (BTS) 12, base station controller (BSC) 14, base station manager (BSM) 16, and base switching center (MSC) 18 . Mobile stations 10-1 to 10-n are mobile communication terminals that carry out wireless communication under the control of BTS12. BTS 12 is a base station that performs wireless communication with mobile stations 10-1 to 10-n within its own cell radius. BSC14 is connected between BTS12 and MSC18 and controls all communications related to BTS12.
本发明的第一个说明性实施例是针对用于向用户和操作员显示基站管理器16的故障报警的报警显示的有效实现。为此目的提供了使用数据文件的motif构件成批生成的方法,该数据文件包括motif构件生成数据的集合。通过使用这个方法,构件借助于只把为生成构件所需要的数据放入文件中而容易地被成批生成。通过数据文件修正构件结构但不需要编译操作,减少了工作时间并提高了工作效率。The first illustrative embodiment of the present invention is directed to an efficient implementation of an alarm display for displaying fault alarms of the
motif是一组被称为构件的用户界面对象集。motif构件集包括与编程员或用户可能需要的GUI有关的所有对象,例如下拉菜单,对话框,滚动条,按钮等。当编程员打算使用motif建立应用程序时,他简单地选择构件集用于制作GUI,并包括以代码形式的构件集。在显示屏幕上显示了编码的构件的结果。然而,为了借助于motif制作多个具有同样性质的构件,应当不方便地重复同样的编码。具有同样性质的构件的代码部分根据构件的位置,颜色和字符串而改变。因此如果独立地管理为生成构件所需要的数据,则构件可容易地和快速地批量生成。编码可通过把构件生成数据编制到数据文件,读出数据文件,以及产生用于自动生成构件的函数而得以简化。而且,编码效率可简单地通过修正数据文件以改变构件特性而得以提高。A motif is a collection of user interface objects called widgets. The motif widget set includes all objects related to the GUI that a programmer or user may need, such as drop-down menus, dialog boxes, scroll bars, buttons, etc. When a programmer intends to build an application using motifs, he simply selects the component set for making the GUI and includes the component set in code. The results of the coded components are shown on the display screen. However, in order to make a plurality of components with the same properties by means of motifs, it should be inconvenient to repeat the same coding. The code parts of widgets with the same properties change according to the widget's position, color and string. Therefore, if the data required for generating components is independently managed, components can be mass-produced easily and quickly. Coding can be simplified by programming component generation data into data files, reading data files, and generating functions for automatic component generation. Furthermore, coding efficiency can be improved simply by modifying data files to change component properties.
虽然有许多种为产生构件所必需的管理器构件,但由于按照位置安排构件的方便性可使用窗体(form)构件代替管理器构件,如将在下面所说明的。数据文件包括父构件的位置,生成的构件的类型,在父构件中的构件的位置以及构件的颜色和字符串。对于构件的位置,使用了在窗体构件的XmATTACH POSITION资源中所使用的相对坐标。构件根据他们各自的类型被分组,在同一组中的构件具有同一个父构件。为了表示构件类型,使用了表示motif构件成批生成函数的字符串而不用原先的motif构件名称。虽然该函数按照构件的使用在无论何时需要时可被建立,基本的所需要的函数被提前建立。Although there are many kinds of manager components necessary for generating components, a form component may be used instead of the manager component due to the convenience of arranging components according to positions, as will be explained below. The data file includes the location of the parent widget, the type of widget generated, the widget's location within the parent widget, and the widget's colors and strings. For the widget's position, the relative coordinates used in the form widget's XmATTACH POSITION resource are used. Components are grouped according to their respective types, and components in the same group have the same parent component. In order to indicate the component type, a string representing the batch generation function of the motif component is used instead of the original motif component name. Although the function can be established whenever necessary according to the use of the component, basic required functions are established in advance.
在生成motif构件时,数据文件以和在用户界面语言中相同的方式被使用,在用户界面语言(UIL)中利用了预编译功能。因此UIL应当和以motif代码表示的构件具有相同的结构,因而需要编译。然而,按照本发明对数据文件的使用使构件结构能被确定而不管源文件,因而不需要编译。而且,构件生成函数在无论何时必要时可被建立,通过从源中去除不必要的构件生成函数而提高编码效率。传统方法在编码时是不可行的,特别是在报警显示的情况下,因为在无论何时对报警状态的要求改变时报警显示的结构应当被修正。然而,按照本发明的构件成批生成方法,报警显示可简单地通过改变数据文件而改变,从而简化了编码。下面将定义对于按照本发明实施例的构件成批生成的构件结构。When generating motif components, data files are used in the same way as in User Interface Language, where precompilation is utilized. Therefore the UIL should have the same structure as the component expressed in the motif code, and thus needs to be compiled. However, the use of data files according to the present invention enables component structures to be determined regardless of source files, thus requiring no compilation. Also, component generating functions can be created whenever necessary, improving coding efficiency by removing unnecessary component generating functions from sources. Conventional methods are not feasible when coding, especially in the case of alarm displays, since the structure of the alarm display should be modified whenever the requirements for the alarm status change. However, according to the component batch generation method of the present invention, the alarm display can be changed simply by changing the data file, thereby simplifying the coding. The component structure for batch generation of components according to the embodiment of the present invention will be defined below.
(1)用于成批生成的构件结构的定义(1) Definition of component structures for batch generation
构件被编组以成批生成构件。每个构件组具有完全相同的父构件,和相同性质的子构件。父构件是指motif中的管理器构件,而子构件是指在父构件上生成的构件。构件结构被定义为:Components are grouped to generate components in batches. Each component group has exactly the same parent component, and the same nature of the sub-components. The parent component refers to the manager component in the motif, and the child component refers to the component generated on the parent component. The component structure is defined as:
struct Page{
int*N;
Widget**Buttons;
Pos**POSPTR;
Col**COLPTR;
Str**STRPTR;
Prt*PRTPTR;
Knd*KNDPTR;
int*MAXLEN;
};
struct Page{
int*N;
Widget**Buttons;
Pos**POSPTR;
Col**COLPTR;
Str**STRPTR;
Prt*PRTPTR;
Knd*KNDPTR;
int *MAXLEN;
};
此处字段‘N’表示存储器分配(此后称作为“malloc”)所需要的构件数。N[0]表示形成显示的构件组的总数。N[n](n>0)表示在第n组中子构件数。字段‘Buttons’表示在一组中的每个子构件地址。子构件由包含分配给子构件的组id和子id的双指针定义。字段‘POSPTR’,‘COLPTR’和‘STRPTR’分别表示构件的位置,颜色和字符串。结构‘Pos’,‘Col’和‘Str’分别存储为改变构件的位置,颜色和字符串所需要的数据。字段‘PRTPTR’和‘KNDPTR’表示父构件的位置和构件组的类型。因为在一组中的子构件具有相同的类型,并共用同一个父构件,所以‘PRTPTR’和‘KNDPTR’由一个指针定义。字段‘MAXLEN’存储相应于在一组中的最长字符串的长度的数据,它被用来分配适当的字体(font)给构件。‘MAXLEN’不同于其他字段之处在于,它的值在执行程序期间在比较字符串后被设置,而其他字段的初始值是在数据文件中被设置的。也就是‘MAXLEN’的初始值可能没有在数据文件中被设置。结构‘Pos’,‘Col’,‘Str’和‘Knd’被定义为:The field 'N' here indicates the number of components required for memory allocation (hereinafter referred to as "malloc"). N[0] represents the total number of component groups forming the display. N[n] (n>0) represents the number of sub-components in the nth group. The field 'Buttons' represents the address of each sub-widget in a group. Subwidgets are defined by double pointers containing the group id and subid assigned to the subwidget. The fields 'POSPTR', 'COLPTR' and 'STRPTR' represent the widget's position, color and string, respectively. The structures 'Pos', 'Col' and 'Str' store the data needed to change the widget's position, color and string, respectively. The fields 'PRTPTR' and 'KNDPTR' indicate the position of the parent component and the type of component group. 'PRTPTR' and 'KNDPTR' are defined by a pointer since the child components in a group are of the same type and share the same parent component. The field 'MAXLEN' stores data corresponding to the length of the longest character string in a group, which is used to assign appropriate fonts to components. 'MAXLEN' differs from other fields in that its value is set after comparing strings during program execution, whereas the initial values of other fields are set in the data file. That is, the initial value of 'MAXLEN' may not have been set in the data file. The structures 'Pos', 'Col', 'Str' and 'Knd' are defined as:
typedef struct_Pos{
int Nth,Sth,Wst,Est;
}Pos;
typedef struct_Col{
char Tsh[20],Bsh[20],Bgd[20];
}Col;
typedef struct_Str{
char str[100];
char fore[20];
}Str;
typedef struct_Prt{
int i,j;
}Prt;
typedef struct_Knd{
char knd[20];
}Knd;
typedef struct_Pos{
int Nth,Sth,Wst,Est;
} Pos;
typedef struct_Col{
char Tsh[20], Bsh[20], Bgd[20];
}Col;
typedef struct_Str{
char str[100];
char fore[20];
}Str;
typedef struct_Prt{
int i,j;
}Prt;
typedef struct_Knd{
char knd[20];
}Knd;
‘Pos’字段表示子构件相对于父构件的顶部,底部,左位置和右位置坐标。‘Col’字段表示构件的顶部阴影,底部阴影和背景。‘Str’字段分别表示字符串和字符串的颜色。此处,‘fore’字段可被省略,在这样的情况中被指定为黑色。‘Prt’的两个字段分别表示父构件的组id和子id。‘Knd’字段表示构件的类型或种类。下面将描述按照本发明的构件生成的概念。The 'Pos' field represents the top, bottom, left and right position coordinates of the child widget relative to the parent widget. The 'Col' field represents the widget's top shadow, bottom shadow and background. The 'Str' field represents the string and the color of the string, respectively. Here, the 'fore' field may be omitted, in which case black is specified. The two fields of 'Prt' represent the group id and child id of the parent component respectively. The 'Knd' field indicates the type or kind of member. The concept of component generation according to the present invention will be described below.
(2)构件生成的概念(2) The concept of component generation
构件组是指在同一父构件上相同类型的构件的集合。组id表示在数据文件中定义的组中的组号,从1起始顺序增加。子id表示一组中的构件号,从1起始顺序增加。在数据文件中定义的每个构件具有组id和子id。图2显示了简单的motif显示以便更好地了解构件组,组id和子id。A component group is a collection of components of the same type on the same parent component. The group id indicates the group number in the group defined in the data file, and it increases sequentially from 1. The sub-id represents the component number in a group, starting from 1 and increasing sequentially. Each component defined in the data file has a group id and a sub id. Figure 2 shows a simple motif display to better understand component groups, group ids and sub-ids.
为了产生图2所示的motif显示结构,使用了4个构件组和5个子构件。4个组分别具有一个,一个,一个和两个子构件。虽然在底部的背景构件20(即,窗体构件)不属于任何组,但它被用作为在数据文件中对于其他构件的父构件,因而具有组id和子id。因此把组id 0和子id 0给予背景构件20。图3显示了图2所示的motif显示的结构。为了描述构件的简便性,如果在第a组中的第b个子构件被定义为构件{a,b},则背景构件20是构件{0,0}。组1-4分别具有构件{0,0},{1,1},{2,1}和{3,1},正如他们的父构件那样。在同一个父构件下的相同类型的构件通常被包括在同一组中,但是在某些情况下可在不同的组中,例如为了分配不同的字体给同一组中的构件,或为了方便地给管理构件时。接着将描述构件生成函数。To generate the motif display structure shown in Figure 2, 4 component groups and 5 subcomponents were used. The 4 groups have one, one, one and two subcomponents respectively. Although the background widget 20 at the bottom (ie the form widget) does not belong to any group, it is used as a parent widget to other widgets in the data file and thus has a group id and a child id. The background component 20 is thus given
(3)构件生成函数(3) Component generation function
构件生成函数执行以下功能:通过在存储器分配(malloc)需要的多个子构件,在父构件上建立子构件;改变子构件特性,例如位置和颜色;以及返回子构件指针。返回的指针值被编组和被用来通过组id和子id标识子构件。父构件的数据以及子构件的数目,位置和颜色可从数据文件中的构件结构中得出。具有复杂结构的复合构件当必要时可被形成。例如,为了生成具有三维视觉效果的管理器构件,3个被存储分配(malloc)的窗体构件被分配不同的颜色,并轻微偏移重叠。虽然子构件相对于父构件的位置由在父构件底部的窗体构件确定,但是在父构件顶部的窗体构件地址被返回作为构件组的地址。对构件生成函数没有特定的限制,他们可由用户定义,只要在复合的管理器构件生成函数中窗体构件的指针被返回。这是因为其他的构件只能在包括窗体构件的复合管理器构件上被定位。如果表示每个函数的字符串在一个if-语句中被利用,则想要的构件生成函数可通过只读一个函数而不包括以单独的代码表示的几个构件的生成函数而被实现。下面将描述按照本发明实施例建立用于构件成批生成的数据文件。The widget creation function performs the following functions: builds subwidgets on a parent widget by allocating (malloc) as many subwidgets as needed in memory; changes subwidget properties, such as position and color; and returns subwidget pointers. The returned pointer value is marshaled and used to identify sub-components by group id and sub-id. The data of the parent component as well as the number, position and color of the child components can be derived from the component structure in the data file. Composite members with complex structures can be formed when necessary. For example, to generate a manager widget with a 3D visual effect, 3 malloced widgets are assigned different colors and slightly offset to overlap. While the position of the child widget relative to the parent is determined by the form widget at the bottom of the parent, the address of the form widget at the top of the parent is returned as the address of the widget group. There are no specific restrictions on the component generator functions, they can be defined by the user, as long as the pointer of the window component is returned in the composite manager component generator function. This is because other widgets can only be positioned on the Composite Manager widget that includes the Form widget. If the character string representing each function is utilized in an if-statement, the desired component generating function can be realized by reading only one function without including the generating functions of several components expressed in separate codes. The establishment of data files for batch generation of components according to the embodiment of the present invention will be described below.
(4)建立用于构件成批生成的数据文件(4) Establish data files for batch generation of components
现在将分析在数字蜂窝系统中用于通过构件生成函数实现的和在基站管理器的报警显示中使用的简单的motif显示的数据文件。应当注意到,这个数据文件不是理想的,它可由编程员自由定义。相应于图2的数据文件被给出为:The data files for a simple motif display in a digital cellular system implemented by a component generation function and used in an alarm display of a base station manager will now be analyzed. It should be noted that this data file is not ideal and it can be freely defined by the programmer. The data file corresponding to Figure 2 is given as:
4:1112
KND01{BigButtons}
KND02{BigButtons}
KND03{BigButtons}
KND04{verticaldrawn}
PRT01{0,0}
PRT02{1,1}
PRT03{2,1}
PRT04{3,1}
POS01{25,76,3,97}
POS02{5,95,5,95}
POS03{5,93,5,95}
POS04{7,93,15,43}{7,95,57,85}
COL01{whitesmoke,grey50,lightgrey}
COL02{grey50,whitesmoke,grey70}
COL03{whitesmoke,grey50,lightgrey}
COL04{NULL,NULL,limegreen}{NULL,NULL,limegreen}
STR01{NULL}
STR02{NULL}
STR03{NULL}
STR04{A}{B}
4:1112
KND01{BigButtons}
KND02{BigButtons}
KND03{BigButtons}
KND04{verticaldrawn}
PRT01{0,0}
PRT02{1,1}
PRT03{2,1}
PRT04{3,1}
POS01{25, 76, 3, 97}
POS02{5, 95, 5, 95}
POS03{5, 93, 5, 95}
POS04{7, 93, 15, 43} {7, 95, 57, 85}
COL01{whitesmoke, grey50, lightgrey}
COL02 {grey50, whitesmoke, gray70}
COL03{whitesmoke, grey50, lightgrey}
COL04{NULL, NULL, limegreen} {NULL, NULL, limegreen}
STR01{NULL}
STR02{NULL}
STR03{NULL}
STR04{A}{B}
第一行表示有四个分别具有一个,一个,一个和两个子构件的构件组。这些数被用于构件生成函数所需要的构件存储器分配,他们应当在第一行以固定次序安置。‘KND’表示构件的类型或种类,它应当放置在一行的起始端,因为它通常用作为表示数据文件中想要的数据的位置的记号。表示构件类型的字符串(字符序列)被括在{}中,不考虑其他的字符序列。可定义字符串以表示由用户初始化的构件生成函数。The first row indicates that there are four component groups with one, one, one and two subcomponents respectively. These numbers are used for component memory allocation required by component generation functions, and they should be placed in a fixed order on the first line. 'KND' indicates the type or kind of component, and it should be placed at the beginning of a line, because it is usually used as a mark indicating the position of the desired data in the data file. A character string (character sequence) representing a component type is enclosed in {}, and other character sequences are not considered. A string can be defined to represent a user-initialized component generation function.
‘PRT’表示父构件,具有用逗号分开的父构件的组id和子id。在指定父构件时,应当保持父构件和其后的构件的顺序。否则父构件将不能被识别,导致非预期的显示。'PRT' means the parent widget, with the parent widget's group id and child id separated by commas. When specifying a parent component, the order of the parent component and subsequent components should be maintained. Otherwise the parent widget will not be recognized, resulting in unexpected display.
‘POS’表示子构件相对于父构件的顶部,底部,左边和右边位置,以百分数表示。假定,构件完全占据父构件,则构件相对位置是{0,100,0,100}。通常,相对最小位置是1,没有小数点。在想要的位置需要1以下的坐标的情况下,在父构件上生成空的构件,然后一个构件被放置在空的构件上。'POS' represents the top, bottom, left and right position of the child widget relative to the parent widget, expressed as a percentage. Assuming that the component completely occupies the parent component, the relative position of the component is {0, 100, 0, 100}. Typically, the relative minimum position is 1, with no decimal point. In the case where the desired position requires a coordinate below 1, an empty widget is generated on the parent widget, and then a widget is placed on the empty widget.
‘COL’提供构件的颜色信息,例如顶部阴影,底部阴影和背景。‘NULL’表示不用的颜色,颜色项应当和在文本文件rgb.txt中的定义一致。'COL' provides color information for widgets such as top shadow, bottom shadow and background. 'NULL' means an unused color, and the color item should be consistent with the definition in the text file rgb.txt.
‘STR’包括附加在构件上的字符串信息。为了得出不带有字符串的子构件,数据文件中的子构件的颜色信息应当空白。为了从一组中的所有子构件中去除字符串,应当在子构件的颜色信息中标上‘NULL’。'STR' includes string information attached to the component. In order to get sub-components without strings, the color information of the sub-components in the data file should be blank. To remove a string from all subcomponents in a group, 'NULL' should be marked in the subcomponent's color information.
图5是按照本发明的实施例的motif构件成批生成设备的方框图。该设备具有数据编制单元50,批生成结构定义单元52和复合构件成批生成控制单元54。数据编制单元50把成批生成构件所需的构件生成数据编制为GUI对象。批生成结构定义单元52定义用于在相应的构件组单元中读所编制的构件生成数据的一个批生成结构。复合构件成批生成控制单元54从数据编制单元50中读出为该批生成结构定义单元52的指令所请求的相应的数据文件,并通过使用对于构件成批生成的构件生成函数生成想要的复合构件。Fig. 5 is a block diagram of a motif component batch generation device according to an embodiment of the present invention. This device has a
图4中显示了按照本发明的实施例的用于构件成批生成的算法。打开数据编制单元50中的数据文件(步骤100)。然后构件组的号码PAGE.N[0]和在第n组中的子构件的号码PAGE.N[n]被从数据文件中读出(步骤102)。参照图2和3,PAGE.N[0]是4,且PAGE.N[1]到PAGE.N[4]分别是1,1,1和2。An algorithm for batch generation of components according to an embodiment of the present invention is shown in FIG. 4 . The data file in the
在步骤104,通过使用malloc(存储器分配),构件结构被分配给存储器。结构PAGE存储从数据文件读出的构件结构信息。At step 104, the component structure is allocated to memory by using malloc (memory allocation). Structure PAGE stores component structure information read from data files.
在步骤106,i和j分别表示组id和子id,都被设置为1。然后,i被从1增加到PAGE.N[0],且j被从1增加到PAGE.N[n],其中n表示在1到PAGE.N[PAGE.N[0]]之间的任意的组id。接着,确定i是否小于或等于PAGE.N[0](步骤108)。参照图2和3,PAGE.N[0]是4,它大于1(i),这样,程序进到步骤110。In
在步骤110确定j是否小于或等于PAGE.N[i]。因为j在此刻等于1,所以它也等于PAGE.N[i],这样,程序进到步骤112。In
在步骤112从数据文件读出构件的类型或种类KNDPTR[i],父构件PRTPTR[i][j],构件相对于父构件的位置POSPTR[i][j],和构件的颜色COLPTR[i][j]与字符串STRPTR[i][j]。i和j的当前值分别是1。在步骤112读出的数据被用来生成构件。在步骤114,通过使用构件生成函数,生成相应于PAGE.KNDPTR[组id]的复合构件。参照图2和3,通过使用相应的构件生成函数PAGE.KNDPTR[1],生成组1的复合构件。构件生成函数包括用于生成想要的复合构件的函数,他们通过键入PAGE.KNDPTR[组id]而被实现。In
在步骤116,把j增加1,且程序返回步骤110。现在j是2,j大于PAGE.N[1]。因而,程序跳到步骤118。在步骤118,把i增加1,且j被设置为1,程序返回到步骤108。At
通过以上程序,组1的复合构件成批生成,然后重复步骤108-118,同时顺序把i和j增加1。因而组2-4的复合构件在一批中生成。如果生成了全部组的所有子构件,则程序进到步骤120,且关闭数据文件。Through the above procedure, the composite components of
如上所述,在使用按照本发明的motif函数的构件成批生成方法中,通过编制构件生成函数容易成批生成构件。而且通过在数据文件中修改构件结构减少了工作时间,它不需要编译。另外使用用于自动读出数据文件和生成构件的功能使编码更容易,并提高工作效率。As described above, in the component batch generation method using the motif function according to the present invention, components are easily generated in batches by programming component generation functions. And the work time is reduced by modifying the component structure in the data file, which does not require compilation. In addition, using functions for automatically reading out data files and generating components makes coding easier and improves work efficiency.
虽然本发明的说明性实施例在此是参考附图描述的,但应当明白,本发明并不限于那些精确的实施例,以及各种其他改变和修改可由本领域技术人员做出,而不背离本发明的范围和精神。While illustrative embodiments of the present invention are described herein with reference to the drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various other changes and modifications may be made by those skilled in the art without departing from scope and spirit of the invention.
Claims (16)
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| KR13063/1997 | 1997-04-09 | ||
| KR13063/97 | 1997-04-09 | ||
| KR1019970013063A KR100241881B1 (en) | 1997-04-09 | 1997-04-09 | Method and apparatus for generating motif widget in the bundle |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1202077A true CN1202077A (en) | 1998-12-16 |
| CN1196353C CN1196353C (en) | 2005-04-06 |
Family
ID=19502307
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB981059295A Expired - Fee Related CN1196353C (en) | 1997-04-09 | 1998-04-09 | Motif widget batch generating method and device |
Country Status (7)
| Country | Link |
|---|---|
| JP (1) | JPH10283168A (en) |
| KR (1) | KR100241881B1 (en) |
| CN (1) | CN1196353C (en) |
| DE (1) | DE19812378B4 (en) |
| FR (1) | FR2762179A1 (en) |
| GB (1) | GB2324231B (en) |
| RU (1) | RU2155455C2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7337401B2 (en) * | 2002-12-18 | 2008-02-26 | Microsoft Corporation | User interface element representation with simplified view |
| KR100848129B1 (en) * | 2006-12-07 | 2008-07-24 | 한국전자통신연구원 | Method for providing a personalization service in ubiquitous environment and intelligent gadget therefor |
| KR100801650B1 (en) | 2007-02-13 | 2008-02-05 | 삼성전자주식회사 | How to execute a function on the standby screen of the mobile terminal |
| KR100747663B1 (en) * | 2007-05-04 | 2007-08-08 | 주식회사 위즈커뮤니케이션 | How to control widgets and mobile devices that can run widgets |
| CN104699455B (en) * | 2014-01-24 | 2017-10-10 | 杭州海康威视数字技术股份有限公司 | Carry out method, system and the warning keyboard of alarm host machine setting |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2730023B2 (en) * | 1986-03-19 | 1998-03-25 | 日本ビクター株式会社 | Magnetic recording / reproducing method |
| SU1443209A1 (en) * | 1987-05-14 | 1988-12-07 | Всесоюзный научно-исследовательский институт телевидения и радиовещания | Device for introducing alphanumeric information into displayed color televison image |
| JP3161614B2 (en) * | 1991-11-30 | 2001-04-25 | ソニー株式会社 | Video decoding device |
| DE19531961A1 (en) * | 1995-08-30 | 1997-03-06 | Siemens Ag | Alarm monitoring method for communication network |
-
1997
- 1997-04-09 KR KR1019970013063A patent/KR100241881B1/en not_active Expired - Fee Related
-
1998
- 1998-03-13 GB GB9805327A patent/GB2324231B/en not_active Expired - Fee Related
- 1998-03-20 DE DE1998112378 patent/DE19812378B4/en not_active Expired - Fee Related
- 1998-04-06 JP JP9313998A patent/JPH10283168A/en active Pending
- 1998-04-08 FR FR9804364A patent/FR2762179A1/en active Pending
- 1998-04-08 RU RU98106624A patent/RU2155455C2/en not_active IP Right Cessation
- 1998-04-09 CN CNB981059295A patent/CN1196353C/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| KR100241881B1 (en) | 2000-02-01 |
| CN1196353C (en) | 2005-04-06 |
| GB2324231A (en) | 1998-10-14 |
| GB2324231B (en) | 1999-07-07 |
| DE19812378A1 (en) | 1998-10-15 |
| FR2762179A1 (en) | 1998-10-16 |
| KR19980076374A (en) | 1998-11-16 |
| GB9805327D0 (en) | 1998-05-06 |
| DE19812378B4 (en) | 2004-12-09 |
| JPH10283168A (en) | 1998-10-23 |
| RU2155455C2 (en) | 2000-08-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100235219B1 (en) | Apparatus and method for managing the assignment of display attribute identification values and multiple hardware color look-up tables | |
| US20230244537A1 (en) | Efficient gpu resource allocation optimization method and system | |
| US7325118B2 (en) | Method and apparatus for executing dynamic memory management with object-oriented program | |
| CN1831766A (en) | Method and system for managing development objects for computer program code | |
| CN110705237B (en) | Automatic document generation method, data processing device and storage medium | |
| WO2021098579A1 (en) | Chart drawing method, device, apparatus and storage medium | |
| CN1202077A (en) | Method and device for generating graphical interface system components in batches | |
| US6951011B1 (en) | Diagnostic method and article for identifying significant events | |
| CN111736950B (en) | Accelerator resource adding method and related device of virtual machine | |
| CN1226028A (en) | Component-based control structure for wireless communication | |
| CN1692576A (en) | Telecommunications systems with non-(re)assignable and (re)assignable time slots | |
| JP3715863B2 (en) | How to interleave memory between memory banks | |
| CN102611580B (en) | Multi-version network management method based on specification drive | |
| CN1870806A (en) | Method for monitoring cell code resource | |
| CN1949173A (en) | Software assembling method and apparatus thereof | |
| KR100237286B1 (en) | Pld manufacturing method of cdma and pcs | |
| CN118695442B (en) | Light emitting device, multi-layer lamp effect application method, corresponding device and medium | |
| CN1108044C (en) | A data system and a method for implementing the system | |
| CN109246902B (en) | Light editing method and computer readable storage medium | |
| US20020099872A1 (en) | Allocating registers for use in programming code modification | |
| JPH0793185A (en) | Software automatic test system | |
| CN108733364B (en) | Script language character string file macro replacement method | |
| CN112541147A (en) | Content publishing management method and system | |
| CN105512308A (en) | Intelligent accelerated drawing method for character library | |
| KR100282781B1 (en) | How to Implement Alarm Graphics in IMT 2000 Base Station System |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C06 | Publication | ||
| PB01 | Publication | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C19 | Lapse of patent right due to non-payment of the annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |