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 -- constructor for DUN Class
DUN::DUN() : BApplication (APP_SIGNATURE) { 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__ #ifndef __DUN_H__
#define __DUN_H__ #define __DUN_H__
#include "DUNWindow.h"
extern const char *APP_SIGNATURE; extern const char *APP_SIGNATURE;
class DUN : public BApplication { class DUN : public BApplication {
@@ -16,6 +18,7 @@ public:
DUN(); DUN();
virtual void MessageReceived(BMessage *message); virtual void MessageReceived(BMessage *message);
private: private:
DUNWindow* dunWindow;
}; };
#endif #endif
+1 -1
View File
@@ -261,7 +261,7 @@ bool DUNWindow::QuitRequested() {
void DUNWindow::MessageReceived (BMessage *message) { void DUNWindow::MessageReceived (BMessage *message) {
switch(message->what) { switch(message->what) {
case BTN_MODEM: case BTN_MODEM:
new ModemWindow(windowRectModem); modemWindow = new ModemWindow(windowRectModem);
break; break;
default: default:
BWindow::MessageReceived(message); BWindow::MessageReceived(message);
+27 -23
View File
@@ -9,6 +9,8 @@ DUNWindow Header by Sikosis ([email protected])
#ifndef __DUNWINDOW_H__ #ifndef __DUNWINDOW_H__
#define __DUNWINDOW_H__ #define __DUNWINDOW_H__
#include "ModemWindow.h"
class DUNView; class DUNView;
class DUNWindow : public BWindow { class DUNWindow : public BWindow {
@@ -18,35 +20,37 @@ public:
virtual bool QuitRequested(); virtual bool QuitRequested();
virtual void MessageReceived(BMessage *message); virtual void MessageReceived(BMessage *message);
private: private:
void InitWindow(void); ModemWindow *modemWindow;
DUNView* aDUNview; void InitWindow(void);
DUNView* aDUNview;
//BMenuBar *menubar;
BBox *topframe;
BBox *middleframe;
BBox *bottomframe;
//BMenuBar *menubar; BButton *modembutton;
BBox *topframe; BButton *disconnectbutton;
BBox *middleframe; BButton *connectbutton;
BBox *bottomframe;
BButton *modembutton; BCheckBox *disablecallwaiting;
BButton *disconnectbutton; BCheckBox *dialoutprefix;
BButton *connectbutton;
BCheckBox *disablecallwaiting; BOutlineListView *connectionlistitem;
BCheckBox *dialoutprefix; BOutlineListView *locationlistitem;
BOutlineListView *connectionlistitem; BMenuField *connectionmenufield;
BOutlineListView *locationlistitem; BMenuField *locationmenufield;
BMenuField *connectionmenufield; BMenu *conmenufield;
BMenuField *locationmenufield; BMenu *locmenufield;
BMenu *conmenufield;
BMenu *locmenufield;
BTextView *tvConnectionProfile; BTextView *tvConnectionProfile;
BTextView *tvCallWaiting; BTextView *tvCallWaiting;
BTextView *tvConnection; BTextView *tvConnection;
BTextView *tvTimeOnline; BTextView *tvTimeOnline;
BTextView *tvLIP; BTextView *tvLIP;
BTextView *tvLocalIPAddress; BTextView *tvLocalIPAddress;
}; };
+23 -21
View File
@@ -9,6 +9,8 @@ ModemWindow Header by Sikosis ([email protected])
#ifndef __MODEMWINDOW_H__ #ifndef __MODEMWINDOW_H__
#define __MODEMWINDOW_H__ #define __MODEMWINDOW_H__
#include "ModemWindow.h"
class ModemView; class ModemView;
class ModemWindow : public BWindow class ModemWindow : public BWindow
@@ -18,32 +20,32 @@ public:
~ModemWindow(); ~ModemWindow();
virtual void MessageReceived(BMessage *message); virtual void MessageReceived(BMessage *message);
private: private:
void InitWindow(void); void InitWindow(void);
ModemView* aModemview; ModemView* aModemview;
BButton *btnModemWindowCustom; BButton *btnModemWindowCustom;
BButton *btnModemWindowCancel; BButton *btnModemWindowCancel;
BButton *btnModemWindowDone; BButton *btnModemWindowDone;
BMenu *YourModemIsMenu; BMenu *YourModemIsMenu;
BMenuField *YourModemIsMenuField; BMenuField *YourModemIsMenuField;
BMenu *ConnectViaMenu; BMenu *ConnectViaMenu;
BMenuField *ConnectViaMenuField; BMenuField *ConnectViaMenuField;
BMenu *SpeedMenu; BMenu *SpeedMenu;
BMenuField *SpeedMenuField; BMenuField *SpeedMenuField;
BTextView *tvRedial; BTextView *tvRedial;
BTextView *tvTimesBusySignal; BTextView *tvTimesBusySignal;
BTextView *tvUse; BTextView *tvUse;
BTextView *tvReadLogPath; BTextView *tvReadLogPath;
BTextView *tvWriteLogPath; BTextView *tvWriteLogPath;
BCheckBox *chkMakeConnection; BCheckBox *chkMakeConnection;
BCheckBox *chkShowTerminal; BCheckBox *chkShowTerminal;
BCheckBox *chkLogAll; BCheckBox *chkLogAll;
BRadioButton *rbTone; BRadioButton *rbTone;
BRadioButton *rbPulse; BRadioButton *rbPulse;
}; };
#endif #endif