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