Skip to content

Commit

Permalink
Remove "Explanation" column
Browse files Browse the repository at this point in the history
  • Loading branch information
raccog committed Jan 6, 2024
1 parent 554e8fb commit 778daff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/sliderulestab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ QVariant EncodingModel::headerData(int section, Qt::Orientation orientation,
return QString("Type");
case DESCRIPTION:
return QString("Description");
case EXPLANATION:
return QString("Explanation");
case OPCODE:
return QString("Opcode");
case FIELD0:
Expand Down Expand Up @@ -208,9 +206,6 @@ QVariant EncodingModel::data(const QModelIndex &index, int role) const {
return "TODO";
case DESCRIPTION:
return QString(instr->description());
case EXPLANATION:
// TODO(raccog): Include an instruction's pseudocode in isainfo
return QString("TODO");
case OPCODE:
return QString(instr->name());
case FIELD0:
Expand Down
19 changes: 9 additions & 10 deletions src/sliderulestab.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ class EncodingModel : public QAbstractTableModel {

enum Column {
EXTENSION = 0,
TYPE = 1,
DESCRIPTION = 2,
EXPLANATION = 3,
OPCODE = 4,
// NOTE: The field columns should be variable based on the maximum number of
// fields
FIELD0 = 5,
FIELD1 = 6,
FIELD2 = 7,
BIT_START = 8,
TYPE,
DESCRIPTION,
OPCODE,
// TODO(raccog): The field columns should be variable based on the maximum
// number of fields
FIELD0,
FIELD1,
FIELD2,
BIT_START,
BIT_END = BIT_START + BIT_COLUMNS
};

Expand Down

0 comments on commit 778daff

Please sign in to comment.