JPH07121338A - System for constructing gui - Google Patents

System for constructing gui

Info

Publication number
JPH07121338A
JPH07121338A JP5268576A JP26857693A JPH07121338A JP H07121338 A JPH07121338 A JP H07121338A JP 5268576 A JP5268576 A JP 5268576A JP 26857693 A JP26857693 A JP 26857693A JP H07121338 A JPH07121338 A JP H07121338A
Authority
JP
Japan
Prior art keywords
widget
gui
size
mouse
parts
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.)
Pending
Application number
JP5268576A
Other languages
Japanese (ja)
Inventor
Yoko Shiraishi
陽子 白石
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5268576A priority Critical patent/JPH07121338A/en
Publication of JPH07121338A publication Critical patent/JPH07121338A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide the system for constructing the GUI capable of performing the accurate arrangement without any correction work by displaying a mesh on a master widget being constructed and displaying the attribute values of parts. CONSTITUTION:A mouse is moved while pushing a mouse button to decide the dimension of a top level 8. When the button is released, a top level 9 with mesh is displayed and the dimension is decided. Similarly, a slave widget 10 is prepared on the top level 9. In this case, the dimension of the slave widget and the position 10.1 are displayed. Thus, even when a complicated screen with many number of parts is prepared, the accurate screen can be constructed in a short time.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、UNIXワークステー
ションのGUI(Graphical User Interface)のための基
礎手段であるXウィンドウ・システムにおける、高レベ
ルGUIを提供するOSF/Motif ウィジェットを、プ
ログラミングを行う代わりに簡単にかつ視覚的に、実際
に動作させながら開発できるGU構築方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is an alternative to programming an OSF / Motif widget that provides a high level GUI in the X window system which is the basic means for GUI (Graphical User Interface) of UNIX workstations. The present invention relates to a GU construction method that can be easily and visually developed while actually operating.

【0002】[0002]

【従来の技術】従来のGUI構築方式では、プログラミ
ングで記述していたため、プログラミングの技術習得に
時間がかかる、修正・変更作業が困難であるといった問
題があった。これに対して、現在市場には様々な機能を
もつGUI構築ツールが流通しており、一般にウィンド
ウ上にウィジェットを配置する、ウィジェットに各種の
属性を付加する、構築したGUIからソースコードを生
成するといった機能を備えている。
2. Description of the Related Art In the conventional GUI construction method, since the description is made by programming, there are problems that it takes a long time to learn the programming technique and it is difficult to make corrections / changes. On the other hand, GUI construction tools having various functions are currently on the market, and generally, a widget is arranged on a window, various attributes are added to the widget, and a source code is generated from the constructed GUI. It has such a function.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術は、作成
しようとする画面の部品を配置する際、視覚的に行うた
め、複数の部品を並べる場合に整列されず、また、位置
座標や大きさを数値でそろえるために、それぞれの部品
の属性を指定するファイルを修正しなければならないと
いう問題があった。
In the above-mentioned prior art, since the parts of the screen to be created are arranged visually, they are not aligned when a plurality of parts are arranged, and the position coordinates and size are not aligned. There was a problem that the files that specify the attributes of each part had to be modified in order to arrange the values numerically.

【0004】本発明は、親ウィジェット上にメッシュを
表示し、かつ部品の属性値を表示することにより、修正
作業なしで正確な配置を行うことができるGUI構築方
式を提供することを目的とする。
It is an object of the present invention to provide a GUI construction method capable of performing an accurate layout without a modification work by displaying a mesh on a parent widget and displaying attribute values of parts. .

【0005】[0005]

【課題を解決するための手段】上記目的を達成するため
に、マウスのボタンが押された、マウスのボタンが解除
された、マウスが移動したというマウスの状態を検知
し、イベント・タイプ別に処理を振り分ける。マウスの
ボタンが押されたときは、部品の位置座標を入手し、マ
ウスのボタンが解除されたときは、部品内にメッシュを
描画し、子ウィジェットを配置しやすくする。マウスが
移動したときは、部品の配置位置座標と現在の大きさ
(幅×高さ)を表示することを可能にしたものである。
[Means for Solving the Problems] In order to achieve the above object, the state of the mouse, such as the mouse button being pressed, the mouse button being released, or the mouse being moved, is detected and processed by event type. Sort out. When the mouse button is pressed, the position coordinates of the component are obtained. When the mouse button is released, a mesh is drawn in the component to facilitate the placement of child widgets. When the mouse is moved, it is possible to display the position coordinates of the component and the current size (width x height).

