changed iostreams to stdlib to fix linking problem under DEBUG=1
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4228 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
#include <storage/Directory.h>
|
#include <storage/Directory.h>
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#include <interface/Input.h>
|
#include <interface/Input.h>
|
||||||
#include <iostream.h>
|
#include <stdio.h>
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
#include "KeymapWindow.h"
|
#include "KeymapWindow.h"
|
||||||
#include "KeymapApplication.h"
|
#include "KeymapApplication.h"
|
||||||
@@ -65,7 +65,7 @@ BList* KeymapApplication::EntryList( char *directoryPath )
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
char name[B_FILE_NAME_LENGTH];
|
char name[B_FILE_NAME_LENGTH];
|
||||||
currentEntry->GetName( name );
|
currentEntry->GetName( name );
|
||||||
cout << "Found: " << name << endl;
|
printf("Found: %s\n",name);
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -8,15 +8,13 @@
|
|||||||
#include <interface/Alert.h>
|
#include <interface/Alert.h>
|
||||||
#include <interface/Box.h>
|
#include <interface/Box.h>
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#include <iostream.h>
|
#include <stdio.h>
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
#include "KeymapWindow.h"
|
#include "KeymapWindow.h"
|
||||||
#include "KeymapListItem.h"
|
#include "KeymapListItem.h"
|
||||||
#include "KeymapApplication.h"
|
#include "KeymapApplication.h"
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
|
|
||||||
#include <iostream.h>
|
|
||||||
|
|
||||||
KeymapWindow::KeymapWindow( BRect frame )
|
KeymapWindow::KeymapWindow( BRect frame )
|
||||||
: BWindow( frame, WINDOW_TITLE, B_TITLED_WINDOW,
|
: BWindow( frame, WINDOW_TITLE, B_TITLED_WINDOW,
|
||||||
B_NOT_ZOOMABLE|B_NOT_RESIZABLE|B_ASYNCHRONOUS_CONTROLS )
|
B_NOT_ZOOMABLE|B_NOT_RESIZABLE|B_ASYNCHRONOUS_CONTROLS )
|
||||||
@@ -228,7 +226,7 @@ BList* KeymapWindow::ListItemsFromEntryList( BList * entryList)
|
|||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
currentEntry->GetName( name );
|
currentEntry->GetName( name );
|
||||||
cout << "New list item: " << name << endl;
|
printf("New list item: %s\n",name);
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,7 +295,7 @@ void KeymapWindow::MessageReceived( BMessage* message )
|
|||||||
void KeymapWindow::HandleSystemMapSelected( BMessage *selectionMessage )
|
void KeymapWindow::HandleSystemMapSelected( BMessage *selectionMessage )
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
cout << "System map selected" << endl;
|
printf("System map selected\n");
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
HandleMapSelected( selectionMessage, fSystemListView, fUserListView );
|
HandleMapSelected( selectionMessage, fSystemListView, fUserListView );
|
||||||
}
|
}
|
||||||
@@ -305,7 +303,7 @@ void KeymapWindow::HandleSystemMapSelected( BMessage *selectionMessage )
|
|||||||
void KeymapWindow::HandleUserMapSelected( BMessage *selectionMessage )
|
void KeymapWindow::HandleUserMapSelected( BMessage *selectionMessage )
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
cout << "User map selected" << endl;
|
printf("User map selected\n");
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
HandleMapSelected( selectionMessage, fUserListView, fSystemListView );
|
HandleMapSelected( selectionMessage, fUserListView, fSystemListView );
|
||||||
}
|
}
|
||||||
@@ -320,7 +318,7 @@ void KeymapWindow::HandleMapSelected( BMessage *selectionMessage,
|
|||||||
index = selectedView->CurrentSelection( 0 );
|
index = selectedView->CurrentSelection( 0 );
|
||||||
if( index < 0 ) {
|
if( index < 0 ) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
cout << "index<0; HandleMapSelected ends here." << endl;
|
printf("index<0; HandleMapSelected ends here.\n");
|
||||||
|
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
return;
|
return;
|
||||||
@@ -334,7 +332,7 @@ void KeymapWindow::HandleMapSelected( BMessage *selectionMessage,
|
|||||||
#if DEBUG
|
#if DEBUG
|
||||||
char name[B_FILE_NAME_LENGTH];
|
char name[B_FILE_NAME_LENGTH];
|
||||||
fSelectedMap->GetName( name );
|
fSelectedMap->GetName( name );
|
||||||
cout << "fSelectedMap has been set to " << name << endl;
|
printf("fSelectedMap has been set to %s\n",name);
|
||||||
#endif //DEBUG
|
#endif //DEBUG
|
||||||
|
|
||||||
// Deselect item in other BListView
|
// Deselect item in other BListView
|
||||||
|
|||||||
Reference in New Issue
Block a user