|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
|
|
<title>The 'Big Picture'</title>
|
|
|
|
<style type="text/css"><!--
|
|
|
|
fn { margin-left: 1cm; text-indent: -1cm; }
|
|
|
|
a:link { color: #004faf; text-decoration: none }
|
|
|
|
a:visited { color: #672967; text-decoration: none }
|
|
|
|
body { background: #ffffff; color: black; }
|
|
|
|
--></style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
|
|
<tr bgcolor="#E5E5E5">
|
|
|
|
<td valign=center>
|
|
|
|
<a href="index.html">
|
|
|
|
<font color="#004faf">Home</font></a>
|
|
|
|
| <a href="classes.html">
|
|
|
|
<font color="#004faf">All Classes</font></a>
|
|
|
|
| <a href="mainclasses.html">
|
|
|
|
<font color="#004faf">Main Classes</font></a>
|
|
|
|
| <a href="annotated.html">
|
|
|
|
<font color="#004faf">Annotated</font></a>
|
|
|
|
| <a href="groups.html">
|
|
|
|
<font color="#004faf">Grouped Classes</font></a>
|
|
|
|
| <a href="functions.html">
|
|
|
|
<font color="#004faf">Functions</font></a>
|
|
|
|
</td>
|
|
|
|
<td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>The 'Big Picture'</h1>
|
|
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<p> <center><img src="chart-forms.png" alt="The chart application's dialogs"></center>
|
|
|
|
<p> The <tt>chart</tt> program allows users to create, save, load and visualise
|
|
|
|
simple data sets. Each data element that the user enters can be given
|
|
|
|
a color and pattern for the pie segment or bar, some label text and
|
|
|
|
the text's position and color. The <tt>Element</tt> class is used to
|
|
|
|
represent data elements.
|
|
|
|
<p> The program consists of a simple <tt>main.cpp</tt> that loads the chart
|
|
|
|
form. The chart form has a menubar and toolbar which provide access to
|
|
|
|
the program's functionality. The program provides two dialogs, one to
|
|
|
|
set options, and the other to create and edit a data set. Both dialogs
|
|
|
|
are launched from chart form menu options or toolbar buttons.
|
|
|
|
<p> The chart form's main widget is a <a href="tqcanvasview.html">TQCanvasView</a> which displays the
|
|
|
|
<a href="tqcanvas.html">TQCanvas</a> on which we draw the pie chart or bar graph. We subclass
|
|
|
|
TQCanvasView to obtain some specialised behaviour. Similarly we
|
|
|
|
subclass the <a href="tqcanvastext.html">TQCanvasText</a> class (used to place text items on a canvas)
|
|
|
|
since we require slightly more than the standard class provides.
|
|
|
|
<p> The project file, <tt>chart.pro</tt>, is used to create the Makefile that is
|
|
|
|
used to build the application.
|
|
|
|
<p> <p align="right">
|
|
|
|
<a href="tutorial2-01.html">« Introduction</a> |
|
|
|
|
<a href="tutorial2.html">Contents</a> |
|
|
|
|
<a href="tutorial2-03.html">Data Elements »</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<!-- eof -->
|
|
|
|
<p><address><hr><div align=center>
|
|
|
|
<table width=100% cellspacing=0 border=0><tr>
|
|
|
|
<td>Copyright © 2007
|
|
|
|
<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
|
|
|
<td align=right><div align=right>TQt 3.3.8</div>
|
|
|
|
</table></div></address></body>
|
|
|
|
</html>
|