Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CCamWindow Class Reference

Base class for use on CCamStreamMainWindow. More...

#include <CamWindow.h>

Inheritance diagram for CCamWindow:

CWebCamCodecSubband CWebCamViewer CWebCamViewer List of all members.

Public Member Functions

Protected Member Functions


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 to have menubars on MDI windows.


Constructor & Destructor Documentation

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

Constructor.

Parameters:
The parent widget
name The name of this object
This constructor is protected since calling this class directly is useless.

CCamWindow::~CCamWindow  )  [virtual]
 


The documentation for this class was generated from the following files:
Generated on Wed Dec 13 23:38:47 2006 for CamStream by doxygen 1.3.7