1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
|
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.3.7 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
<h1>CCamWindow Class Reference</h1>Base class for use on <a class="el" href="class_c_cam_stream_main_window.html">CCamStreamMainWindow</a>.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="_cam_window_8h-source.html">CamWindow.h</a>></code>
<p>
<p>Inheritance diagram for CCamWindow:
<p><center><img src="class_c_cam_window.png" usemap="#CCamWindow_map" border="0" alt=""></center>
<map name="CCamWindow_map">
<area href="class_c_web_cam_codec_subband.html" alt="CWebCamCodecSubband" shape="rect" coords="0,56,158,80">
<area href="class_c_web_cam_viewer.html" alt="CWebCamViewer" shape="rect" coords="168,56,326,80">
<area href="class_c_web_cam_viewer.html" alt="CWebCamViewer" shape="rect" coords="336,56,494,80">
</map>
<a href="class_c_cam_window-members.html">List of all members.</a><h2>Public Member Functions</h2>
<ul>
<li>virtual <a class="el" href="class_c_cam_window.html#a0">~CCamWindow</a> ()
</ul>
<h2>Protected Member Functions</h2>
<ul>
<li><a class="el" href="class_c_cam_window.html#b0">CCamWindow</a> (QWidget *parent=0, const char *name=0)
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Base class for use on <a class="el" href="class_c_cam_stream_main_window.html">CCamStreamMainWindow</a>.
<p>
This class includes a gross hack :-)<p>
I wanted a MDI (multiple document interface) application; each window would then show a webcam viewer, a video-conferencing receiver, etc. But I wanted each class of windows to have their own toolbar(s) and status bar. The only Qt class that maintains toolbars properly is the QMainWindow class. However, QMainWindow is normally used as the app's main window, and therefor a QMainWindow is a top-level window by default. But by surpressing the top-level flag, I can create QMainWindows upon other widgets.<p>
In fact, CamStream's main window (<a class="el" href="class_c_cam_stream_main_window.html">CCamStreamMainWindow</a>) is a QMainWindow, with a QWorkspace as central widget (for the MDI stuff). The windows placed on this central widget/workspace are themselves now QMainWindows, but as a simple child-class. The full functionality of the QMainWindow is still available.<p>
The only thing that should not be used is a Menu on these child windows, because it would be VERY confusing to have menubars on MDI windows.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="b0" doxytag="CCamWindow::CCamWindow" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> CCamWindow::CCamWindow </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">QWidget * </td>
<td class="mdname" nowrap> <em>parent</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td></td>
<td class="md" nowrap>const char * </td>
<td class="mdname" nowrap> <em>name</em> = <code>0</code></td>
</tr>
<tr>
<td></td>
<td class="md">) </td>
<td class="md" colspan="2"><code> [protected]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
Constructor.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td></td><td valign=top><em>The</em> </td><td>parent widget </td></tr>
<tr><td></td><td valign=top><em>name</em> </td><td>The name of this object</td></tr>
</table>
</dl>
This constructor is protected since calling this class directly is useless. </td>
</tr>
</table>
<a class="anchor" name="a0" doxytag="CCamWindow::~CCamWindow" ></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> CCamWindow::~<a class="el" href="class_c_cam_window.html">CCamWindow</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
</td>
<td>
<p>
</td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_cam_window_8h-source.html">CamWindow.h</a><li><a class="el" href="_cam_window_8cpp.html">CamWindow.cpp</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Wed Dec 13 23:38:47 2006 for CamStream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
</body>
</html>
|