All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Public Slots | Signals | Public Member Functions | Protected Member Functions
QGpGuiTools::MultiDocumentSubWindow Class Reference

Brief description of class still missing. More...

#include <MultiDocumentSubWindow.h>

Inheritance diagram for QGpGuiTools::MultiDocumentSubWindow:
MapView

List of all members.

Public Slots

void setWindowTitle (const QString &t)
void show ()

Signals

void askForClose (bool &ok)
void clearCloseMarks ()

Public Member Functions

bool markedForClose () const
 MultiDocumentSubWindow (QWidget *parent=0, Qt::WindowFlags flags=0)
void setCloseMark (bool c=true)
void setWindowIcon (const QIcon &icon)
MultiDocumentTabtab () const
QAction * windowMenuAction () const
 ~MultiDocumentSubWindow ()

Protected Member Functions

virtual void closeEvent (QCloseEvent *e)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

QGpGuiTools::MultiDocumentSubWindow::MultiDocumentSubWindow ( QWidget *  parent = 0,
Qt::WindowFlags  flags = 0 
)

Description of constructor still missing

References TRACE.

      : QMdiSubWindow(parent, flags)
  {
    TRACE;
    setAttribute(Qt::WA_DeleteOnClose, true);
    _windowMenuAction=new QAction(this);
    _windowMenuAction->setCheckable(true);
    connect(_windowMenuAction, SIGNAL(triggered()), this, SLOT(windowsMenuTriggered()));
  }

Description of destructor still missing

References TRACE.

  {
    TRACE;
  }

Member Function Documentation

Referenced by closeEvent().

Referenced by closeEvent().

void QGpGuiTools::MultiDocumentSubWindow::closeEvent ( QCloseEvent *  e) [protected, virtual]

References askForClose(), clearCloseMarks(), setCloseMark(), and TRACE.

  {
    TRACE;
    emit clearCloseMarks();
    setCloseMark();
    bool ok;
    emit askForClose(ok);
    if(ok) {
      e->accept();
    } else {
      e->ignore();
    }
  }
{return _markedForClose;}
void QGpGuiTools::MultiDocumentSubWindow::setCloseMark ( bool  c = true) [inline]

Referenced by closeEvent(), and QGpGuiTools::MultiDocumentTab::setCloseMarks().

{_markedForClose=c;}

References TRACE.

  {
    TRACE;
    QMdiSubWindow::setWindowIcon(icon);
    _windowMenuAction->setIcon(icon);
  }
void QGpGuiTools::MultiDocumentSubWindow::setWindowTitle ( const QString &  t) [slot]

References TRACE.

  {
    TRACE;
    QMdiSubWindow::setWindowTitle(t);
    if(t.length()>35) { // Test whether to remove or not
      _windowMenuAction->setText(t.left(35)+"...");
    } else {
      _windowMenuAction->setText(t);
    }
  }

References TRACE.

Referenced by QGpGuiTools::MultiDocumentWindow::addWindow().

  {
    TRACE;
    QMdiArea * a=mdiArea();
    if(a->activeSubWindow() && a->activeSubWindow()->isMaximized()) {
      showMaximized();
    } else {
      QMdiSubWindow::show();
    }
  }

References TRACE.

  {
    TRACE;
    return static_cast<MultiDocumentTab *>(mdiArea());
  }

Referenced by QGpGuiTools::MultiDocumentWindow::addWindow().

{return _windowMenuAction;}

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines