Improvements. Still not beta.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7441 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-05-07 09:02:48 +00:00
parent f4e3a8d25f
commit 22b19ff048
10 changed files with 814 additions and 166 deletions
+25 -34
View File
@@ -1,27 +1,33 @@
/*
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
//
// Copyright (c) 2003-2004, OpenBeOS
//
// This software is part of the OpenBeOS distribution and is covered
// by the OpenBeOS license.
//
//
// File: ModemWindow.cpp
// Author: Sikosis, Jérôme Duval
// Description: Devices Preferences
// Created : August 23, 2003
//
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
ModemWindow
Author: Sikosis
(C)2003 OBOS - Released under the MIT License
*/
// Includes ------------------------------------------------------------------------------------------ //
#include <Application.h>
//#include <Application.h>
#include <Box.h>
#include <Button.h>
#include <MenuItem.h>
#include <MenuField.h>
#include <Path.h>
#include <PopUpMenu.h>
//#include <Path.h>
//#include <PopUpMenu.h>
#include <Screen.h>
#include <stdio.h>
#include <String.h>
//#include <stdio.h>
//#include <String.h>
#include <TextView.h>
#include <Window.h>
#include <View.h>
//#include <Window.h>
//#include <View.h>
#include "DevicesWindows.h"
@@ -29,17 +35,6 @@ Author: Sikosis
const uint32 BTN_ADD = 'badd';
const uint32 BTN_CANCEL = 'bcnl';
// CenterWindowOnScreen -- Centers the BWindow to the Current Screen
static void CenterWindowOnScreen(BWindow* w)
{
BRect screenFrame = (BScreen(B_MAIN_SCREEN_ID).Frame());
BPoint pt;
pt.x = screenFrame.Width()/2 - w->Bounds().Width()/2;
pt.y = screenFrame.Height()/2 - w->Bounds().Height()/2;
if (screenFrame.Contains(pt))
w->MoveTo(pt);
}
// -------------------------------------------------------------------------------------------------- //
@@ -58,12 +53,12 @@ ModemWindow::ModemWindow(BRect frame, BMessenger messenger)
// ModemWindow - Destructor
ModemWindow::~ModemWindow()
{
//exit(0);
}
// -------------------------------------------------------------------------------------------------- //
// ModemWindow::InitWindow -- Initialization Commands here
void ModemWindow::InitWindow(void)
void
ModemWindow::InitWindow(void)
{
BRect r;
r = Bounds();
@@ -133,7 +128,8 @@ void ModemWindow::InitWindow(void)
// ModemWindow::MessageReceived -- receives messages
void ModemWindow::MessageReceived (BMessage *message)
void
ModemWindow::MessageReceived (BMessage *message)
{
switch(message->what)
{
@@ -154,8 +150,3 @@ void ModemWindow::MessageReceived (BMessage *message)
}
}
// -------------------------------------------------------------------------------------------------- //