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:
Augustin Cavalier
2015-07-13 21:34:52 -04:00
parent fb6c8a0479
commit 6031dea0cb
2 changed files with 31 additions and 14 deletions
+7 -1
View File
@@ -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];
};