summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binaryninjacore.h5
-rw-r--r--ui/pane.h11
2 files changed, 10 insertions, 6 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 2723ceae..57d26de2 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -37,14 +37,14 @@
// Current ABI version for linking to the core. This is incremented any time
// there are changes to the API that affect linking, including new functions,
// new types, or modifications to existing functions or types.
-#define BN_CURRENT_CORE_ABI_VERSION 130
+#define BN_CURRENT_CORE_ABI_VERSION 131
// Minimum ABI version that is supported for loading of plugins. Plugins that
// are linked to an ABI version less than this will not be able to load and
// will require rebuilding. The minimum version is increased when there are
// incompatible changes that break binary compatibility, such as changes to
// existing types or functions.
-#define BN_MINIMUM_CORE_ABI_VERSION 130
+#define BN_MINIMUM_CORE_ABI_VERSION 131
#ifdef __GNUC__
#ifdef BINARYNINJACORE_LIBRARY
@@ -2170,6 +2170,7 @@ extern "C"
// Pane colors
ActivePaneBackgroundColor,
InactivePaneBackgroundColor,
+ FocusedPaneBackgroundColor,
// Tab colors
TabBarTabActiveColor,
diff --git a/ui/pane.h b/ui/pane.h
index 5b14e371..60aed6c8 100644
--- a/ui/pane.h
+++ b/ui/pane.h
@@ -37,9 +37,10 @@ class BINARYNINJAUIAPI Pane : public QWidget
PaneHeader* m_header = nullptr;
CloseButton* m_closeButton = nullptr;
bool m_active = false;
+ bool m_containerFocused = false;
QVBoxLayout* m_layout = nullptr;
- public:
+public:
Pane(QWidget* widget);
QWidget* widget() const { return m_widget; }
@@ -55,22 +56,24 @@ class BINARYNINJAUIAPI Pane : public QWidget
virtual void setIsSinglePane(bool isSinglePane);
virtual void setIsActivePane(bool active);
+ virtual void setIsContainerFocused(bool focused);
virtual Qt::Orientation defaultSplitDirection() const { return Qt::Horizontal; }
virtual void setDefaultSplitDirection(Qt::Orientation orientation);
void setWidget(QWidget* widget);
- protected:
+protected:
void init(PaneHeader* header);
+ void updateHeaderColor();
- Q_SIGNALS:
+Q_SIGNALS:
void paneCloseRequested();
void paneSplitRequested(Pane* newPane, Qt::Edge edge);
void movePane(Pane* target, Qt::Edge edge);
void newWindowForPane(QScreen* screen, QPoint pos);
void notifyViewChanged(ViewFrame* frame);
- public Q_SLOTS:
+public Q_SLOTS:
void splitButtonClicked(Qt::Orientation orientation);
void closeButtonClicked();
void headerClicked();