From 8d7033efbb9e173fcd95776e9e5e39b61adacc93 Mon Sep 17 00:00:00 2001 From: plfiorini Date: Wed, 12 May 2010 18:15:21 +0000 Subject: [PATCH] Adding more menus... --- application/MainWindow.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp index 9ade3d6..cd83b8f 100644 --- a/application/MainWindow.cpp +++ b/application/MainWindow.cpp @@ -42,9 +42,10 @@ #include "Server.h" #include "StatusView.h" -const int32 kLogin = 'LOGI'; -const int32 kSearchContact = 'SRCH'; -const int32 kPreferences = 'PRFS'; +const uint32 kLogin = 'LOGI'; +const uint32 kSearchContact = 'SRCH'; + +const uint32 kPreferences = 'WPRF'; MainWindow::MainWindow() : @@ -84,8 +85,14 @@ MainWindow::MainWindow() : // Wrench menu BPopUpMenu* wrenchMenu = new BPopUpMenu("Wrench"); + (void)wrenchMenu->AddItem(new BMenuItem("About Caya...", + new BMessage(B_ABOUT_REQUESTED))); + (void)wrenchMenu->AddItem(new BSeparatorItem()); (void)wrenchMenu->AddItem(new BMenuItem("Preferences...", new BMessage(kPreferences))); + (void)wrenchMenu->AddItem(new BSeparatorItem()); + (void)wrenchMenu->AddItem(new BMenuItem("Quit", + new BMessage(B_QUIT_REQUESTED))); wrenchMenu->SetTargetForItems(this); // Tool icon