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:
@@ -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);
|
||||
}
|
||||
// ------------------------------------------------------------------------------- //
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user