GUI: change bNoDisassemblyPopup to bDisassemblyPopupEnabled for clarity
This commit is contained in:
parent
9d585036b9
commit
744ccc5305
|
|
@ -1002,7 +1002,7 @@ void AbstractStdTable::reloadData()
|
|||
|
||||
duint AbstractStdTable::getDisassemblyPopupAddress(int mousex, int mousey)
|
||||
{
|
||||
if(bNoDisassemblyPopup) //No disassembly popup is meaningful for this table
|
||||
if(!bDisassemblyPopupEnabled) //No disassembly popup is meaningful for this table
|
||||
return 0;
|
||||
int c = getColumnIndexFromX(mousex);
|
||||
int r = getTableOffset() + getIndexOffsetFromY(transY(mousey));
|
||||
|
|
|
|||
|
|
@ -68,9 +68,9 @@ public:
|
|||
bAddressLabel = addressLabel;
|
||||
}
|
||||
|
||||
bool noDisassemblyPopup(bool noPopups = true)
|
||||
bool setDisassemblyPopupEnabled(bool enabled)
|
||||
{
|
||||
return bNoDisassemblyPopup = noPopups;
|
||||
return bDisassemblyPopupEnabled = enabled;
|
||||
}
|
||||
|
||||
signals:
|
||||
|
|
@ -141,5 +141,5 @@ protected:
|
|||
QString mHighlightText;
|
||||
int mAddressColumn = -1;
|
||||
bool bAddressLabel = true;
|
||||
bool bNoDisassemblyPopup = false;
|
||||
bool bDisassemblyPopupEnabled = true;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -115,10 +115,10 @@ void StdSearchListView::setSearchStartCol(int col)
|
|||
mSearchStartCol = col;
|
||||
}
|
||||
|
||||
bool StdSearchListView::noDisassemblyPopup(bool noPopups)
|
||||
bool StdSearchListView::setDisassemblyPopupEnabled(bool enabled)
|
||||
{
|
||||
stdList()->noDisassemblyPopup(noPopups);
|
||||
return stdSearchList()->noDisassemblyPopup(noPopups);
|
||||
stdList()->setDisassemblyPopupEnabled(enabled);
|
||||
return stdSearchList()->setDisassemblyPopupEnabled(enabled);
|
||||
}
|
||||
|
||||
StdTable* StdSearchListView::stdList()
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public:
|
|||
void enableMultiSelection(bool enabled);
|
||||
void setAddressColumn(int col, bool cipBase = false);
|
||||
void loadColumnFromConfig(const QString & viewName);
|
||||
bool noDisassemblyPopup(bool noPopups = true);
|
||||
bool setDisassemblyPopupEnabled(bool enabled);
|
||||
|
||||
public slots:
|
||||
virtual void setRowCount(dsint count);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ HandlesView::HandlesView(QWidget* parent) : QWidget(parent)
|
|||
mHandlesTable->setInternalTitle("Handles");
|
||||
mHandlesTable->mSearchStartCol = 0;
|
||||
mHandlesTable->setDrawDebugOnly(true);
|
||||
mHandlesTable->noDisassemblyPopup();
|
||||
mHandlesTable->setDisassemblyPopupEnabled(false);
|
||||
int wCharWidth = mHandlesTable->getCharWidth();
|
||||
mHandlesTable->addColumnAt(8 + 16 * wCharWidth, tr("Type"), true);
|
||||
mHandlesTable->addColumnAt(8 + 8 * wCharWidth, tr("Type number"), true);
|
||||
|
|
@ -49,7 +49,7 @@ HandlesView::HandlesView(QWidget* parent) : QWidget(parent)
|
|||
mTcpConnectionsTable->setInternalTitle("TcpConnections");
|
||||
mTcpConnectionsTable->setSearchStartCol(0);
|
||||
mTcpConnectionsTable->setDrawDebugOnly(true);
|
||||
mTcpConnectionsTable->noDisassemblyPopup();
|
||||
mTcpConnectionsTable->setDisassemblyPopupEnabled(false);
|
||||
wCharWidth = mTcpConnectionsTable->getCharWidth();
|
||||
mTcpConnectionsTable->addColumnAt(8 + 64 * wCharWidth, tr("Remote address"), true);
|
||||
mTcpConnectionsTable->addColumnAt(8 + 64 * wCharWidth, tr("Local address"), true);
|
||||
|
|
@ -69,7 +69,7 @@ HandlesView::HandlesView(QWidget* parent) : QWidget(parent)
|
|||
mPrivilegesTable = new StdTable(this);
|
||||
mPrivilegesTable->setWindowTitle("Privileges");
|
||||
mPrivilegesTable->setDrawDebugOnly(true);
|
||||
mPrivilegesTable->noDisassemblyPopup();
|
||||
mPrivilegesTable->setDisassemblyPopupEnabled(false);
|
||||
mPrivilegesTable->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
mPrivilegesTable->addColumnAt(8 + 32 * wCharWidth, tr("Privilege"), true);
|
||||
mPrivilegesTable->addColumnAt(8 + 16 * wCharWidth, tr("State"), true);
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ MemoryMapView::MemoryMapView(StdTable* parent)
|
|||
{
|
||||
setDrawDebugOnly(true);
|
||||
enableMultiSelection(true);
|
||||
noDisassemblyPopup();
|
||||
setDisassemblyPopupEnabled(false);
|
||||
|
||||
int charwidth = getCharWidth();
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ ScriptView::ScriptView(StdTable* parent) : StdTable(parent)
|
|||
enableMultiSelection(false);
|
||||
enableColumnSorting(false);
|
||||
setDrawDebugOnly(false);
|
||||
noDisassemblyPopup();
|
||||
setDisassemblyPopupEnabled(false);
|
||||
|
||||
int charwidth = getCharWidth();
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ SymbolView::SymbolView(QWidget* parent) : QWidget(parent), ui(new Ui::SymbolView
|
|||
mModuleList->setSearchStartCol(0);
|
||||
mModuleList->enableMultiSelection(true);
|
||||
mModuleList->setAddressColumn(0, true);
|
||||
mModuleList->noDisassemblyPopup();
|
||||
mModuleList->setDisassemblyPopupEnabled(false);
|
||||
int charwidth = mModuleList->getCharWidth();
|
||||
mModuleList->addColumnAt(charwidth * 2 * sizeof(dsint) + 8, tr("Base"), true);
|
||||
mModuleList->addColumnAt(300, tr("Module"), true);
|
||||
|
|
|
|||
Loading…
Reference in New Issue