ManaPlus
Macros | Variables
playertablemodel.cpp File Reference

(986a3bf)

#include "gui/models/playertablemodel.h"
#include "being/playerrelations.h"
#include "gui/widgets/dropdown.h"
#include "gui/widgets/label.h"
#include "gui/models/playerrelationlistmodel.h"
#include "utils/delete2.h"
#include "utils/dtor.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define WIDGET_AT(row, column)   (((row) * COLUMNS_NR) + (column))
 

Variables

static const int COLUMNS_NR = 2
 
static const int NAME_COLUMN = 0
 
static const unsigned int RELATION_CHOICE_COLUMN = 1
 
static const unsigned int ROW_HEIGHT = 12
 
static const unsigned int NAME_COLUMN_WIDTH = 230
 
static const unsigned int RELATION_CHOICE_COLUMN_WIDTH = 80
 

Macro Definition Documentation

◆ WIDGET_AT

#define WIDGET_AT (   row,
  column 
)    (((row) * COLUMNS_NR) + (column))

Definition at line 49 of file playertablemodel.cpp.

Variable Documentation

◆ COLUMNS_NR

const int COLUMNS_NR = 2
static

Definition at line 38 of file playertablemodel.cpp.

Referenced by PlayerTableModel::getColumns().

◆ NAME_COLUMN

const int NAME_COLUMN = 0
static

Definition at line 39 of file playertablemodel.cpp.

Referenced by PlayerTableModel::getColumnWidth().

◆ NAME_COLUMN_WIDTH

const unsigned int NAME_COLUMN_WIDTH = 230
static

Definition at line 46 of file playertablemodel.cpp.

Referenced by PlayerTableModel::getColumnWidth().

◆ RELATION_CHOICE_COLUMN

const unsigned int RELATION_CHOICE_COLUMN = 1
static

Definition at line 40 of file playertablemodel.cpp.

Referenced by PlayerTableModel::updateModelInRow().

◆ RELATION_CHOICE_COLUMN_WIDTH

const unsigned int RELATION_CHOICE_COLUMN_WIDTH = 80
static

Definition at line 47 of file playertablemodel.cpp.

Referenced by PlayerTableModel::getColumnWidth().

◆ ROW_HEIGHT

const unsigned int ROW_HEIGHT = 12
static

Definition at line 42 of file playertablemodel.cpp.

Referenced by PlayerTableModel::getRowHeight().