Tracker: style fixes to QueryContainerWindow
This commit is contained in:
@@ -48,14 +48,19 @@ All rights reserved.
|
|||||||
#include "QueryPoseView.h"
|
#include "QueryPoseView.h"
|
||||||
|
|
||||||
|
|
||||||
|
// #pragma mark - BQueryContainerWindow
|
||||||
|
|
||||||
|
|
||||||
#undef B_TRANSLATION_CONTEXT
|
#undef B_TRANSLATION_CONTEXT
|
||||||
#define B_TRANSLATION_CONTEXT "QueryContainerWindow"
|
#define B_TRANSLATION_CONTEXT "QueryContainerWindow"
|
||||||
|
|
||||||
|
|
||||||
BQueryContainerWindow::BQueryContainerWindow(LockingList<BWindow>* windowList,
|
BQueryContainerWindow::BQueryContainerWindow(LockingList<BWindow>* windowList,
|
||||||
uint32 containerWindowFlags, window_look look,
|
uint32 containerWindowFlags, window_look look, window_feel feel,
|
||||||
window_feel feel, uint32 flags, uint32 workspace)
|
uint32 flags, uint32 workspace)
|
||||||
: BContainerWindow(windowList, containerWindowFlags, look, feel,
|
:
|
||||||
flags, workspace)
|
BContainerWindow(windowList, containerWindowFlags, look, feel,
|
||||||
|
flags, workspace)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,6 +136,7 @@ BQueryContainerWindow::AddWindowContextMenus(BMenu* menu)
|
|||||||
BMenuItem* closeItem = new BMenuItem(B_TRANSLATE("Close"),
|
BMenuItem* closeItem = new BMenuItem(B_TRANSLATE("Close"),
|
||||||
new BMessage(B_QUIT_REQUESTED), 'W');
|
new BMessage(B_QUIT_REQUESTED), 'W');
|
||||||
menu->AddItem(closeItem);
|
menu->AddItem(closeItem);
|
||||||
|
|
||||||
// target items as needed
|
// target items as needed
|
||||||
menu->SetTargetForItems(PoseView());
|
menu->SetTargetForItems(PoseView());
|
||||||
closeItem->SetTarget(this);
|
closeItem->SetTarget(this);
|
||||||
@@ -145,7 +151,7 @@ BQueryContainerWindow::SetUpDefaultState()
|
|||||||
|
|
||||||
WindowStateNodeOpener opener(this, true);
|
WindowStateNodeOpener opener(this, true);
|
||||||
// this is our destination node, whatever it is for this window
|
// this is our destination node, whatever it is for this window
|
||||||
if (!opener.StreamNode())
|
if (opener.StreamNode() == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
BString defaultStatePath(kQueryTemplates);
|
BString defaultStatePath(kQueryTemplates);
|
||||||
|
|||||||
@@ -76,4 +76,5 @@ private:
|
|||||||
|
|
||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|
||||||
#endif // _QUERY_CONTAINER_WINDOW_H
|
#endif // _QUERY_CONTAINER_WINDOW_H
|
||||||
|
|||||||
Reference in New Issue
Block a user