【0006】[0006]

【作用】本発明の構築方式は、メッシュの描画及び部品
の位置座標と大きさを表示するため、即座に正確な部品
の配置を行うことができる。さらに、属性ファイルの修
正作業がなくなるため、画面作成工数を削減することが
できる。
According to the construction method of the present invention, since the drawing of the mesh and the position coordinates and sizes of the parts are displayed, the parts can be immediately and accurately arranged. Furthermore, since the work of modifying the attribute file is eliminated, it is possible to reduce the number of screen creation steps.

【0007】[0007]

【実施例】以下、本発明の実施例を示す。EXAMPLES Examples of the present invention will be shown below.

【0008】ユーザは、メニューによる選択によってア
プリケーションの外観を定義し、ユーザ・インタフェー
スを対話的にレイアウトできるGUI構築ツールを使用
するものとする。
The user shall use a GUI construction tool that allows the user to interactively lay out the user interface by defining the appearance of the application through menu selections.

【0009】最初にGUI構築ツールを使用した開発の
流れを示す。
First, the flow of development using the GUI construction tool will be shown.

【0010】図1において、ユーザ1はキーボード2と
マウス3を用いて、CRT.ディスプレイ4上でエディ
タを使ってGUIを構築する。その結果、部品を定義し
たCソースコード5と属性を定義したリソースファイル
6が自動生成される。各部品に対応する処理は、ユーザ
・アプリケーション7で定義する。
In FIG. 1, a user 1 uses a keyboard 2 and a mouse 3 to display a CRT. Build a GUI using an editor on the display 4. As a result, the C source code 5 defining the parts and the resource file 6 defining the attributes are automatically generated. The processing corresponding to each component is defined by the user application 7.

【0011】GUI対応のアプリケーションは、すべて
ユーザからの入力(イベント)をきっかけに各種の処理
を実行する形式になっている。すなわち画面上の部品に
対し、クリックやキー入力といったイベントを発生さ
せ、それに対しシステムはあらかじめ決められたリアク
ションをとり、ユーザの要求する処理を行うのである
(図2)。
All GUI-compatible applications are of a type that executes various processes triggered by an input (event) from the user. That is, an event such as a click or a key input is generated for a component on the screen, and the system takes a predetermined reaction in response to the event and performs the processing requested by the user (FIG. 2).

【0012】図3は作成しようとするGUI画面例であ
る。画面構成の他に部品の大きさ,部品の位置まで設計
しなければならない。従来方式では、属性ファイルの作
成及び修正が必要であったが、本発明のGUI構築方式
では、画面の作成を行いながら属性の確認が可能であ
る。
FIG. 3 shows an example of a GUI screen to be created. In addition to the screen configuration, the size and position of the parts must be designed. In the conventional method, it is necessary to create and modify the attribute file, but in the GUI construction method of the present invention, it is possible to confirm the attribute while creating the screen.

【0013】図4において、ユーザはCRT.ディスプ
レイ上で画面を作成しようとする位置へカーソルを置
き、マウスボタンを押しながらマウスをずらし、作成し
ようとする画面の親ウィジェットとなるトップレベル8
の大きさを決める。このとき8.1 のように、部品の大
きさ、すなわち、幅×大きさが表示されるため、視覚的
な大きさばかりでなく、数値的に実際の大きさを確認し
ながら、設計どおりの値で部品を作成することができ
る。
In FIG. 4, the user is a CRT. Place the cursor on the display at the position where you want to create a screen, hold down the mouse button and move the mouse, and then use the top level 8 as the parent widget of the screen you are creating.
Decide the size of. At this time, as shown in 8.1, the size of the part, that is, the width x size is displayed. Therefore, not only the visual size but also the actual size can be confirmed numerically and as designed. You can create parts with values.

【0014】トップレベル8の大きさが決定したなら
ば、マウスボタンを放す。すると、トップレベル8上に
メッシュを描画したトップレベル9が表示される。
When the size of the top level 8 is determined, the mouse button is released. Then, the top level 9 in which the mesh is drawn on the top level 8 is displayed.

