Style updates for the application files.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5943 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+16
-10
@@ -20,23 +20,16 @@
|
||||
#include "Mouse.h"
|
||||
#include "MouseWindow.h"
|
||||
|
||||
|
||||
const char kMouseApplicationSig[] = "application/x-vnd.OpenBeOS-MOUS";
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
MouseApplication myApplication;
|
||||
|
||||
myApplication.Run();
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
||||
MouseApplication::MouseApplication()
|
||||
:BApplication(kMouseApplicationSig)
|
||||
: BApplication(kMouseApplicationSig)
|
||||
{
|
||||
BRect rect(0, 0, 397, 293);
|
||||
MouseWindow *window = new MouseWindow(rect);
|
||||
window->MoveTo(window->fSettings.WindowCorner());
|
||||
window->MoveTo(window->fSettings.WindowPosition());
|
||||
|
||||
window->Show();
|
||||
}
|
||||
@@ -47,3 +40,16 @@ MouseApplication::AboutRequested(void)
|
||||
{
|
||||
(new BAlert("about", "...by Andrew Edward McCall", "Dig Deal"))->Go();
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark -
|
||||
|
||||
|
||||
int
|
||||
main(int /*argc*/, char **/*argv*/)
|
||||
{
|
||||
MouseApplication app;
|
||||
app.Run();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -13,19 +13,19 @@
|
||||
// Modified : December 10, 2003
|
||||
//
|
||||
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||
|
||||
#ifndef MOUSE_H
|
||||
#define MOUSE_H
|
||||
|
||||
|
||||
#include <Application.h>
|
||||
#include "MouseWindow.h"
|
||||
|
||||
|
||||
class MouseApplication : public BApplication
|
||||
{
|
||||
public:
|
||||
MouseApplication();
|
||||
|
||||
void AboutRequested(void);
|
||||
public:
|
||||
MouseApplication();
|
||||
|
||||
virtual void AboutRequested(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif /* MOUSE_H */
|
||||
|
||||
Reference in New Issue
Block a user