Click here to Skip to main content
15,884,099 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 376K   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>CGetterSetterdialog</h2><h3>Overview</h3>
<blockquote>
<b>Purpose</b><br>
<code>CGetterSetterdialog</code> is derived from <code>CDialog</code> and wraps the getter/setter-name dialog.<br>
<p><b>Description</b><br>
This is a Standard Wizard-created dialog box class.<br>
<p><b>Usage</b><br>
Instantiate to edit the names of the getter/setter.
<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='#CGetterSetterDialogCWndpParent/NULL/'>CGetterSetterDialog(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='#OnInitDialog'>OnInitDialog()</a><br>
<a href='#OnOK'>OnOK()</a><br>
<p><h3>Functions</h3><hr>
<code><b><a name='CGetterSetterDialogCWndpParent/NULL/'></a>CGetterSetterDialog(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>
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='OnInitDialog'></a>BOOL OnInitDialog()</b></code>
<blockquote>
<b>Description</b><br>
Handler for the <code>WM_INITDIALOG</code>-message.
<br><b>Access</b><br>
Protected
<br><br><b>Parameters</b><br>
none<br>
<b>Returns</b><br>
<code>BOOL </code> -  Always <code>TRUE</code>
<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='OnOK'></a>void OnOK()</b></code>
<blockquote>
<b>Description</b><br>
Handler for the OK-button.
<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. Validates data and closes 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>
<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