




已阅读5页,还剩11页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Balsamiq Mockups 自定义控件和页面模板Working with SymbolsStarting with version 2.0, Mockups for Desktop supports the concept of Symbols. Other software refers to this same feature as templates or master pages, components or widgets.从版本2.0开始,Mockups桌面版支持Symbol概念。类似特性在其它软件中称为Templates、Master pages、Components 或者Widgets。In essence, Symbols let you reuse common elements across different mockups.本质上,Symbol让你可以在多个Mockup文件引用公共的元素。Heres a quick video introduction that shows the benefits of this feature.Creating Symbols 创建SymbolSymbols in Mockups are simply named groups which have been “converted” to symbols (well talk more about what goes on under the hood later), but first, lets create a symbol!在Mockups中,Symbol是简单命名转化为Symbol形态的Group。待会我们会讨论更多它的帽底乾坤。现在,让我们先创建一个Symbol!You may create a new group to convert to a symbol or use a group you already have. The following steps assume you are creating a new group.你可以创建一个新的Group或者选择一个已经创建好的组来转化为Symbol。下列步骤假设从创建一个新的Group开始。1. Select the controls you want to group2. Group your selection (Select Edit-Group and group turns bluish color)3. Name the Group (i.e. login form)1. 选择想要群组的控件2. 群组选中控件。(选择Edit菜单下的Group命令,Group后会呈蓝色。)3. 为Group命名。(比如login form)4. Save the File with the new group (File must be saved to convert a group to a symbol.)5. Click on the Convert to Symbol icon in the Property Inspector to Symbol。4. 保存带有这个新Group的文件。(转化Group为Symbol之前文件必须要保存。)5. 在Property Inspector点击Convert to Symbol按钮转化为Symbol。You will notice that the group selection becomes a light green. This means that the selection is now an instance of a symbol.你会注意到Group选择变为了亮绿色。这表示选中的是Symbol的一个实例。You now have a symbol named login form which will be displayed in the Project Assets tab of the UI Library. (You can also add the symbol via Quick Add).你现在就有了一个名为“login form”的Symbol,它会显示在UI Library的Project Assets标签里。(同样也可通过Quick Add添加它。)Under the Hood 帽底乾坤When you hit “Convert to Symbol”, Mockups for Desktop added the named group you selected to a file called symbols.bmml in a folder called “assets” right next to your bmml files. You might want to refer to our best practices for creating projects with Mockups if you havent read it yet.一旦点击“Convert to Symbol”,Mockups桌面版会将选中的已命名Group添加到你BMML文件旁assets文件夹下symbols.bmml 文件中。如果不了解assets文件夹,你可能需要参考best practices for creating projects with Mockups(使用Mockups创建项目最佳实践)。The key to understanding Symbols in Mockups is that Symbols are named groups contained inside BMML files that are stored in your projects assets folder.理解Symbol的关键是,Symbol是存放在项目assets文件夹BMML文件中的已命名Group。We know the definition above is pretty dense, but understanding it fully will help you make the most out of this awesomely powerful feature. Dont worry if it makes little sense to you right now, well come back to it. Just read it one more time and move on. :)我们知道这个定义相当晦涩难懂,但彻底理解它有助于你掌握这个及其强大的特性。如果现在对Symbol还是没有什么概念,请别担心,我们一起回到前面,再学习一遍之后继续前进。;)Overriding Symbol Properties 重定义Symbol属性Once you have created a symbol, you will often want to change it a little each time you use it. Imagine for instance a Symbol you created as a master page / template, containing a web pages title and navigation.创建了Symbol后,每次使用时常常需要做一些小调整。假设你创建了一个Symbol作为Master Page/Temple,它包含了一个网页的标题和导航。All your website pages will have the same font size and position for the title, but the titles text should be different on each page. Same goes for which page should be shown as current in your navigation bar.整个网站的Page Title具有相同大小的字体和位置,但是每一个页面Title文本都有所不同。同样道理,导航栏标识某一个页面的当前地址也有所不同。Symbols allow you to achieve this result by letting you override symbol properties each time you use a symbol. To do so, start by double-clicking (or hitting ENTER, or F2) on a symbol to “enter it”.Symbol允许每一次使用时重定义属性达到这个目的。需要的时候,请在Symbol上双击、Enter或者按快捷键F2 “进入内部”。Although this experience is very similar to editing a groups contents, you will notice that Mockups for Desktop warns you that what youre doing is really overriding some properties of a Symbol.这很像编辑Group内容,但你会注意到一个提示,是否真的需要重新定义Symbol的属性。At this point, you can manipulate each control inside the symbols at will, as if you were editing a group. Some operations are not permitted while overriding symbol properties, such as adding, deleting or grouping controls.如同编辑Group一样,你可以随意调整Symbols里面每一个控件。超过Symbol属性的操作不被允许,比如添加、删除或者群组控件。If you make a mistake, you can always undo to get back. If you want to remove a single property change and go back to a Symbols default property, you can click on the little green “x” icon in the property inspector.如果做了误操作,你可以一直撤销返回。如果只想撤销Pos. & Size恢复为Symbol默认数值,可以点击Property Inspector中(Pos. & Size右边)绿色的“x”icon。You can also revert all changes you made to a Symbols instance at once, via the “x” icon in the property inspector you see when selecting the whole symbol.通过Property Inspector中(Symbol一栏最右边)的“x”icon,也可以一次性撤销全部操作(Pos. & Size和内容),恢复为Symbol实例。Editing a Symbols Source 编辑Symbol源文件The main benefit of reusable Symbols is that if you need to make a change, you can just do it in one place and it will be propagated to all the instances (uses) of that Symbol.重复使用Symbol的主要优点是,一旦需要做调整,只是编辑一个地方,就会更新所有Symbol的实例。To edit a Symbols source, you simply open the BMML file that contains the symbol and edit it normally, just as you would edit a group. Save your changes, go back to a mockups that uses that symbol and notice that your changes have been applied, just like that!编辑Symbol源文件,如同编辑Group。只需要打开BMML文件包含Symbol,然后编辑就可以了。保存你的更新,回到Mockups中使用Symbol,就会注意到变动已经生效了,就这样而已。There are a couple of shortcuts in the app that help you reach a Symbols source in order to edit it:程序提供2种快捷方式帮助你打开Symbol源文件以便于编辑。 You can select a Symbol instance and hit the “Edit Source” button in the property inspector. 你可以选中一个Symbol实例,在Property Inspector点击“Edit Source”。 You can enter a Symbol for overriding, then hit the “Edit” button there. 你可以进入一个Symbol实例,然后点击如下图的“Edit”按钮。Symbol LibrariesA Symbol Library is a collection of symbol definitions. You might want to create a Symbol Library in order to share common controls with your team, or share them with the community via Mockups To Go.To create a Symbol Library, all you have to do is to create a bmml file, create some groups (one per symbol) and give each group a name.Symbol Library是Symbol集合。你可以创建Symbol Library共享控件给你的团队,或者通过社区Mockups To Go分享它们。创建一个Symbol Library,必须创建一个BMML文件以及一些Group(每一个是一个Symbol),并且Group有各自的名字。Whenever someone saves your BMML in an asset folder, theyll be able to use the groups contained in it as Symbols in any mockup of that project.只要有BMML文件存到asset文件夹,其中的Group就会转化为在这个项目任何Mockup中都可以使用的Symbol。One more thingUsing Whole Mockups As Symbols 还有一件事情将整个Mockup作为SymbolTheres a little secret we havent shared with you yet. Remember how Symbols in Mockups are simply named groups contained inside BMML files that are saved in a projects asset folder?Well, it turns out thats not entirely true. Theres one more way to create a Symbol in Mockups: just create a mockup with NO GROUPS in it and save it in an assets folder. Mockups will detect this, and treat THE WHOLE MOCKUP as a symbol, named after the mockups file name.我们还有个小秘密还没有跟你分享。记得这句话吗?“在Mockups中,Symbol是简单命名转化为Symbol形态的Group,储存于项目assets文件夹的BMML文件中。”其实,这不是完全正确的。这里还有一个方式可以在Mockups中创建Symbol:创建一个没有Group的Mockup到assets文件夹。Mockups把将整个Mockup作为一个Symbol,名称跟随Mockup的文件名称。With this in mind, the full definition of symbols becomes as follows:考虑到这点,完成Symbol定义如下:Symbols in Mockups are either named groups contained inside BMML files that are saved in a projects asset folder, or BMML files with no groups in them, saved in a projects asset folder.在Mockups中,Symbol是保存在项目assets文件夹下BMML文件中被名命名的Group,以及该文件夹中没有Group的BMML文件。Sharing Symbols Across Projects 跨项目分享SymbolWhat? Youre still reading? You just cant get enough of Symbols can you? ;)什么?你还在看?这些Symbol的信息对你来说还不够吗?Allright, since youve asked for it, well spill all the beans for you. So far weve been talking about “project assets folders”, the directory called “assets” sitting next to your BMML files.好吧,既然你找上门来,我们只好彻底坦白。到现在我们已经多次谈及项目资源文件夹,这个名为“assets”的目录就在你BMML文件旁边。Thats all nice and good, but what if you want to share Symbols across all of your projects?这一切都很好,但是如果你想在所有项目中共享这些Symbol呢?To help uber-power-users like yourself, Mockups has a concept of an “account assets” folder. By default Mockups looks for it in your Documents folder, in a directory called “Balsamiq Mockups”, but you can specify where Mockups should look for it via the config file.为了帮助你这样的超级用户,Mockups引入了账户文件资源夹的概念。默认情况Mockups会寻找到你的“文档”文件夹,放置 “Balsamiq Mockups”文件夹,你也可以通过Config.file指定位置。If you put images or BMML files in a folder called “assets” inside of a folder called “Balsamiq Mockups” inside of your documents folder, those images and symbols will be accessible from any of your projects, under the “Account Assets” fold
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025山东青岛黄海饭店招聘2人笔试历年参考题库附带答案详解
- 2025华能铜川照金煤电有限公司招聘25人笔试历年参考题库附带答案详解
- 化学农药生产工测试考核试卷及答案
- 陶瓷装饰工基础考核试卷及答案
- 加氢稳定装置操作工专项考核试卷及答案
- 中药炮炙工技能操作考核试卷及答案
- 地层测试工岗位操作规程考核试卷及答案
- 金属材酸碱洗工工艺创新考核试卷及答案
- 2025年度中国农业科学院哈尔滨兽医研究所公开招聘18人模拟试卷及答案详解(全优)
- 民间工艺品制作工招聘考核试卷及答案
- 公关经理培训课程
- 异博定治疗方案
- 申请法院司法赔偿申请书
- 锻造操作机安全检查表模版
- 400字作文稿纸可修改模板
- 迪尔凯姆社会学主义的巨擎汇总课件
- 防排烟系统施工安装全程验收记录
- 家庭经济困难学生认定申请表
- 阀门安装及阀门安装施工方案
- YY 9706.240-2021医用电气设备第2-40部分:肌电及诱发反应设备的基本安全和基本性能专用要求
- JJF 1059.2-2012用蒙特卡洛法评定测量不确定度
评论
0/150
提交评论