progress bar extension. put message to console.
This commit is contained in:
parent
a28cfcb566
commit
b5f1c4963a
@ -1,7 +1,7 @@
|
||||
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.12 2004/03/16 22:30:36 uwe Exp $ */
|
||||
/* -*-C++-*- $NetBSD: hpcmenu.cpp,v 1.13 2004/08/06 17:22:01 uch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
@ -337,9 +337,9 @@ HpcMenuInterface::setup_bootinfo(struct bootinfo &bi)
|
||||
|
||||
// Progress bar
|
||||
void
|
||||
HpcMenuInterface::progress()
|
||||
HpcMenuInterface::progress(const char *msg)
|
||||
{
|
||||
_root->progress();
|
||||
_root->progress(msg);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* -*-C++-*- $NetBSD: hpcmenu.h,v 1.9 2003/12/21 03:18:31 uwe Exp $ */
|
||||
/* -*-C++-*- $NetBSD: hpcmenu.h,v 1.10 2004/08/06 17:22:01 uch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This code is derived from software contributed to The NetBSD Foundation
|
||||
@ -180,7 +180,7 @@ public:
|
||||
void boot(void);
|
||||
|
||||
// Progress bar.
|
||||
void progress(void);
|
||||
void progress(const char * = NULL);
|
||||
void unprogress(void);
|
||||
|
||||
// Console window interface.
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* -*-C++-*- $NetBSD: rootwindow.cpp,v 1.17 2004/04/27 00:04:38 uwe Exp $ */
|
||||
/* -*-C++-*- $NetBSD: rootwindow.cpp,v 1.18 2004/08/06 17:22:01 uch Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -42,6 +42,7 @@
|
||||
#include <menu/rootwindow.h>
|
||||
#include <res/resource.h>
|
||||
#include "../binary/build_number.h"
|
||||
#include <console.h>
|
||||
|
||||
//
|
||||
// root window
|
||||
@ -371,8 +372,12 @@ RootWindow::focusManagerHook(MSG &msg, HWND tab_window)
|
||||
}
|
||||
|
||||
void
|
||||
RootWindow::progress()
|
||||
RootWindow::progress(const char *msg)
|
||||
{
|
||||
|
||||
if (msg)
|
||||
Console::Instance()->print(TEXT("[progress] %s\n"), msg);
|
||||
|
||||
SendMessage(_progress_bar->_window, PBM_STEPIT, 0, 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user