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.
|
||||
// Unlike other windows, the Desktop window can have different backgrounds
|
||||
// for each workspace
|
||||
public:
|
||||
public:
|
||||
|
||||
enum Mode {
|
||||
kAtOffset,
|
||||
@@ -121,7 +121,6 @@ class BackgroundImage {
|
||||
// change to the next imageSet if any, no refresh*/
|
||||
BackgroundImageInfo *ImageInfoForWorkspace(int32) const;
|
||||
|
||||
// return fIsDesktop
|
||||
bool IsDesktop() { return fIsDesktop;}
|
||||
|
||||
status_t SetBackgroundImage(BNode *node);
|
||||
@@ -134,7 +133,7 @@ class BackgroundImage {
|
||||
void Remove(BackgroundImageInfo *);
|
||||
void RemoveAll();
|
||||
|
||||
private:
|
||||
private:
|
||||
BackgroundImage(const BNode *node, bool isDesktop, BackgroundsView* view);
|
||||
// no public constructor, GetBackgroundImage factory function is
|
||||
// used instead
|
||||
@@ -156,7 +155,7 @@ class BackgroundImage {
|
||||
|
||||
class Image {
|
||||
// element for each image
|
||||
public:
|
||||
public:
|
||||
Image(BPath path);
|
||||
~Image();
|
||||
|
||||
@@ -164,7 +163,7 @@ class Image {
|
||||
const char* GetName() {return name.String();}
|
||||
BBitmap* GetBitmap();
|
||||
BPath GetPath() {return fPath;}
|
||||
private:
|
||||
private:
|
||||
BBitmap *fBitmap;
|
||||
BPath fPath;
|
||||
BString name;
|
||||
|
||||
Reference in New Issue
Block a user