Click here to Skip to main content
15,893,814 members
Articles / Desktop Programming / MFC

UMLEditor - revisiting the vector editor

Rate me:
Please Sign up or sign in to vote.
4.99/5 (156 votes)
5 Jul 2006Public Domain8 min read 377.7K   37.1K   326  
An UML editor with code-generation capabilities derived from CDiagramEditor.
<html>
<head>
<style>
body{font-size: 10pt;color: black;font-family: Verdana, Helvetica, Arial, sans-serif;background-color: #ffffff}
p{font-size: 10pt;color: black;font-family: Verdana, Helvetica, Arial, sans-serif;}
h2{font-size: 13pt;color: #ff9900;font-family: Verdana, Helvetica, Arial, sans-serif;font-weight: bold;}
h3{color: #ff9900;font-weight: bold;font-size: 11pt;font-family: Arial, sans-serif;}
table{background-color:#f0f0ff;}
td{font-size: 10pt;color: black;font-family: Verdana, Helvetica, Arial, sans-serif;padding:4px;}
pre{padding-right: 7pt;padding-left: 7pt;padding-bottom: 7pt;font: 9pt 'Courier New', Courier, mono;width: 100%;padding-top: 7pt;white-space: pre;background-color: #fbedbb}
code{color: #990000;font-family: 'Courier New', Courier, mono;}
A:link{text-decoration: none}
A:visited{text-decoration: none}
A:active{text-decoration: underline}
A:hover{text-decoration: underline}
A.top:link{font-size:8pt;color:red;font-family:Verdana,Helvetica,Arial,sans-serif;}
A.top:visited{font-size:8pt;color:red;font-family:Verdana,Helvetica,Arial,sans-serif;}
A.top:active{font-size:8pt;color:red;font-family:Verdana,Helvetica,Arial,sans-serif;}
A.top:hoover{font-size:8pt;color:red;font-family:Verdana,Helvetica,Arial,sans-serif;}
</style>
</head>
<body>
<h2>CUMLNotePropertyDialog</h2><h3>Overview</h3>
<blockquote>
<b>Purpose</b><br>
<code>CUMLNotePropertyDialog</code> is a dialog box wrapper derived from <code>CDiagramPropertyDlg</code>, used by <code>CUMLEntity</code>- derived objects to edit the object title attribute.<br>
<p><b>Description</b><br>
Class-Wizard created class.<br>
<p><b>Usage</b><br>
In the <code>CUMLEntity</code>-derived class, add a member of the <code>CUMLNotePropertyDialog</code>-derived class, and call <code>SetPropertyDialog</code> in the constructor. The dialog template with the resource id <code>IDD_UML_DIALOG_PROPERTY_NOTE</code> must be added to the project.
<p><a class='top' href='index.html'>[back to the index page]</a>
</blockquote>
<a name='contents'></a><h3>Contents</h3>
<b>- C -</b><br>
<a href='#CUMLNotePropertyDialogCWndpParent/NULL/'>CUMLNotePropertyDialog(CWnd* pParent /*=NULL*/)</a><br>
<p>
<b>- D -</b><br>
<a href='#DoDataExchangeCDataExchangepDX'>DoDataExchange(CDataExchange* pDX)</a><br>
<p>
<b>- O -</b><br>
<a href='#OnButtonColor'>OnButtonColor()</a><br>
<a href='#OnButtonFont'>OnButtonFont()</a><br>
<a href='#OnCancel'>OnCancel()</a><br>
<a href='#OnOK'>OnOK()</a><br>
<p>
<b>- S -</b><br>
<a href='#SetValues'>SetValues()</a><br>
<p>
<b>- ~ -</b><br>
<a href='#~CUMLNotePropertyDialog'>~CUMLNotePropertyDialog()</a><br>
<p><h3>Functions</h3><hr>
<code><b><a name='CUMLNotePropertyDialogCWndpParent/NULL/'></a>CUMLNotePropertyDialog(CWnd* pParent /*=NULL*/)</b></code>
<blockquote>
<b>Description</b><br>
Constructor
<br><b>Access</b><br>
Public
<br><br><b>Parameters</b><br>
<code>CWnd* pParent </code> -  Dialog parent<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
-<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='DoDataExchangeCDataExchangepDX'></a>void DoDataExchange(CDataExchange* pDX)</b></code>
<blockquote>
<b>Description</b><br>
MFC data exchange handler.
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
<code>CDataExchange* pDX </code> -  Pointer to exchange object<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Called from MFC to exchange and validate dialog data.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='OnButtonColor'></a>void OnButtonColor()</b></code>
<blockquote>
<b>Description</b><br>
Handler for the dialog button Color
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Called from MFC.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='OnButtonFont'></a>void OnButtonFont()</b></code>
<blockquote>
<b>Description</b><br>
Handler for the dialog button Font
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Called from MFC.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='OnCancel'></a>void OnCancel()</b></code>
<blockquote>
<b>Description</b><br>
Called when the ESC-key is pressed.
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Called from MFC. Overridden to close the dialog.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='OnOK'></a>void OnOK()</b></code>
<blockquote>
<b>Description</b><br>
Called when the Apply-key is pressed.
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Called from MFC. Updates the attached object and hides the modeless dialog.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='SetValues'></a>void SetValues()</b></code>
<blockquote>
<b>Description</b><br>
Set the values in the dialog from the attached object.
<br><b>Access</b><br>
Public
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
Will be called by the framework and the attached object to initialize the dialog. The editbox is filled with the contents of the object title attribute.<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<code><b><a name='~CUMLNotePropertyDialog'></a>~CUMLNotePropertyDialog()</b></code>
<blockquote>
<b>Description</b><br>
Destructor
<br><b>Access</b><br>
Public
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
void
<br><br><b>Usage</b><br>
-<p>
<a class='top' href='#contents'>[back to the contents]</a>&nbsp;<a class='top' href='index.html'>[back to the index page]</a></p>
</blockquote>
<hr>
<b><small>Copyright 2004 Johan Rosengren Abstrakt Mekanik AB</small></b>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Software Developer (Senior) Abstrakt Mekanik AB
Sweden Sweden
45 years old, married, three kids.

Started with computers more than 20 years ago on a CBM-64.

Read Theoretical Philosophy at the University of Lund.

Working as a C++ consultant developer.

Science-fiction freak. Enjoy vintage punkrock.

Comments and Discussions