Classes | |
struct | SettingsEntry |
class | SettingsTreeModel |
class | SettingsFilterProxyModel |
class | SettingsOutlineProxyModel |
class | SettingsEditor |
class | SettingsDelegate |
class | SettingsTreeView |
class | BinaryViewScopeLabel |
class | SettingsScopeBar |
class | SearchFilter |
class | SettingsView |
struct SettingsEntry |
Public Member Functions | |
SettingsEntry (int p, const QString &h, const QString &g, std::vector< void * > &&j) | |
Public Attributes | |
int | parent |
QString | heading |
QString | group |
std::vector< void * > | jsonDefs |
std::vector< QString > | subgroups |
|
inline |
int SettingsEntry::parent |
QString SettingsEntry::heading |
QString SettingsEntry::group |
std::vector<void*> SettingsEntry::jsonDefs |
std::vector<QString> SettingsEntry::subgroups |
class SettingsTreeModel |
Public Member Functions | |
SettingsTreeModel (std::string schema, QObject *parent=0) | |
~SettingsTreeModel () | |
QVariant | data (const QModelIndex &index, int role) const override |
Qt::ItemFlags | flags (const QModelIndex &index) const override |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const override |
QModelIndex | parent (const QModelIndex &index) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override |
void | updateModel () |
SettingsTreeModel::SettingsTreeModel | ( | std::string | schema, |
QObject * | parent = 0 |
||
) |
SettingsTreeModel::~SettingsTreeModel | ( | ) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
void SettingsTreeModel::updateModel | ( | ) |
class SettingsFilterProxyModel |
Public Slots | |
void | updateScope (const std::string &key, int scope) |
Public Member Functions | |
SettingsFilterProxyModel (QObject *parent=0) | |
int | scopeFilter () |
void | setScopeFilter (int scope) |
int | scopeForSchema () |
void | setScopeForSchema (int scope) |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
Protected Member Functions | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
bool | lessThan (const QModelIndex &left, const QModelIndex &right) const override |
SettingsFilterProxyModel::SettingsFilterProxyModel | ( | QObject * | parent = 0 | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
override |
|
overrideprotected |
|
overrideprotected |
|
inlineslot |
class SettingsOutlineProxyModel |
Public Member Functions | |
SettingsOutlineProxyModel (QObject *parent=0) | |
Protected Member Functions | |
bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const override |
SettingsOutlineProxyModel::SettingsOutlineProxyModel | ( | QObject * | parent = 0 | ) |
|
overrideprotected |
class SettingsEditor |
Public Slots | |
void | updateScope (BinaryViewRef, BNSettingsScope) |
void | updateSize () |
void | notifyGeometryChanged () |
void | updateViewMode (bool enabled) |
Signals | |
void | settingChanged () |
void | allSettingsChanged () |
void | showIdentifiers (bool enable) |
void | notifyScope (const std::string &key, int scope) |
void | notifySettingChanged (QString) |
void | notifyNeedsRestart () |
Public Member Functions | |
SettingsEditor (QWidget *parent, SettingsRef settings, BinaryViewRef view, BNSettingsScope scope, const Json::Value *setting) | |
~SettingsEditor () | |
void | setSetting (const Json::Value *value, bool updateSchema=false) |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | paintEvent (QPaintEvent *event) override |
SettingsEditor::SettingsEditor | ( | QWidget * | parent, |
SettingsRef | settings, | ||
BinaryViewRef | view, | ||
BNSettingsScope | scope, | ||
const Json::Value * | setting | ||
) |
SettingsEditor::~SettingsEditor | ( | ) |
void SettingsEditor::setSetting | ( | const Json::Value * | value, |
bool | updateSchema = false |
||
) |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
overrideprotected |
|
overrideprotected |
|
overrideprotected |
class SettingsDelegate |
Public Slots | |
void | notifyUpdateModel () |
void | updateFonts () |
void | updateModel () |
void | updateScope (BinaryViewRef, BNSettingsScope) |
void | notifyResizeEvent () |
void | updateViewMode (bool enabled) const |
Signals | |
void | refreshAllSettings () const |
void | scopeChanged (BinaryViewRef, BNSettingsScope) |
void | sizeChanged () |
void | viewModeChanged (bool enabled) const |
void | notifyNeedsRestart () const |
void | notifySettingChanged (QString settingId) const |
void | performHoverAction (QModelIndex index) const |
Public Member Functions | |
SettingsDelegate (QWidget *parent, SettingsRef settings, SettingsFilterProxyModel *filterModel, const std::function< void(const QModelIndex &index)> &hoverAction=nullptr) | |
~SettingsDelegate () | |
void | setDefaultSelection (const QString &group, const QString &subgroup, const std::function< void(const QString &, const QString &)> &selectionAction) |
void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
void | setEditorData (QWidget *editor, const QModelIndex &index) const override |
void | setModelData (QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const override |
void | updateEditorGeometry (QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override |
SettingsDelegate::SettingsDelegate | ( | QWidget * | parent, |
SettingsRef | settings, | ||
SettingsFilterProxyModel * | filterModel, | ||
const std::function< void(const QModelIndex &index)> & | hoverAction = nullptr |
||
) |
SettingsDelegate::~SettingsDelegate | ( | ) |
void SettingsDelegate::setDefaultSelection | ( | const QString & | group, |
const QString & | subgroup, | ||
const std::function< void(const QString &, const QString &)> & | selectionAction | ||
) |
|
override |
|
override |
|
override |
|
override |
|
override |
|
override |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
|
slot |
class SettingsTreeView |
Public Slots | |
void | modelChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
Public Member Functions | |
SettingsTreeView (QWidget *parent) | |
~SettingsTreeView () | |
void | updateTheme () |
Protected Member Functions | |
virtual void | resizeEvent (QResizeEvent *event) override |
|
explicit |
SettingsTreeView::~SettingsTreeView | ( | ) |
void SettingsTreeView::updateTheme | ( | ) |
|
overrideprotectedvirtual |
|
slot |
class BinaryViewScopeLabel |
Signals | |
void | itemSelected (BinaryViewRef, BNSettingsScope) |
Signals inherited from MenuHelper | |
void | clicked () |
Public Member Functions | |
BinaryViewScopeLabel (QWidget *parent, const QString &name="", BNSettingsScope scope=SettingsAutoScope) | |
void | refresh () |
void | setSelection (BinaryViewRef view, BNSettingsScope scope) |
const QString & | currentSelection () |
BinaryViewRef | currentBinaryView () |
Public Member Functions inherited from MenuHelper | |
MenuHelper () | |
MenuHelper (QWidget *parent) | |
void | setBackgroundColorRole (QPalette::ColorRole role) |
void | setActiveBackgroundColorRole (QPalette::ColorRole role) |
void | setPressedBackgroundColorRole (QPalette::ColorRole role) |
void | setForegroundColorRole (QPalette::ColorRole role) |
void | setActiveForegroundColorRole (QPalette::ColorRole role) |
void | setPressedForegroundColorRole (QPalette::ColorRole role) |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *event) override |
virtual void | showMenu () override |
Protected Member Functions inherited from MenuHelper | |
void | enterEvent (QEnterEvent *event) override |
void | leaveEvent (QEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseReleaseEvent (QMouseEvent *event) override |
void | updateColors () |
Additional Inherited Members | |
Protected Slots inherited from MenuHelper | |
virtual void | showMenu ()=0 |
Protected Attributes inherited from MenuHelper | |
Menu | m_menu |
ContextMenuManager * | m_contextMenuManager |
QTimer * | m_timer |
bool | m_active |
bool | m_pressed |
BinaryViewScopeLabel::BinaryViewScopeLabel | ( | QWidget * | parent, |
const QString & | name = "" , |
||
BNSettingsScope | scope = SettingsAutoScope |
||
) |
void BinaryViewScopeLabel::refresh | ( | ) |
void BinaryViewScopeLabel::setSelection | ( | BinaryViewRef | view, |
BNSettingsScope | scope | ||
) |
|
inline |
|
inline |
|
signal |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements MenuHelper.
class SettingsScopeBar |
Signals | |
void | scopeChanged (BinaryViewRef, BNSettingsScope) |
Public Member Functions | |
SettingsScopeBar (QWidget *parent=nullptr) | |
void | refresh () |
void | setResource (BinaryViewRef view) |
void | setScope (BNSettingsScope scope) |
void | updateTheme () |
SettingsScopeBar::SettingsScopeBar | ( | QWidget * | parent = nullptr | ) |
void SettingsScopeBar::refresh | ( | ) |
void SettingsScopeBar::setResource | ( | BinaryViewRef | view | ) |
void SettingsScopeBar::setScope | ( | BNSettingsScope | scope | ) |
void SettingsScopeBar::updateTheme | ( | ) |
|
signal |
class SearchFilter |
Signals | |
void | delayedTextChanged () |
Public Member Functions | |
SearchFilter (QWidget *parent=nullptr) | |
void | addTag (const QString &tagName, int tag) |
void | setDelay (int msec=100) |
void | setFilter () |
std::pair< QString, std::vector< int > > | getSearchParams () |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
SearchFilter::SearchFilter | ( | QWidget * | parent = nullptr | ) |
void SearchFilter::addTag | ( | const QString & | tagName, |
int | tag | ||
) |
|
inline |
void SearchFilter::setFilter | ( | ) |
std::pair< QString, std::vector< int > > SearchFilter::getSearchParams | ( | ) |
|
overrideprotected |
|
signal |
class SettingsView |
Public Slots | |
void | updateFonts () |
void | updateTheme () |
Signals | |
void | fontsChanged () |
void | notifyNeedsRestart () |
void | notifySettingChanged (QString settingId) const |
Public Member Functions | |
SettingsView (QWidget *parent) | |
SettingsView (QWidget *parent, SettingsRef settings) | |
~SettingsView () | |
SettingsRef | getSettings () |
void | openPersistentEditors (int numToOpen=0, bool update=true) |
void | init (std::string schema, bool uiScopeSelection) |
void | refreshAllSettings () |
void | refreshCurrentScope () |
void | setData (BinaryViewRef view, const QString &name="") |
void | setScope (BNSettingsScope scope) |
void | setDefaultGroupSelection (const QString &group, const QString &subgroup="") |
void | focusSearch () |
void | setSearchFilter (const QString &filter) |
SettingsView::SettingsView | ( | QWidget * | parent | ) |
SettingsView::SettingsView | ( | QWidget * | parent, |
SettingsRef | settings | ||
) |
SettingsView::~SettingsView | ( | ) |
|
inline |
void SettingsView::openPersistentEditors | ( | int | numToOpen = 0 , |
bool | update = true |
||
) |
void SettingsView::init | ( | std::string | schema, |
bool | uiScopeSelection | ||
) |
void SettingsView::refreshAllSettings | ( | ) |
void SettingsView::refreshCurrentScope | ( | ) |
void SettingsView::setData | ( | BinaryViewRef | view, |
const QString & | name = "" |
||
) |
void SettingsView::setScope | ( | BNSettingsScope | scope | ) |
void SettingsView::setDefaultGroupSelection | ( | const QString & | group, |
const QString & | subgroup = "" |
||
) |
void SettingsView::focusSearch | ( | ) |
|
inline |
|
slot |
|
slot |
|
signal |
|
signal |
|
signal |