Style cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39447 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+20
-11
@@ -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,15 +37,18 @@
|
|||||||
#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();
|
||||||
virtual ~TermApp();
|
virtual ~TermApp();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ReadyToRun();
|
void ReadyToRun();
|
||||||
void Quit();
|
void Quit();
|
||||||
void AboutRequested();
|
void AboutRequested();
|
||||||
@@ -53,17 +56,21 @@ class TermApp : public BApplication {
|
|||||||
void RefsReceived(BMessage* message);
|
void RefsReceived(BMessage* message);
|
||||||
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;
|
||||||
@@ -81,7 +89,8 @@ class TermApp : public BApplication {
|
|||||||
BWindow* fTermWindow;
|
BWindow* fTermWindow;
|
||||||
BRect fTermFrame;
|
BRect fTermFrame;
|
||||||
uint32 fTermWorkspaces;
|
uint32 fTermWorkspaces;
|
||||||
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,
|
||||||
@@ -58,7 +59,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage* message);
|
||||||
virtual void WindowActivated(bool);
|
virtual void WindowActivated(bool);
|
||||||
virtual void MenusBeginning();
|
virtual void MenusBeginning();
|
||||||
virtual void Zoom(BPoint leftTop, float width, float height);
|
virtual void Zoom(BPoint leftTop, float width, float height);
|
||||||
@@ -69,7 +70,7 @@ private:
|
|||||||
class TabView;
|
class TabView;
|
||||||
friend class TabView;
|
friend class TabView;
|
||||||
|
|
||||||
void _SetTermColors(TermViewContainerView *termView);
|
void _SetTermColors(TermViewContainerView* termView);
|
||||||
void _InitWindow();
|
void _InitWindow();
|
||||||
void _SetupMenu();
|
void _SetupMenu();
|
||||||
static BMenu* _MakeEncodingMenu();
|
static BMenu* _MakeEncodingMenu();
|
||||||
@@ -78,7 +79,7 @@ private:
|
|||||||
void _GetPreferredFont(BFont &font);
|
void _GetPreferredFont(BFont &font);
|
||||||
status_t _DoPageSetup();
|
status_t _DoPageSetup();
|
||||||
void _DoPrint();
|
void _DoPrint();
|
||||||
void _AddTab(Arguments *args);
|
void _AddTab(Arguments* args);
|
||||||
void _RemoveTab(int32 index);
|
void _RemoveTab(int32 index);
|
||||||
bool _CanClose(int32 index);
|
bool _CanClose(int32 index);
|
||||||
TermViewContainerView* _ActiveTermViewContainerView() const;
|
TermViewContainerView* _ActiveTermViewContainerView() const;
|
||||||
@@ -87,36 +88,37 @@ private:
|
|||||||
TermView* _TermViewAt(int32 index) const;
|
TermView* _TermViewAt(int32 index) const;
|
||||||
int32 _IndexOfTermView(TermView* termView) const;
|
int32 _IndexOfTermView(TermView* termView) const;
|
||||||
void _CheckChildren();
|
void _CheckChildren();
|
||||||
void _ResizeView(TermView *view);
|
void _ResizeView(TermView* view);
|
||||||
|
|
||||||
int32 _NewSessionID();
|
int32 _NewSessionID();
|
||||||
|
|
||||||
|
private:
|
||||||
BString fInitialTitle;
|
BString fInitialTitle;
|
||||||
BList fSessions;
|
BList fSessions;
|
||||||
|
|
||||||
TabView *fTabView;
|
TabView* fTabView;
|
||||||
TermView *fTermView;
|
TermView* fTermView;
|
||||||
|
|
||||||
BMenuBar *fMenubar;
|
BMenuBar* fMenubar;
|
||||||
BMenu *fFilemenu;
|
BMenu* fFilemenu;
|
||||||
BMenu *fEditmenu;
|
BMenu* fEditmenu;
|
||||||
BMenu *fEncodingmenu;
|
BMenu* fEncodingmenu;
|
||||||
BMenu *fHelpmenu;
|
BMenu* fHelpmenu;
|
||||||
BMenu *fWindowSizeMenu;
|
BMenu* fWindowSizeMenu;
|
||||||
BMenu *fSizeMenu;
|
BMenu* fSizeMenu;
|
||||||
|
|
||||||
BMessage *fPrintSettings;
|
BMessage* fPrintSettings;
|
||||||
PrefWindow *fPrefWindow;
|
PrefWindow* fPrefWindow;
|
||||||
FindWindow *fFindPanel;
|
FindWindow* fFindPanel;
|
||||||
BRect fSavedFrame;
|
BRect fSavedFrame;
|
||||||
window_look fSavedLook;
|
window_look fSavedLook;
|
||||||
|
|
||||||
// Saved search parameters
|
// Saved search parameters
|
||||||
BString fFindString;
|
BString fFindString;
|
||||||
BMenuItem *fFindNextMenuItem;
|
BMenuItem* fFindNextMenuItem;
|
||||||
BMenuItem *fFindPreviousMenuItem;
|
BMenuItem * fFindPreviousMenuItem;
|
||||||
BMenuItem *fIncreaseFontSizeMenuItem;
|
BMenuItem* fIncreaseFontSizeMenuItem;
|
||||||
BMenuItem *fDecreaseFontSizeMenuItem;
|
BMenuItem* fDecreaseFontSizeMenuItem;
|
||||||
|
|
||||||
bool fFindSelection;
|
bool fFindSelection;
|
||||||
bool fForwardSearch;
|
bool fForwardSearch;
|
||||||
@@ -126,4 +128,5 @@ private:
|
|||||||
bool fFullScreen;
|
bool fFullScreen;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __TERMWINDOW_H
|
|
||||||
|
#endif // TERM_WINDOW_H
|
||||||
|
|||||||
Reference in New Issue
Block a user