⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cpwindow.c

📁 这个工具集提供以下结构化分析和UML分析中所用的图形化绘图工具:ER-diagrams, data and event flow diagrams and state-transition diagr
💻 C
字号:
//////////////////////////////////////////////////////////////////////////////////// This file is part of Toolkit for Conceptual Modeling (TCM).// (c) copyright 1999, Vrije Universiteit Amsterdam and University of Twente.// Author: Frank Dehne (frank@cs.vu.nl).// Author: Henk van de Zandschulp (henkz@cs.utwente.nl).//// TCM is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of the License, or // (at your option) any later version.//// TCM is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// You should have received a copy of the GNU General Public License// along with TCM; if not, write to the Free Software// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA// 02111-1307, USA.////////////////////////////////////////////////////////////////////////////////#include "cpwindow.h"#include "cpdiagram.h"#include "cpviewer.h"#include "cpgraph.h"#include "menu.h"#include "diagramstubs.h"// X bitmap data for the tiled buttons#include "BuildingBlock.xbm"#include "Comment.xbm"#include "Dot.xbm"#include "NoteBox.xbm"#include "EmptyLine.xbm"#include "DashedArrow.xbm"#include "DottedLine.xbm" const char *CPWindow::CP_NODE_NAMES[] =  	{"Component", 	 "Note",	 "Interface", 	 "Comment"};const Bitmap CPWindow::CP_NODE_ICONS [] =	{{BuildingBlock_width, BuildingBlock_height, BuildingBlock_bits},	 {NoteBox_width, NoteBox_height, NoteBox_bits},	 {Dot_width, Dot_height, Dot_bits},	 {Comment_width, Comment_height, Comment_bits}}; const char *CPWindow::CP_EDGE_NAMES[] = 	{"Realization relationship",	 "Dependency",	 "Note connector"};const Bitmap CPWindow::CP_EDGE_ICONS [] =	{{EmptyLine_width, EmptyLine_height, EmptyLine_bits},	 {DashedArrow_width, DashedArrow_height, DashedArrow_bits},	 {DottedLine_width, DottedLine_height, DottedLine_bits}};CPWindow::CPWindow(const char *n): DiagramWindow(n) {}DiagramViewer *CPWindow::CreateViewer(Config *cfg) {	return new CPViewer(cfg, this);}Graph *CPWindow::CreateGraph() {	return new CPGraph();}Diagram *CPWindow::CreateDiagram(Config *c, DiagramViewer *v, Graph *g) {	 return new CPDiagram(c, this, (CPViewer *)v, (CPGraph *)g);}void CPWindow::DetermineIcons() {	 nodeNames = CP_NODE_NAMES;	 nodeIcons = CP_NODE_ICONS;	 edgeNames = CP_EDGE_NAMES;	 edgeIcons = CP_EDGE_ICONS;	 nrNodes = XtNumber(CP_NODE_NAMES);	 nrEdges = XtNumber(CP_EDGE_NAMES);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -