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:
John Scipione
2026-05-06 02:21:41 +00:00
parent 5c7d86e491
commit 768577a09c
3 changed files with 34 additions and 0 deletions
+9
View File
@@ -221,6 +221,8 @@ public:
virtual bool AddPosesThreadValid(const entry_ref*) const;
virtual bool IsOpenWithView() const;
protected:
// don't do any volume watching and memtamime watching in open with
// panels for now
@@ -274,6 +276,13 @@ private:
};
inline bool
OpenWithPoseView::IsOpenWithView() const
{
return true;
}
class OpenWithRefFilter: public BRefFilter {
public:
OpenWithRefFilter(SearchForSignatureEntryList*, const BMessage*,
+16
View File
@@ -109,6 +109,8 @@ public:
virtual bool IsFilePanel() const;
virtual bool IsDesktopView() const;
virtual bool IsOpenWithView() const;
virtual bool IsQueryView() const;
// state saving/restoring
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
BPoseView::PrimarySort() const
{
+9
View File
@@ -58,6 +58,8 @@ public:
virtual void AdoptSystemColors();
virtual bool HasSystemColors() const;
virtual bool IsQueryView() const;
const char* SearchForType() const;
BQueryContainerWindow* ContainerWindow() const;
bool ActiveOnDevice(dev_t) const;
@@ -98,6 +100,13 @@ private:
};
inline bool
BQueryPoseView::IsQueryView() const
{
return true;
}
class QueryRefFilter : public BRefFilter {
public:
QueryRefFilter();