Tracker: Add IsQueryView() and IsOpenWithView() to BPoseView.
Similar to IsDesktopView(), it is easier to check these than casting. Change-Id: I176ea684f50f512563f740f7ec19d5ca12653426 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10936 Reviewed-by: John Scipione <[email protected]> Haiku-Format: Haiku-format Bot <[email protected]>
This commit is contained in:
@@ -221,6 +221,8 @@ public:
|
|||||||
|
|
||||||
virtual bool AddPosesThreadValid(const entry_ref*) const;
|
virtual bool AddPosesThreadValid(const entry_ref*) const;
|
||||||
|
|
||||||
|
virtual bool IsOpenWithView() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// don't do any volume watching and memtamime watching in open with
|
// don't do any volume watching and memtamime watching in open with
|
||||||
// panels for now
|
// panels for now
|
||||||
@@ -274,6 +276,13 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
OpenWithPoseView::IsOpenWithView() const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class OpenWithRefFilter: public BRefFilter {
|
class OpenWithRefFilter: public BRefFilter {
|
||||||
public:
|
public:
|
||||||
OpenWithRefFilter(SearchForSignatureEntryList*, const BMessage*,
|
OpenWithRefFilter(SearchForSignatureEntryList*, const BMessage*,
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ public:
|
|||||||
|
|
||||||
virtual bool IsFilePanel() const;
|
virtual bool IsFilePanel() const;
|
||||||
virtual bool IsDesktopView() const;
|
virtual bool IsDesktopView() const;
|
||||||
|
virtual bool IsOpenWithView() const;
|
||||||
|
virtual bool IsQueryView() const;
|
||||||
|
|
||||||
// state saving/restoring
|
// state saving/restoring
|
||||||
virtual void SaveState(AttributeStreamNode* node);
|
virtual void SaveState(AttributeStreamNode* node);
|
||||||
@@ -1038,6 +1040,20 @@ BPoseView::IsDesktopView() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
BPoseView::IsOpenWithView() const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
BPoseView::IsQueryView() const
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline uint32
|
inline uint32
|
||||||
BPoseView::PrimarySort() const
|
BPoseView::PrimarySort() const
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -58,6 +58,8 @@ public:
|
|||||||
virtual void AdoptSystemColors();
|
virtual void AdoptSystemColors();
|
||||||
virtual bool HasSystemColors() const;
|
virtual bool HasSystemColors() const;
|
||||||
|
|
||||||
|
virtual bool IsQueryView() const;
|
||||||
|
|
||||||
const char* SearchForType() const;
|
const char* SearchForType() const;
|
||||||
BQueryContainerWindow* ContainerWindow() const;
|
BQueryContainerWindow* ContainerWindow() const;
|
||||||
bool ActiveOnDevice(dev_t) const;
|
bool ActiveOnDevice(dev_t) const;
|
||||||
@@ -98,6 +100,13 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
BQueryPoseView::IsQueryView() const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
class QueryRefFilter : public BRefFilter {
|
class QueryRefFilter : public BRefFilter {
|
||||||
public:
|
public:
|
||||||
QueryRefFilter();
|
QueryRefFilter();
|
||||||
|
|||||||
Reference in New Issue
Block a user