Updated the Window calls.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@812 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Phil Greenway
2002-08-18 22:14:31 +00:00
parent e11ff37981
commit add155b5b7
5 changed files with 55 additions and 47 deletions
+1 -2
View File
@@ -44,8 +44,7 @@ const uint32 MENU_CON_NEW = 'MCNu';
// DUN -- constructor for DUN Class
DUN::DUN() : BApplication (APP_SIGNATURE) {
new DUNWindow(windowRect);
dunWindow = new DUNWindow(windowRect);
}
// ------------------------------------------------------------------------------- //
+3
View File
@@ -9,6 +9,8 @@ DUN Header by Sikosis ([email protected])
#ifndef __DUN_H__
#define __DUN_H__
#include "DUNWindow.h"
extern const char *APP_SIGNATURE;
class DUN : public BApplication {
@@ -16,6 +18,7 @@ public:
DUN();
virtual void MessageReceived(BMessage *message);
private:
DUNWindow* dunWindow;
};
#endif
+1 -1
View File
@@ -261,7 +261,7 @@ bool DUNWindow::QuitRequested() {
void DUNWindow::MessageReceived (BMessage *message) {
switch(message->what) {
case BTN_MODEM:
new ModemWindow(windowRectModem);
modemWindow = new ModemWindow(windowRectModem);
break;
default:
BWindow::MessageReceived(message);
+4
View File
@@ -9,6 +9,8 @@ DUNWindow Header by Sikosis ([email protected])
#ifndef __DUNWINDOW_H__
#define __DUNWINDOW_H__
#include "ModemWindow.h"
class DUNView;
class DUNWindow : public BWindow {
@@ -18,6 +20,7 @@ public:
virtual bool QuitRequested();
virtual void MessageReceived(BMessage *message);
private:
ModemWindow *modemWindow;
void InitWindow(void);
DUNView* aDUNview;
@@ -38,6 +41,7 @@ private:
BMenuField *connectionmenufield;
BMenuField *locationmenufield;
BMenu *conmenufield;
BMenu *locmenufield;
+2
View File
@@ -9,6 +9,8 @@ ModemWindow Header by Sikosis ([email protected])
#ifndef __MODEMWINDOW_H__
#define __MODEMWINDOW_H__
#include "ModemWindow.h"
class ModemView;
class ModemWindow : public BWindow