Camstream: CamStream API documentation

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::

List of all members.

## Public Methods

- virtual ~CCamWindow ()

## Protected Methods

- CCamWindow (QWidget *parent=0, const char *name=0)

## 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. This constructor is protected since calling this class directly is useless.

virtual CCamWindow::~CCamWindow ( | )`[virtual]`

The documentation for this class was generated from the following files:

- CamWindow.cc
- CamWindow.h