Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CCamWindow Class Reference

Base class for use on CCamStreamMainWindow. More...

#include <CamWindow.h>

Inheritance diagram for CCamWindow::

QMainWindow CWebCamViewer List of all members.

Public Methods

Protected Methods


Detailed Description

Base class for use on CCamStreamMainWindow.

This class includes a gross hack :-)

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.

In fact, CamStream's main window (CCamStreamMainWindow) 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.

The only thing that should not be used is a Menu on these child windows, because it would be VERY confusing the have menubars on MDI windows.


Constructor & Destructor Documentation

CCamWindow::CCamWindow ( QWidget * parent = 0,
const char * name = 0 ) [protected]
 

constructor.

This constructor is protected since calling this class directly is useless.

CCamWindow::~CCamWindow ( )
 


The documentation for this class was generated from the following files:
Generated at Wed Jun 20 02:51:25 2001 for Camstream by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001