fat: Greatly simplify and clean up dosfs_get_file_map().
[haiku.git] / src / preferences / dun / DUN.cpp
blob40f2f267241abf467018bbd3cf1fd15f89fbb1d6
1 /*
3 DUN - DialUp Networking Preference Application
5 Authors: Sikosis (beos@gravity24hr.com)
6 Misza (misza@ihug.com.au)
8 (C) 2002 OpenBeOS under MIT license
12 #include <Application.h>
13 #include <Alert.h>
14 #include <Window.h>
15 #include <View.h>
16 #include <stdio.h>
18 #include "DUN.h"
19 #include "ModemWindow.h"
20 #include "DUNWindow.h"
21 #include "DUNView.h"
22 // ------------------------------------------------------------------------------- //
25 // Application Signature and Title
26 const char *APP_SIGNATURE = "application/x-vnd.Haiku-DialUpNetworking";
28 // Default Window Size
29 float FormTopDefault = 100;
30 float FormLeftDefault = 100;
31 float FormWidthDefault = 312;
32 float FormHeightDefault = 250;
34 float FormTopState1 = 100;
35 float FormLeftState1 = 100;
36 float FormWidthState1 = 312;
37 float FormHeightState1 = 282;
39 float FormTopState2 = 100;
40 float FormLeftState2 = 100;
41 float FormWidthState2 = 312;
42 float FormHeightState2 = 282;
44 BRect windowRect(FormTopDefault,FormLeftDefault,FormLeftDefault+FormWidthDefault,FormTopDefault+FormHeightDefault);
46 // DUN -- constructor for DUN Class
47 DUN::DUN() : BApplication (APP_SIGNATURE)
49 ptrDUNWindow = new DUNWindow(windowRect);
51 // ------------------------------------------------------------------------------- //
54 // DUN::MessageReceived -- handles incoming messages
55 void DUN::MessageReceived (BMessage *message)
57 switch(message->what)
59 default:
60 BApplication::MessageReceived(message); // pass it along ...
61 break;
64 // ------------------------------------------------------------------------------- //
66 // DUN Main
67 int main(void)
69 DUN theApp;
70 theApp.Run();
71 return 0;
73 // end