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

Brief description of class still missing. More...

#include <MultiDocumentTabBar.h>

List of all members.

Signals

void closeTabRequested (int at)
void newTabRequested (int at)
void renameTabRequested (int at)

Public Member Functions

 MultiDocumentTabBar (QWidget *parent=0)
 ~MultiDocumentTabBar ()

Protected Member Functions

void mouseDoubleClickEvent (QMouseEvent *event)

Detailed Description

Brief description of class still missing.

Full description of class still missing


Constructor & Destructor Documentation

Description of constructor still missing

References QGpCoreTools::tr(), and TRACE.

    : QTabBar(parent)
{
  TRACE;
  setContextMenuPolicy(Qt::CustomContextMenu);
  connect(this, SIGNAL(customContextMenuRequested(const QPoint&)),
          this, SLOT(showContextMenu(const QPoint&)));

  QAction * a;

  a=new QAction(tr("New tab"), this);
  a->setToolTip(tr("Insert a new tab after this one (or before if it is the first tab)"));
  connect(a, SIGNAL(triggered()), this, SLOT(newTab()));
  addAction(a);

  a=new QAction(tr("Rename"), this);
  a->setToolTip(tr("Rename this tab"));
  connect(a, SIGNAL(triggered()), this, SLOT(renameTab()));
  addAction(a);

  a=new QAction(tr("Close"), this);
  a->setToolTip(tr("Close this tab"));
  connect(a, SIGNAL(triggered()), this, SLOT(closeTab()));
  addAction(a);
}

Description of destructor still missing

References TRACE.

{
  TRACE;
}

Member Function Documentation

void QGpGuiTools::MultiDocumentTabBar::mouseDoubleClickEvent ( QMouseEvent *  event) [protected]

References renameTabRequested(), and TRACE.

{
  TRACE;
  int index=tabAt(event->pos());
  if(index>-1) {
    emit renameTabRequested(index);
  }
}

Referenced by mouseDoubleClickEvent().


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