From d89ead3dfb7aec9abb0680265f9ef35fcf64dca9 Mon Sep 17 00:00:00 2001 From: DarkWyrm Date: Sat, 15 May 2004 17:08:38 +0000 Subject: [PATCH] Removed commented-out int8 hack Tested undocumented functions and removed Erik's TODO items git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7589 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Alert.cpp | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/kits/interface/Alert.cpp b/src/kits/interface/Alert.cpp index 02e8535d21..e7633555c2 100644 --- a/src/kits/interface/Alert.cpp +++ b/src/kits/interface/Alert.cpp @@ -36,9 +36,6 @@ #include #include #include -// TODO: Fix -// This is hacked in because something in Accelerant.h or SupportDefs.h is lame! -//typedef unsigned int uint; #include #include #include @@ -360,8 +357,8 @@ void BAlert::MessageReceived(BMessage* msg) //------------------------------------------------------------------------------ void BAlert::FrameResized(float new_width, float new_height) { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: BAlerts are, by nature, not resizable. Do nothing. + BWindow::FrameResized(new_width, new_height); } //------------------------------------------------------------------------------ @@ -383,36 +380,31 @@ BHandler* BAlert::ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property) { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: Undocumented. A disassembly reveals that it calls the BWindow version return BWindow::ResolveSpecifier(msg, index, specifier, form, property); } //------------------------------------------------------------------------------ status_t BAlert::GetSupportedSuites(BMessage* data) { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: Undocumented, but testing reveals that it calls the BWindow version return BWindow::GetSupportedSuites(data); } //------------------------------------------------------------------------------ void BAlert::DispatchMessage(BMessage* msg, BHandler* handler) { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: Undocumented. A disassembly reveals that it calls the BWindow version BWindow::DispatchMessage(msg, handler); } //------------------------------------------------------------------------------ void BAlert::Quit() { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: Undocumented. A disassembly reveals that it calls the BWindow version BWindow::Quit(); } //------------------------------------------------------------------------------ bool BAlert::QuitRequested() { - // Nothing in documentation; will have to test - // TODO: Implement? + // DW: Undocumented. A disassembly reveals that it calls the BWindow version return BWindow::QuitRequested(); } //------------------------------------------------------------------------------