uml建模工具中bouml的使用(整理版,中英文对照) 下载本文

这个bouml是基于Qt的,感觉挺好。

目前关注的功能:支持windows,linux等多种操作系统,运行快,体积小,可以支持代码生成,可以生成文档,可以导出为图片。感觉真的不错。 官方网址是:http://bouml.free.fr/index.html

有一个简易的教程,为了查看方便,转到我的博客里面了,网上也有中文的翻译我传到csdn上面了。

网址是:http://download.csdn.net/source/2268919 以下是我转载的内容:

Bouml – Tutorial

This tutorial is written to help you to use BOUML for the first time, only few features of BOUML are exposed here, but a full description of BOUML is given in the reference manual. 本教程主要为了帮助您第一次起用BOUML。在这里仅显露BOUML少数的特点,而BOUML完整描述参见其参考手册。

The tutorial must be read in order because I will not repeat each time the general commands to call a menu etc ...

本教程必须按序阅读,因为我不会每次重复诸如调用菜单等一般性的命令。

Starting启动 When you execute BOUML the following message appears, hit ok this time, but you will have to define you own identifier for an effective usage of BOUML :

当您执行BOUML出现下面消息, 按确定(OK)按钮。但你将不得不定义你自己的有效的BOUML标识:(1~127中的整数)。

The BOUML window appears (the drawing is dependent on the used release of Qt, here the 2.4 under Linux to be compatible with the Windows release) :

在BOUML视窗显现(图样取决于使用的Qt版本,这里是在Linux下运行的2.4版本,与Windows版本兼容):

- 1 -

The bouml window is composed of three parts : bouml窗口由三个部分组成

The left sub-window display a browser presenting your project, the navigation may be done by the mouse or the keyboard's arrows. The bold font is used when an item is modifiable, an item is read-only when you do not have the write permission for the file(s) supporting it.

? 左边的子窗口是一个展示您项目的浏览器,可由鼠标或上下左右键进行导航。 黑体的字体表示该项是可修改的,当您没有文件写权限时则一个项是只读。

The bottom-right sub-window is used to display/modify the comment associated to the current selected item.

? 右下角的子窗口是用来显示/修改与当前所选项相关联的注释。

The top-right part is used to display/modify the diagrams, these ones may be maximized or minimized.

? 右上方的部分是用来显示/修改图表,这些窗口可以的最大化或最小化。

Obviously the respective sizes of the sub-windows may be changed, placing the mouse on the separation between them. Note : if you have at least a dual monitor configuration the better is to set the environment variable BOUML_LIMIT_DESKTOP, see here.

显然地,个别子窗的大小会发生改变,当把鼠标放在它们之间的分拆处时,可以更改窗口大小。注意:如果你有双监视器配置,更好的办法是设置环境变量BOUML_LIMIT_DESKTOP,参见此地。

At this level you have to create a new project, or to load an already existing project. 在此水平下你必须创建一个新的项目,或加载一个已经存在的项目。

Create a new project创建一个新项目

- 2 -

Here we create a new project : in the menu Project choose new, a file dialog appears (its aspect depend on the used system and window manager) and you have to select the directory where the project will be placed and its name, I choose the project foo placed under /tmp :

这儿,我们创建一个新项目:在Project菜单中选择New菜单项,呈现一个文件对话框(它的外观取决于所用的系统和窗口管理器),请求输入项目名称,你必须选择一个目录用以存放项文件,并选择输入项目名字,我输入项目名为foo,放置在/ tmp目录之下:

In this case BOUML creates the directory foo under /tmp, and places some files in /tmp/foo including foo.prj which is the file to load when you will re-load this project. Note : do not rename or delete the files produced by BOUML nor the directory itself !

在这种情况下BOUML 在/tmp下创建目录foo(即\\tmp\\foo),并将某些文件(包括foo.prj)

放置在/tmp/foo目录之下。当重新加载工程时(foo.prj),这些文件都会加载。 !注意: 不要重命名或删除由BOUML产生的文件,以及目录本身!

A new dialog appears :

接着显示一个新的对话框:

- 3 -

Following the recommendation, I set for instance the toggle for C++ and Java in the Language menu (we will see why later) :

遵循以下的建议,通过Language菜单我为此例切换为C + +和Java的语言(以后我们将看到为什么这样做):

The name of the project appears in the browser, the project is the top level package, a right mouse click on it produces the menu :

该项目的名称显示在浏览器中,该项目是顶级包 ,其上点击鼠标右键产生的菜单:

- 4 -