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 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*,
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user