* Put the decor stuff in the BPrivate namespace, as it should have been from
the beginning. * Added header for the get_decorator() functions and friends. * Minor coding style cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41638 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -4,17 +4,20 @@
|
||||
* Author:
|
||||
* Joseph "looncraz" Groover <[email protected]>
|
||||
*/
|
||||
|
||||
|
||||
#ifndef DECOR_INFO_H
|
||||
#define DECOR_INFO_H
|
||||
|
||||
|
||||
#include <Entry.h>
|
||||
#include <Bitmap.h>
|
||||
#include <String.h>
|
||||
#include <Locker.h>
|
||||
#include <ObjectList.h>
|
||||
#include <String.h>
|
||||
|
||||
|
||||
class BWindow;
|
||||
|
||||
|
||||
namespace BPrivate {
|
||||
|
||||
|
||||
// NOTE: DecorInfo itself is not thread-safe
|
||||
@@ -78,7 +81,7 @@ private:
|
||||
};
|
||||
|
||||
|
||||
class DecorInfoUtility{
|
||||
class DecorInfoUtility {
|
||||
public:
|
||||
DecorInfoUtility(bool scanNow = true);
|
||||
// NOTE: When scanNow is passed false,
|
||||
@@ -108,9 +111,9 @@ public:
|
||||
DecorInfo* CurrentDecorator();
|
||||
DecorInfo* DefaultDecorator();
|
||||
|
||||
bool IsCurrentDecorator(DecorInfo*);
|
||||
bool IsCurrentDecorator(DecorInfo* decor);
|
||||
|
||||
status_t SetDecorator(DecorInfo*);
|
||||
status_t SetDecorator(DecorInfo* decor);
|
||||
status_t SetDecorator(int32);
|
||||
|
||||
status_t Preview(DecorInfo* decor, BWindow* window);
|
||||
@@ -119,11 +122,17 @@ private:
|
||||
DecorInfo* _FindDecor(const BString& path);
|
||||
|
||||
private:
|
||||
BObjectList<DecorInfo> fList;
|
||||
BLocker fLock;
|
||||
bool fHasScanned;
|
||||
|
||||
BObjectList<DecorInfo> fList;
|
||||
BLocker fLock;
|
||||
bool fHasScanned;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
} // namespace BPrivate
|
||||
|
||||
|
||||
using BPrivate::DecorInfo;
|
||||
using BPrivate::DecorInfoUtility;
|
||||
|
||||
|
||||
#endif // DECOR_INFO_H
|
||||
|
||||
Reference in New Issue
Block a user