Style cleanup.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2010-11-16 16:01:11 +00:00
parent 53cd28e9d5
commit 91eec68cf1
2 changed files with 116 additions and 104 deletions
+16 -7
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2001-2008, Haiku.
* Copyright 2001-2010, Haiku.
* Copyright (c) 2003-4 Kian Duffy <[email protected]>
* Parts Copyright (C) 1998,99 Kazuho Okui and Takashi Murai.
*
@@ -37,9 +37,12 @@
#include <File.h>
#include <String.h>
class Arguments;
class BRect;
class BWindow;
class TermApp : public BApplication {
public:
TermApp();
@@ -54,16 +57,20 @@ class TermApp : public BApplication {
void ArgvReceived(int32 argc, char** argv);
private:
status_t _MakeTermWindow(BRect& frame, uint32 workspaces);
status_t _GetWindowPositionFile(BFile* file, uint32 openMode);
status_t _LoadWindowPosition(BRect* frame, uint32* workspaces);
status_t _MakeTermWindow(BRect& frame,
uint32 workspaces);
status_t _GetWindowPositionFile(BFile* file,
uint32 openMode);
status_t _LoadWindowPosition(BRect* frame,
uint32* workspaces);
status_t _SaveWindowPosition(BMessage* message);
void _SwitchTerm();
void _ActivateTermWindow(team_id id);
bool _IsSwitchTarget(team_id id);
void _SanitizeIDs(BMessage* data, uint8* windows, ssize_t length);
bool _UpdateIDs(bool set, uint8* windows, ssize_t maxLength,
ssize_t* _length);
void _SanitizeIDs(BMessage* data, uint8* windows,
ssize_t length);
bool _UpdateIDs(bool set, uint8* windows,
ssize_t maxLength, ssize_t* _length);
void _UpdateRegistration(bool set);
void _UnregisterTerminal();
void _RegisterTerminal();
@@ -74,6 +81,7 @@ class TermApp : public BApplication {
void _Usage(char *name);
private:
bool fStartFullscreen;
BString fWindowTitle;
int32 fWindowNumber;
@@ -84,4 +92,5 @@ class TermApp : public BApplication {
Arguments* fArgs;
};
#endif // TERM_APP_H
+9 -6
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2001-2007, Haiku.
* Copyright 2001-2010, Haiku.
* Copyright (c) 2003-4 Kian Duffy <[email protected]>
* Parts Copyright (C) 1998,99 Kazuho Okui and Takashi Murai.
*
@@ -28,13 +28,14 @@
* THE SOFTWARE.
*
*/
#ifndef __TERMWINDOW_H
#define __TERMWINDOW_H
#ifndef TERM_WINDOW_H
#define TERM_WINDOW_H
#include <String.h>
#include <Window.h>
class Arguments;
class BFont;
class BMenu;
@@ -48,8 +49,8 @@ class TermViewContainerView;
class TermWindow : public BWindow {
public:
TermWindow(BRect frame, const char* title, uint32 workspaces,
Arguments *args);
TermWindow(BRect frame, const char* title,
uint32 workspaces, Arguments* args);
virtual ~TermWindow();
void SetSessionWindowTitle(TermView* termView,
@@ -91,6 +92,7 @@ private:
int32 _NewSessionID();
private:
BString fInitialTitle;
BList fSessions;
@@ -126,4 +128,5 @@ private:
bool fFullScreen;
};
#endif // __TERMWINDOW_H
#endif // TERM_WINDOW_H