Fix coding style.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37886 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
* DarkWyrm <[email protected]>
|
* DarkWyrm <[email protected]>
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DECOR_MANAGER_H
|
#ifndef DECOR_MANAGER_H
|
||||||
#define DECOR_MANAGER_H
|
#define DECOR_MANAGER_H
|
||||||
|
|
||||||
@@ -29,8 +28,7 @@ class WindowBehaviour;
|
|||||||
typedef BObjectList<DesktopListener> DesktopListenerList;
|
typedef BObjectList<DesktopListener> DesktopListenerList;
|
||||||
|
|
||||||
|
|
||||||
class DecorAddOn
|
class DecorAddOn {
|
||||||
{
|
|
||||||
public:
|
public:
|
||||||
DecorAddOn(image_id id, const char* name);
|
DecorAddOn(image_id id, const char* name);
|
||||||
virtual ~DecorAddOn();
|
virtual ~DecorAddOn();
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
* Stephan Aßmus <[email protected]>
|
* Stephan Aßmus <[email protected]>
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DECORATOR_H
|
#ifndef DECORATOR_H
|
||||||
#define DECORATOR_H
|
#define DECORATOR_H
|
||||||
|
|
||||||
@@ -46,6 +45,7 @@ enum click_type {
|
|||||||
CLICK_RESIZE_RB
|
CLICK_RESIZE_RB
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class Decorator {
|
class Decorator {
|
||||||
public:
|
public:
|
||||||
Decorator(DesktopSettings& settings, BRect rect,
|
Decorator(DesktopSettings& settings, BRect rect,
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
* Stephan Aßmus <[email protected]>
|
* Stephan Aßmus <[email protected]>
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEFAULT_DECORATOR_H
|
#ifndef DEFAULT_DECORATOR_H
|
||||||
#define DEFAULT_DECORATOR_H
|
#define DEFAULT_DECORATOR_H
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
* Brecht Machiels <[email protected]>
|
* Brecht Machiels <[email protected]>
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DEFAULT_WINDOW_BEHAVIOUR_H
|
#ifndef DEFAULT_WINDOW_BEHAVIOUR_H
|
||||||
#define DEFAULT_WINDOW_BEHAVIOUR_H
|
#define DEFAULT_WINDOW_BEHAVIOUR_H
|
||||||
|
|
||||||
@@ -24,9 +23,8 @@ class Desktop;
|
|||||||
class Window;
|
class Window;
|
||||||
|
|
||||||
|
|
||||||
class DefaultWindowBehaviour : public WindowBehaviour
|
class DefaultWindowBehaviour : public WindowBehaviour {
|
||||||
{
|
public:
|
||||||
public:
|
|
||||||
DefaultWindowBehaviour(Window* window);
|
DefaultWindowBehaviour(Window* window);
|
||||||
virtual ~DefaultWindowBehaviour();
|
virtual ~DefaultWindowBehaviour();
|
||||||
|
|
||||||
@@ -35,7 +33,7 @@ class DefaultWindowBehaviour : public WindowBehaviour
|
|||||||
virtual void MouseMoved(BMessage *message, BPoint where,
|
virtual void MouseMoved(BMessage *message, BPoint where,
|
||||||
bool isFake);
|
bool isFake);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Window* fWindow;
|
Window* fWindow;
|
||||||
Desktop* fDesktop;
|
Desktop* fDesktop;
|
||||||
|
|
||||||
@@ -50,7 +48,7 @@ class DefaultWindowBehaviour : public WindowBehaviour
|
|||||||
bigtime_t fLastMoveTime;
|
bigtime_t fLastMoveTime;
|
||||||
bigtime_t fLastSnapTime;
|
bigtime_t fLastSnapTime;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int32 _ExtractButtons(const BMessage* message) const;
|
int32 _ExtractButtons(const BMessage* message) const;
|
||||||
int32 _ExtractModifiers(const BMessage* message) const;
|
int32 _ExtractModifiers(const BMessage* message) const;
|
||||||
click_type _ActionFor(const BMessage* message) const;
|
click_type _ActionFor(const BMessage* message) const;
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "DesktopListener.h"
|
#include "DesktopListener.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
* Authors:
|
* Authors:
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef DESKTOP_LISTENER_H
|
#ifndef DESKTOP_LISTENER_H
|
||||||
#define DESKTOP_LISTENER_H
|
#define DESKTOP_LISTENER_H
|
||||||
|
|
||||||
|
|
||||||
#include <util/DoublyLinkedList.h>
|
#include <util/DoublyLinkedList.h>
|
||||||
|
|
||||||
#include <Point.h>
|
#include <Point.h>
|
||||||
@@ -18,9 +18,8 @@ class BMessage;
|
|||||||
class Window;
|
class Window;
|
||||||
|
|
||||||
|
|
||||||
class DesktopListener : public DoublyLinkedListLinkImpl<DesktopListener>
|
class DesktopListener : public DoublyLinkedListLinkImpl<DesktopListener> {
|
||||||
{
|
public:
|
||||||
public:
|
|
||||||
virtual ~DesktopListener();
|
virtual ~DesktopListener();
|
||||||
|
|
||||||
virtual void AddWindow(Window* window) = 0;
|
virtual void AddWindow(Window* window) = 0;
|
||||||
@@ -58,9 +57,8 @@ class DesktopListener : public DoublyLinkedListLinkImpl<DesktopListener>
|
|||||||
typedef DoublyLinkedList<DesktopListener> DesktopListenerDLList;
|
typedef DoublyLinkedList<DesktopListener> DesktopListenerDLList;
|
||||||
|
|
||||||
|
|
||||||
class DesktopObservable
|
class DesktopObservable {
|
||||||
{
|
public:
|
||||||
public:
|
|
||||||
DesktopObservable();
|
DesktopObservable();
|
||||||
|
|
||||||
void RegisterListener(DesktopListener* listener);
|
void RegisterListener(DesktopListener* listener);
|
||||||
@@ -96,8 +94,8 @@ class DesktopObservable
|
|||||||
void InvokeGetDecoratorSettings(Window* window,
|
void InvokeGetDecoratorSettings(Window* window,
|
||||||
BMessage& settings);
|
BMessage& settings);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class InvokeGuard{
|
class InvokeGuard {
|
||||||
public:
|
public:
|
||||||
InvokeGuard(bool& invoking);
|
InvokeGuard(bool& invoking);
|
||||||
~InvokeGuard();
|
~InvokeGuard();
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
* Stefano Ceccherini ([email protected])
|
* Stefano Ceccherini ([email protected])
|
||||||
* Marcus Overhagen <[email protected]>
|
* Marcus Overhagen <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ServerPicture.h"
|
#include "ServerPicture.h"
|
||||||
|
|
||||||
#include <new>
|
#include <new>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
* Authors:
|
* Authors:
|
||||||
* Clemens Zeidler <[email protected]>
|
* Clemens Zeidler <[email protected]>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef WINDOW_BEHAVIOUR_H
|
#ifndef WINDOW_BEHAVIOUR_H
|
||||||
#define WINDOW_BEHAVIOUR_H
|
#define WINDOW_BEHAVIOUR_H
|
||||||
|
|
||||||
@@ -16,9 +15,8 @@
|
|||||||
class BMessage;
|
class BMessage;
|
||||||
|
|
||||||
|
|
||||||
class WindowBehaviour
|
class WindowBehaviour {
|
||||||
{
|
public:
|
||||||
public:
|
|
||||||
WindowBehaviour();
|
WindowBehaviour();
|
||||||
virtual ~WindowBehaviour();
|
virtual ~WindowBehaviour();
|
||||||
|
|
||||||
@@ -31,7 +29,7 @@ class WindowBehaviour
|
|||||||
bool IsDragging() const { return fIsDragging; }
|
bool IsDragging() const { return fIsDragging; }
|
||||||
bool IsResizing() const { return fIsResizing; }
|
bool IsResizing() const { return fIsResizing; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool fIsResizing : 1;
|
bool fIsResizing : 1;
|
||||||
bool fIsDragging : 1;
|
bool fIsDragging : 1;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user