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

Brief description of class still missing. More...

#include <MultiDocumentTab.h>

List of all members.

Public Slots

void activate ()

Signals

void activateRequested (QWidget *)

Public Member Functions

MultiDocumentSubWindowcurrentSubWindow ()
 MultiDocumentTab (QWidget *parent=0)
QString name () const
void setCloseMarks (bool c=true)
void setName (const QString &n)
QAction * windowMenuAction () const
 ~MultiDocumentTab ()

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References activate(), QGpCoreTools::tr(), and TRACE.

    : QMdiArea(parent)
{
  TRACE;
  setAttribute(Qt::WA_DeleteOnClose);
  setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
  setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);

  QMenu * m=new QMenu(this);
  _windowMenuAction=new QAction(tr("Unamed"), this);
  _windowMenuAction->setMenu(m);
  connect(_windowMenuAction, SIGNAL(triggered()), this, SLOT(activate()));
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

References activateRequested(), and TRACE.

Referenced by MultiDocumentTab().

{
  TRACE;
  emit activateRequested(this);
}
void QGpGuiTools::MultiDocumentTab::activateRequested ( QWidget *  ) [signal]

Referenced by activate().

  {
    return static_cast<MultiDocumentSubWindow *>(QMdiArea::currentSubWindow());
  }

References TRACE.

Referenced by QGpGuiTools::MultiDocumentTabWidget::addTab(), and QGpGuiTools::MultiDocumentTabWidget::insertTab().

{
  TRACE;
  return _windowMenuAction->text();
}

References QGpGuiTools::MultiDocumentSubWindow::setCloseMark(), and TRACE.

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

{
  TRACE;
  QList<QMdiSubWindow *>        wList=subWindowList();
  foreach(QMdiSubWindow * subw, wList) {
    MultiDocumentSubWindow * mywin=qobject_cast<MultiDocumentSubWindow *>(subw);
    ASSERT(mywin);
    mywin->setCloseMark(c);
  }
}
void QGpGuiTools::MultiDocumentTab::setName ( const QString &  n)

References TRACE.

{
  TRACE;
  _windowMenuAction->setText(n);
}

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