Tracker: style fixes, whitespace only
This commit is contained in:
+101
-101
@@ -45,54 +45,54 @@ const int32 kColumnStateArchiveVersion = 22;
|
|||||||
// bump version when layout or size changes
|
// bump version when layout or size changes
|
||||||
|
|
||||||
class BColumn {
|
class BColumn {
|
||||||
public:
|
public:
|
||||||
BColumn(const char* title, float offset, float width,
|
BColumn(const char* title, float offset, float width,
|
||||||
alignment align, const char* attributeName, uint32 attrType,
|
alignment align, const char* attributeName, uint32 attrType,
|
||||||
const char* displayAs, bool statField, bool editable);
|
const char* displayAs, bool statField, bool editable);
|
||||||
BColumn(const char* title, float offset, float width,
|
BColumn(const char* title, float offset, float width,
|
||||||
alignment align, const char* attributeName, uint32 attrType,
|
alignment align, const char* attributeName, uint32 attrType,
|
||||||
bool statField, bool editable);
|
bool statField, bool editable);
|
||||||
~BColumn();
|
~BColumn();
|
||||||
|
|
||||||
BColumn(BMallocIO* stream, int32 version, bool endianSwap = false);
|
BColumn(BMallocIO* stream, int32 version, bool endianSwap = false);
|
||||||
BColumn(const BMessage &, int32 index = 0);
|
BColumn(const BMessage &, int32 index = 0);
|
||||||
static BColumn* InstantiateFromStream(BMallocIO* stream,
|
static BColumn* InstantiateFromStream(BMallocIO* stream,
|
||||||
bool endianSwap = false);
|
bool endianSwap = false);
|
||||||
static BColumn* InstantiateFromMessage(const BMessage &archive,
|
static BColumn* InstantiateFromMessage(const BMessage &archive,
|
||||||
int32 index = 0);
|
int32 index = 0);
|
||||||
void ArchiveToStream(BMallocIO* stream) const;
|
void ArchiveToStream(BMallocIO* stream) const;
|
||||||
void ArchiveToMessage(BMessage &) const;
|
void ArchiveToMessage(BMessage &) const;
|
||||||
|
|
||||||
const char* Title() const;
|
const char* Title() const;
|
||||||
float Offset() const;
|
float Offset() const;
|
||||||
float Width() const;
|
float Width() const;
|
||||||
alignment Alignment() const;
|
alignment Alignment() const;
|
||||||
const char* AttrName() const;
|
const char* AttrName() const;
|
||||||
uint32 AttrType() const;
|
uint32 AttrType() const;
|
||||||
const char* DisplayAs() const;
|
const char* DisplayAs() const;
|
||||||
uint32 AttrHash() const;
|
uint32 AttrHash() const;
|
||||||
bool StatField() const;
|
bool StatField() const;
|
||||||
bool Editable() const;
|
bool Editable() const;
|
||||||
|
|
||||||
void SetOffset(float);
|
void SetOffset(float);
|
||||||
void SetWidth(float);
|
void SetWidth(float);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void _Init(const char* title, float offset, float width,
|
void _Init(const char* title, float offset, float width,
|
||||||
alignment align, const char* attributeName, uint32 attrType,
|
alignment align, const char* attributeName, uint32 attrType,
|
||||||
const char* displayAs, bool statField, bool editable);
|
const char* displayAs, bool statField, bool editable);
|
||||||
static BColumn* _Sanitize(BColumn* column);
|
static BColumn* _Sanitize(BColumn* column);
|
||||||
|
|
||||||
BString fTitle;
|
BString fTitle;
|
||||||
float fOffset;
|
float fOffset;
|
||||||
float fWidth;
|
float fWidth;
|
||||||
alignment fAlignment;
|
alignment fAlignment;
|
||||||
BString fAttrName;
|
BString fAttrName;
|
||||||
BString fDisplayAs;
|
BString fDisplayAs;
|
||||||
uint32 fAttrHash;
|
uint32 fAttrHash;
|
||||||
uint32 fAttrType;
|
uint32 fAttrType;
|
||||||
bool fStatField;
|
bool fStatField;
|
||||||
bool fEditable;
|
bool fEditable;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -100,72 +100,72 @@ const int32 kViewStateArchiveVersion = 11;
|
|||||||
// bump version when layout or size changes
|
// bump version when layout or size changes
|
||||||
|
|
||||||
class BViewState {
|
class BViewState {
|
||||||
public:
|
public:
|
||||||
BViewState();
|
BViewState();
|
||||||
|
|
||||||
BViewState(BMallocIO* stream, bool endianSwap = false);
|
BViewState(BMallocIO* stream, bool endianSwap = false);
|
||||||
BViewState(const BMessage &message);
|
BViewState(const BMessage &message);
|
||||||
static BViewState* InstantiateFromStream(BMallocIO* stream,
|
static BViewState* InstantiateFromStream(BMallocIO* stream,
|
||||||
bool endianSwap = false);
|
bool endianSwap = false);
|
||||||
static BViewState* InstantiateFromMessage(const BMessage &message);
|
static BViewState* InstantiateFromMessage(const BMessage &message);
|
||||||
void ArchiveToStream(BMallocIO* stream) const;
|
void ArchiveToStream(BMallocIO* stream) const;
|
||||||
void ArchiveToMessage(BMessage &message) const;
|
void ArchiveToMessage(BMessage &message) const;
|
||||||
|
|
||||||
uint32 ViewMode() const;
|
uint32 ViewMode() const;
|
||||||
uint32 LastIconMode() const;
|
uint32 LastIconMode() const;
|
||||||
uint32 IconSize() const;
|
uint32 IconSize() const;
|
||||||
uint32 LastIconSize() const;
|
uint32 LastIconSize() const;
|
||||||
BPoint ListOrigin() const;
|
BPoint ListOrigin() const;
|
||||||
BPoint IconOrigin() const;
|
BPoint IconOrigin() const;
|
||||||
uint32 PrimarySort() const;
|
uint32 PrimarySort() const;
|
||||||
uint32 SecondarySort() const;
|
uint32 SecondarySort() const;
|
||||||
uint32 PrimarySortType() const;
|
uint32 PrimarySortType() const;
|
||||||
uint32 SecondarySortType() const;
|
uint32 SecondarySortType() const;
|
||||||
bool ReverseSort() const;
|
bool ReverseSort() const;
|
||||||
|
|
||||||
void SetViewMode(uint32);
|
void SetViewMode(uint32);
|
||||||
void SetLastIconMode(uint32);
|
void SetLastIconMode(uint32);
|
||||||
void SetIconSize(uint32);
|
void SetIconSize(uint32);
|
||||||
void SetLastIconSize(uint32);
|
void SetLastIconSize(uint32);
|
||||||
void SetListOrigin(BPoint);
|
void SetListOrigin(BPoint);
|
||||||
void SetIconOrigin(BPoint);
|
void SetIconOrigin(BPoint);
|
||||||
void SetPrimarySort(uint32);
|
void SetPrimarySort(uint32);
|
||||||
void SetSecondarySort(uint32);
|
void SetSecondarySort(uint32);
|
||||||
void SetPrimarySortType(uint32);
|
void SetPrimarySortType(uint32);
|
||||||
void SetSecondarySortType(uint32);
|
void SetSecondarySortType(uint32);
|
||||||
void SetReverseSort(bool);
|
void SetReverseSort(bool);
|
||||||
|
|
||||||
bool StateNeedsSaving();
|
bool StateNeedsSaving();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static BViewState* _Sanitize(BViewState* state, bool fixOnly = false);
|
static BViewState* _Sanitize(BViewState* state, bool fixOnly = false);
|
||||||
|
|
||||||
uint32 fViewMode;
|
uint32 fViewMode;
|
||||||
uint32 fLastIconMode;
|
uint32 fLastIconMode;
|
||||||
uint32 fIconSize;
|
uint32 fIconSize;
|
||||||
uint32 fLastIconSize;
|
uint32 fLastIconSize;
|
||||||
BPoint fListOrigin;
|
BPoint fListOrigin;
|
||||||
BPoint fIconOrigin;
|
BPoint fIconOrigin;
|
||||||
uint32 fPrimarySortAttr;
|
uint32 fPrimarySortAttr;
|
||||||
uint32 fSecondarySortAttr;
|
uint32 fSecondarySortAttr;
|
||||||
uint32 fPrimarySortType;
|
uint32 fPrimarySortType;
|
||||||
uint32 fSecondarySortType;
|
uint32 fSecondarySortType;
|
||||||
bool fReverseSort;
|
bool fReverseSort;
|
||||||
|
|
||||||
void _Init();
|
void _Init();
|
||||||
void _StorePreviousState();
|
void _StorePreviousState();
|
||||||
|
|
||||||
uint32 fPreviousViewMode;
|
uint32 fPreviousViewMode;
|
||||||
uint32 fPreviousLastIconMode;
|
uint32 fPreviousLastIconMode;
|
||||||
uint32 fPreviousIconSize;
|
uint32 fPreviousIconSize;
|
||||||
uint32 fPreviousLastIconSize;
|
uint32 fPreviousLastIconSize;
|
||||||
BPoint fPreviousListOrigin;
|
BPoint fPreviousListOrigin;
|
||||||
BPoint fPreviousIconOrigin;
|
BPoint fPreviousIconOrigin;
|
||||||
uint32 fPreviousPrimarySortAttr;
|
uint32 fPreviousPrimarySortAttr;
|
||||||
uint32 fPreviousSecondarySortAttr;
|
uint32 fPreviousSecondarySortAttr;
|
||||||
uint32 fPreviousPrimarySortType;
|
uint32 fPreviousPrimarySortType;
|
||||||
uint32 fPreviousSecondarySortType;
|
uint32 fPreviousSecondarySortType;
|
||||||
bool fPreviousReverseSort;
|
bool fPreviousReverseSort;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user