mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
eepp: UITabWidget now let you set how a tab should be focused when the current focused tab is closed (search for the closest tab or focus the previous focused tab).
ecode: Document Info is shown in the status bar if the status bar is present. Fixed a bug when parsing the file path of a status build issue.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <deque>
|
||||
#include <eepp/ui/uitab.hpp>
|
||||
#include <eepp/ui/uiwidget.hpp>
|
||||
#include <queue>
|
||||
|
||||
namespace EE { namespace UI {
|
||||
|
||||
@@ -25,6 +26,8 @@ class EE_API TabEvent : public Event {
|
||||
|
||||
class EE_API UITabWidget : public UIWidget {
|
||||
public:
|
||||
enum class FocusTabBehavior { Closest, FocusOrder };
|
||||
|
||||
class StyleConfig {
|
||||
public:
|
||||
Float TabSeparation = 0;
|
||||
@@ -166,6 +169,9 @@ class EE_API UITabWidget : public UIWidget {
|
||||
|
||||
void setDroppableHoveringColor( const Color& droppableHoveringColor );
|
||||
|
||||
FocusTabBehavior getFocusTabBehavior() const;
|
||||
void setFocusTabBehavior( FocusTabBehavior focusTabBehavior );
|
||||
|
||||
protected:
|
||||
friend class UITab;
|
||||
|
||||
@@ -184,6 +190,8 @@ class EE_API UITabWidget : public UIWidget {
|
||||
bool mDroppableHoveringColorWasSet{ false };
|
||||
Float mTabVerticalDragResistance;
|
||||
Color mDroppableHoveringColor{ Color::Transparent };
|
||||
FocusTabBehavior mFocusTabBehavior{ FocusTabBehavior::Closest };
|
||||
std::deque<UITab*> mFocusHistory;
|
||||
|
||||
void onThemeLoaded();
|
||||
|
||||
@@ -223,6 +231,12 @@ class EE_API UITabWidget : public UIWidget {
|
||||
void updateScrollBar();
|
||||
|
||||
void updateScroll();
|
||||
|
||||
void updateTabSelected( FocusTabBehavior tabBehavior );
|
||||
|
||||
void insertFocusHistory( UITab* tab );
|
||||
|
||||
void eraseFocusHistory( UITab* tab );
|
||||
};
|
||||
|
||||
}} // namespace EE::UI
|
||||
|
||||
Reference in New Issue
Block a user