【0015】次にトップレベル9に子ウィジェット10
を構築する。同様にして、メッシュ上で部品を作成しよ
うとする位置ヘカーソルを置き、マウスボタンを押しな
がらマウスをずらし、作成しようとする画面の子ウィジ
ェットとなる部品の大きさを決める。このとき10.1
のように、部品の大きさと位置座標、すなわち、幅×高
さ±x±yが表示される。表示される子ウィジェットの
位置は親ウィジェットを基準とした位置である。表示さ
れる値は、部品の大きさ,位置が変わるに従い、随時更
新されていく。
Next, the child widget 10 is added to the top level 9.
To build. Similarly, place the cursor on the position where you want to create a part on the mesh, and move the mouse while pressing the mouse button to determine the size of the part that will be the child widget of the screen to be created. At this time 10.1
The size and position coordinates of the part, that is, width × height ± x ± y are displayed as shown in FIG. The position of the displayed child widget is the position based on the parent widget. The displayed value is updated at any time as the size and position of the part change.

【0016】次に本発明に関するイベント処理の具体例
を示す。
Next, a specific example of event processing according to the present invention will be described.

【0017】図5において、親ウィジェットとなるトッ
プレベル上でマウスボタンを押すと、マウスボタンが押
されたというイベントが発生し、それに対しシステムは
子ウィジェットの現在位置を調べる関数を呼び出す。関
数はXウィンドウ・システム上で定義済みのライブラリ
内に存在する。マウスボタンを押しながらマウスを動か
すと、マウスが移動したというイベントが発生し、それ
に対しシステムは作成中のウィジェットの位置と大きさ
を調べる関数を呼び出す。このとき、マウスカーソルに
合わせて部品の大きさを更新し、位置座標と大きさを示
す値も更新していく。つまり、前回の図形や文字を消去
し、新規の図形や文字を描画することを繰り返す。マウ
スボタンを放すと、マウスボタンが放されたというイベ
ントが発生し、それに対しシステムは子ウィジェットの
位置と大きさを確定し、図形,文字列の更新を終了す
る。また、作成中のウィジェットが親ウィジェットとな
るトップレベルのときは、ウィジェット内にメッシュを
描画する処理を行う。すなわち、直線を描く関数を呼び
出す。線分の始点座標と終点座標については、トップレ
ベルの大きさをもとにユーザが決めた線分の間隔を登録
できるものとする。
In FIG. 5, when the mouse button is pressed on the top level which is the parent widget, an event that the mouse button is pressed occurs, and the system calls a function for checking the current position of the child widget. The function resides in a predefined library on the X Window System. If you move the mouse while holding down the mouse button, the event that the mouse has moved occurs, and the system calls a function to check the position and size of the widget being created. At this time, the size of the component is updated according to the mouse cursor, and the position coordinates and the value indicating the size are also updated. That is, the previous figure or character is erased, and a new figure or character is drawn. When the mouse button is released, the event that the mouse button is released occurs, and in response to this, the system determines the position and size of the child widget, and finishes updating the figure and character string. Also, when the widget being created is the top level that is the parent widget, the process of drawing a mesh in the widget is performed. That is, a function that draws a straight line is called. Regarding the start point coordinates and the end point coordinates of the line segment, it is possible to register the interval of the line segment determined by the user based on the size of the top level.

【0018】このように、GUI構築ツールにおいて、
親ウィジェット上にメッシュを表示し、部品の位置座標
と大きさを表示する機能を有することにより、厳密に部
品の配置を視覚的に行うことができる上、属性ファイル
の修正作業がなくなるため、生産性を大幅に上げること
ができる。
As described above, in the GUI construction tool,
By displaying the mesh on the parent widget and displaying the position coordinates and size of the parts, it is possible to visually perform the strict placement of the parts, and there is no need to modify the attribute file. You can significantly increase the sex.

【0019】[0019]

【発明の効果】本発明によれば、親ウィジェット上にメ
ッシュが表示され、部品の位置座標と大きさが表示され
るので、部品数の多い複雑な画面を作成しようとして
も、短時間で正確な画面を構築できる効果がある。
According to the present invention, since the mesh is displayed on the parent widget and the position coordinates and size of the parts are displayed, even if an attempt is made to create a complicated screen with a large number of parts, it will be accurate in a short time. There is an effect that you can build a different screen.

