CallStackView::CallStackView(StdTable* parent) : StdTable(parent) { int charwidth = getCharWidth(); addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("Address"), true); //address in the stack addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("To"), true); //return to addColumnAt(8 + charwidth * sizeof(dsint) * 2, tr("From"), true); //return from addColumnAt(0, tr("Comment"), true); loadColumnFromConfig("CallStack"); connect(Bridge::getBridge(), SIGNAL(updateCallStack()), this, SLOT(updateCallStack())); connect(this, SIGNAL(contextMenuSignal(QPoint)), this, SLOT(contextMenuSlot(QPoint))); connect(this, SIGNAL(doubleClickedSignal()), this, SLOT(followTo())); setupContextMenu(); }
//---------------- EditAreaTabBar ---------------------------------------------- EditAreaTabBar::EditAreaTabBar(EditAreaTabWidget *parent) : QTabBar(parent) { tabIndex = -1; tabWidget = parent; menu = new QMenu(this); closeAction = new QAction(tr("Close"), this); closeOthersAction = new QAction(tr("Close Others"), this); closeAllAction = new QAction(tr("Close All"), this); moveToOtherViewAction = new QAction(tr("Move to other view"), this); cloneToOtherViewAction = new QAction(tr("Clone to other view"), this); setContextMenuPolicy(Qt::CustomContextMenu); connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuSlot(QPoint))); connect(closeAction, SIGNAL(triggered()), this, SLOT(closeActionSlot())); connect(closeOthersAction, SIGNAL(triggered()), this, SLOT(closeOtherActionSlot())); connect(closeAllAction, SIGNAL(triggered()), this, SLOT(closeAllActionSlot())); connect(moveToOtherViewAction, SIGNAL(triggered()), this, SLOT(moveToOtherViewSlot())); connect(cloneToOtherViewAction, SIGNAL(triggered()), this, SLOT(cloneToOtherViewSlot())); }