#include <DlgCustomizeSpaceball.h>
Public Member Functions | |
virtual int | columnCount (const QModelIndex &parent) const |
CommandModel (QObject *parent=0) | |
virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
void | goAddMacro (const QByteArray ¯oName) |
void | goRemoveMacro (const QByteArray ¯oName) |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent) const |
~CommandModel () |
Definition at line 98 of file DlgCustomizeSpaceball.h.
CommandModel::CommandModel | ( | QObject * | parent = 0 |
) |
Definition at line 225 of file DlgCustomizeSpaceball.cpp.
CommandModel::~CommandModel | ( | ) |
Definition at line 231 of file DlgCustomizeSpaceball.cpp.
int CommandModel::columnCount | ( | const QModelIndex & | parent | ) | const [virtual] |
Definition at line 279 of file DlgCustomizeSpaceball.cpp.
QVariant CommandModel::data | ( | const QModelIndex & | index, | |
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 284 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::aCommand, Gui::BitmapFactory(), Gui::Dialog::CommandNode::children, Gui::CommandBase::className(), Gui::Dialog::CommandNode::CommandType, Gui::Command::getGroupName(), Gui::CommandBase::getMenuText(), Gui::Command::getName(), Gui::CommandBase::getPixmap(), Gui::CommandBase::getToolTipText(), Gui::Dialog::CommandNode::GroupType, Gui::Dialog::CommandNode::nodeType, and Gui::BitmapFactoryInst::pixmap().
Referenced by Gui::Dialog::PrintModel::data().
Qt::ItemFlags CommandModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 340 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::CommandType, and Gui::Dialog::CommandNode::nodeType.
void CommandModel::goAddMacro | ( | const QByteArray & | macroName | ) |
Definition at line 359 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::children, Gui::Application::commandManager(), Gui::Dialog::CommandNode::CommandType, Gui::CommandManager::getCommandByName(), Gui::Dialog::CommandNode::GroupType, index(), Gui::Application::Instance, and Gui::Dialog::CommandNode::parent.
Referenced by Gui::Dialog::DlgCustomizeSpaceball::onAddMacroAction().
void CommandModel::goRemoveMacro | ( | const QByteArray & | macroName | ) |
Definition at line 400 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::children, index(), and parent().
Referenced by Gui::Dialog::DlgCustomizeSpaceball::onRemoveMacroAction().
QVariant CommandModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role = Qt::DisplayRole | |||
) | const [virtual] |
Definition at line 333 of file DlgCustomizeSpaceball.cpp.
References Sketcher::Horizontal.
QModelIndex CommandModel::index | ( | int | row, | |
int | column, | |||
const QModelIndex & | parent = QModelIndex() | |||
) | const [virtual] |
Definition at line 237 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::children.
Referenced by Gui::Dialog::PrintModel::data(), goAddMacro(), and goRemoveMacro().
QModelIndex CommandModel::parent | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 250 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::children, and Gui::Dialog::CommandNode::parent.
Referenced by goRemoveMacro().
int CommandModel::rowCount | ( | const QModelIndex & | parent | ) | const [virtual] |
Definition at line 268 of file DlgCustomizeSpaceball.cpp.
References Gui::Dialog::CommandNode::children.