BTabView: Lots of fixes & cleanup.
* Address TODO about setting fSelected when nothing is done. * Pass a pointer to the tab view to the BTab so that it can call Invalidate(). (Checked against BeOS). * Call Invalidate() from the BTab after SetView() & SetName(). Fixes #12108 & #12196.
This commit is contained in:
@@ -9,6 +9,9 @@
|
||||
#include <View.h>
|
||||
|
||||
|
||||
class BTabView;
|
||||
|
||||
|
||||
enum tab_position {
|
||||
B_TAB_FIRST = 999,
|
||||
B_TAB_FRONT,
|
||||
@@ -67,12 +70,15 @@ private:
|
||||
BTab& operator=(const BTab&);
|
||||
|
||||
private:
|
||||
friend class BTabView;
|
||||
|
||||
bool fEnabled;
|
||||
bool fSelected;
|
||||
bool fFocus;
|
||||
BView* fView;
|
||||
BTabView* fTabView;
|
||||
|
||||
uint32 _reserved[12];
|
||||
uint32 _reserved[11];
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user