1 #ifndef BALL_VIEW_WIDGETS_HOTKEY_TABLE_H
2 #define BALL_VIEW_WIDGETS_HOTKEY_TABLE_H
4 #ifndef BALL_VIEW_KERNEL_COMMON_H
8 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
12 #ifndef BALL_VIEW_WIDGETS_PYWIDGET_H
16 #include <QtGui/QTableWidget>
17 #include <QtGui/QItemDelegate>
31 const QModelIndex &index)
const;
34 void setModelData(
QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
37 const QStyleOptionViewItem &option,
const QModelIndex &index)
const;
41 QStringList sl_modifier_;
76 void setContent(
const std::list<Hotkey>& hotkeys);
93 QStringList modifier_, keys_;
99 #endif //BALL_VIEW_WIDGETS_HOTKEY_TABLE_H
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual bool setValue(const String &value)
Overload this in derived classes!
void setContent(const std::list< Hotkey > &hotkeys)
virtual void addEmptyRow()
virtual void removeSelection()
virtual bool getValue(String &value) const
Overload this in derived classes!
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual void appendHotkey(const String &modif, const String &F_key, const String &command, String comment="")
HotkeyTable(QWidget *parent=0, const char *name="PythonSettings")
ComboBoxDelegate(QObject *parent=0)
void setEditorData(QWidget *editor, const QModelIndex &index) const
std::list< Hotkey > getContent() const
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const