【図面の簡単な説明】[Brief description of drawings]

【図1】GUI構築ツールを使用した開発の流れを示し
た図である。
FIG. 1 is a diagram showing a flow of development using a GUI construction tool.

【図2】イベント駆動型モデルを示した図である。FIG. 2 is a diagram showing an event-driven model.

【図3】GUI画面の具体例を示した図である。FIG. 3 is a diagram showing a specific example of a GUI screen.

【図4】本発明の一実施例を示した図である。FIG. 4 is a diagram showing an embodiment of the present invention.

【図5】イベント処理の具体例を示した図である。FIG. 5 is a diagram showing a specific example of event processing.

【符号の説明】[Explanation of symbols]

1…ユーザ、2…キーボード、3…マウス、4…CR
T.ディスプレイ、5…部品、6…リソース、7…ユー
ザ・アプリケーション、8…親ウィジェット、9…メッ
シュ付親ウィジェット、10…子ウィジェット。
1 ... User, 2 ... Keyboard, 3 ... Mouse, 4 ... CR
T. Display, 5 ... Parts, 6 ... Resource, 7 ... User application, 8 ... Parent widget, 9 ... Parent widget with mesh, 10 ... Child widget.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】メニューによる選択によってアイコンやス
クロール・バーなどのアプリケーションの外観を定義
し、ユーザ・インタフェースを対話的にレイアウトでき
るGUI構築ツールにおいて、GUI画面内の部品を作成
中にメッシュを表示し、かつ現在作成中の部品の位置座
標と大きさを表示する機能を設けたことを特徴とするG
UI構築方式。
1. A GUI construction tool capable of interactively laying out a user interface by defining the appearance of an application such as icons and scroll bars by selection from a menu, and displaying a mesh while creating parts in a GUI screen. In addition, a function for displaying the position coordinates and the size of the part currently being created is provided.
UI construction method.
JP5268576A 1993-10-27 1993-10-27 System for constructing gui Pending JPH07121338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5268576A JPH07121338A (en) 1993-10-27 1993-10-27 System for constructing gui

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5268576A JPH07121338A (en) 1993-10-27 1993-10-27 System for constructing gui

Publications (1)

Publication Number Publication Date
JPH07121338A true JPH07121338A (en) 1995-05-12

Family

ID=17460447

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5268576A Pending JPH07121338A (en) 1993-10-27 1993-10-27 System for constructing gui

Country Status (1)

Country Link
JP (1) JPH07121338A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048408A (en) * 2004-08-05 2006-02-16 Obic Business Consultants Ltd Input and output screen creation system, input and output screen creation method and business processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006048408A (en) * 2004-08-05 2006-02-16 Obic Business Consultants Ltd Input and output screen creation system, input and output screen creation method and business processing system

Similar Documents

Publication Publication Date Title
Myers User-interface tools: Introduction and survey
US5555357A (en) Computer system and method for generating and manipulating charts and diagrams
CA1313419C (en) Valuator menu for use as a graphical user interface tool
US5867144A (en) Method and system for the direct manipulation of information, including non-default drag and drop operation
US7287241B2 (en) Snaplines for control object positioning
US8504930B1 (en) User interface substitution
JPH0282307A (en) Information input method and user interface constituting method using the method
KR20040039003A (en) method, display system and software for controlling icon
JPH0991338A (en) Parameter input method for verification of logical design
US6583786B2 (en) Method for dimensioning graphical objects displayed on a display device
JPH0830637A (en) Automatic layout system
JPH07121338A (en) System for constructing gui
KR101933886B1 (en) Program developer and object editing method
JPH06274304A (en) Computer system provided with graphical user interface and its control method
JPH09138812A (en) Analytic model generating method and its device
JPH0652278A (en) Data processing system and value selecting method
JPH021025A (en) System for generating exclusive selector of user interface
US20230008654A1 (en) Method for pointer-based user interaction in a CAE/CAD system
JP3641539B2 (en) How to handle custom buttons
JPH0916368A (en) Object editing system
JPH0317741A (en) Program production support device
JP2001282405A (en) Coordinate input device
JPH04340128A (en) Automatic generation system for program code
JPH06301523A (en) Execution program setting device
JPH01251216A (en) Menu display system