Lost changes I forgot to commit, not that matter much.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38744 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c2eee6f55b
commit
a688155b73
@ -22,7 +22,7 @@
|
||||
|
||||
RunningTeamsWindow::RunningTeamsWindow()
|
||||
: BWindow(BRect(100, 100, 500, 250), "Running Teams", B_DOCUMENT_WINDOW,
|
||||
B_ASYNCHRONOUS_CONTROLS)
|
||||
B_NORMAL_WINDOW_FEEL, B_ASYNCHRONOUS_CONTROLS)
|
||||
{
|
||||
BMessage settings;
|
||||
_LoadSettings(settings);
|
||||
@ -34,18 +34,22 @@ RunningTeamsWindow::RunningTeamsWindow()
|
||||
}
|
||||
|
||||
// Add a teams list view
|
||||
BRect rect = Bounds();
|
||||
rect.right -= B_V_SCROLL_BAR_WIDTH;
|
||||
fTeamsListView = new TeamsListView(rect, "RunningTeamsList", B_FOLLOW_ALL);
|
||||
frame = Bounds();
|
||||
frame.right -= B_V_SCROLL_BAR_WIDTH;
|
||||
|
||||
// Set the message sent on team list item invocation
|
||||
fTeamsListView = new TeamsListView(frame, "RunningTeamsList");
|
||||
fTeamsListView->SetInvocationMessage(new BMessage(kMsgDebugThisTeam));
|
||||
|
||||
BScrollView * scroller = new BScrollView("RunningTeamsListScroller",
|
||||
fTeamsListView, B_FOLLOW_ALL_SIDES, B_WILL_DRAW | B_FRAME_EVENTS,
|
||||
false, true); // Vertical scrollbar only
|
||||
BScrollView * teamsScroller = new BScrollView("RunningTeamsListScroller",
|
||||
fTeamsListView, B_FOLLOW_ALL_SIDES, 0, false, true, B_NO_BORDER);
|
||||
|
||||
AddChild(scroller);
|
||||
AddChild(teamsScroller);
|
||||
|
||||
// small visual tweak
|
||||
if (BScrollBar* scrollBar = teamsScroller->ScrollBar(B_VERTICAL)) {
|
||||
scrollBar->MoveBy(0, -1);
|
||||
scrollBar->ResizeBy(0, -(B_H_SCROLL_BAR_HEIGHT - 2));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -171,13 +171,17 @@ TeamListItem::_SetTo(team_info & info)
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
TeamsListView::TeamsListView(BRect rect, const char* name, uint32 resizingMode)
|
||||
: BListView(rect, name, B_SINGLE_SELECTION_LIST, resizingMode),
|
||||
TeamsListView::TeamsListView(BRect frame, const char* name)
|
||||
: BListView(frame, name, B_SINGLE_SELECTION_LIST, B_FOLLOW_ALL),
|
||||
fUpdateRunner(NULL)
|
||||
{
|
||||
team_info tmi;
|
||||
get_team_info(B_CURRENT_TEAM, &tmi);
|
||||
fThisTeam = tmi.team;
|
||||
|
||||
#ifdef __HAIKU__
|
||||
SetFlags(Flags() | B_SUBPIXEL_PRECISE);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -41,8 +41,7 @@ class TeamListItem : public BStringItem {
|
||||
|
||||
class TeamsListView : public BListView {
|
||||
public:
|
||||
TeamsListView(BRect rect, const char* name,
|
||||
uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_TOP);
|
||||
TeamsListView(BRect frame, const char* name);
|
||||
virtual ~TeamsListView();
|
||||
|
||||
TeamListItem* FindItem(team_id teamId);
|
||||
|
Loading…
Reference in New Issue
Block a user