Cleanups, mostly to make diffing it against the original file from Tracker
more easy. It's not so nice that this code is replicated, there could be refactoring to get a base-class which is used by both Tracker and Backgrounds and the Tracker version extends it for the caching, while the Background preflet extends it in other ways. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -70,7 +70,7 @@ class BackgroundImage {
|
|||||||
// view and how.
|
// view and how.
|
||||||
// Unlike other windows, the Desktop window can have different backgrounds
|
// Unlike other windows, the Desktop window can have different backgrounds
|
||||||
// for each workspace
|
// for each workspace
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum Mode {
|
enum Mode {
|
||||||
kAtOffset,
|
kAtOffset,
|
||||||
@@ -121,7 +121,6 @@ class BackgroundImage {
|
|||||||
// change to the next imageSet if any, no refresh*/
|
// change to the next imageSet if any, no refresh*/
|
||||||
BackgroundImageInfo *ImageInfoForWorkspace(int32) const;
|
BackgroundImageInfo *ImageInfoForWorkspace(int32) const;
|
||||||
|
|
||||||
// return fIsDesktop
|
|
||||||
bool IsDesktop() { return fIsDesktop;}
|
bool IsDesktop() { return fIsDesktop;}
|
||||||
|
|
||||||
status_t SetBackgroundImage(BNode *node);
|
status_t SetBackgroundImage(BNode *node);
|
||||||
@@ -134,7 +133,7 @@ class BackgroundImage {
|
|||||||
void Remove(BackgroundImageInfo *);
|
void Remove(BackgroundImageInfo *);
|
||||||
void RemoveAll();
|
void RemoveAll();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BackgroundImage(const BNode *node, bool isDesktop, BackgroundsView* view);
|
BackgroundImage(const BNode *node, bool isDesktop, BackgroundsView* view);
|
||||||
// no public constructor, GetBackgroundImage factory function is
|
// no public constructor, GetBackgroundImage factory function is
|
||||||
// used instead
|
// used instead
|
||||||
@@ -156,7 +155,7 @@ class BackgroundImage {
|
|||||||
|
|
||||||
class Image {
|
class Image {
|
||||||
// element for each image
|
// element for each image
|
||||||
public:
|
public:
|
||||||
Image(BPath path);
|
Image(BPath path);
|
||||||
~Image();
|
~Image();
|
||||||
|
|
||||||
@@ -164,7 +163,7 @@ class Image {
|
|||||||
const char* GetName() {return name.String();}
|
const char* GetName() {return name.String();}
|
||||||
BBitmap* GetBitmap();
|
BBitmap* GetBitmap();
|
||||||
BPath GetPath() {return fPath;}
|
BPath GetPath() {return fPath;}
|
||||||
private:
|
private:
|
||||||
BBitmap *fBitmap;
|
BBitmap *fBitmap;
|
||||||
BPath fPath;
|
BPath fPath;
|
||||||
BString name;
|
BString name;
|
||||||
|
|||||||
Reference in New Issue
Block a user