~israeldahl/jwm-settings-manager/trunk

« back to all changes in this revision

Viewing changes to include/flDesktop.h

  • Committer: Israel Dahl
  • Date: 2014-07-06 02:48:28 UTC
  • Revision ID: israeldahl@gmail.com-20140706024828-1bt17riyy2ep06bt
actually added the themes, buttons, etc...
* Alpha Version update
 * Desktop
 - Added Rox checkers, and getters and setters, but haven't finished/enabled it
 - Finished gradient support
 - finished Single color support
 - moved the image setting code to flDesktop(h/cpp)
 * Window
 - fixed Window icon code to reliably open the directory containing icons
 - added 'BoxShaped' window buttons

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
public:
36
36
 
37
37
    //Multi Desktop
38
 
    void useMultiDesktop(bool &multiValue, int &height, int &width);
39
 
    int getMultiDeskWidth();
40
 
    int getMultiDeskHeight();
41
 
    bool multipleDesktops();
42
 
    void setMultiDeskWidth(double width);
43
 
    void setMultiDeskHeight(double height);
44
 
 
45
 
    const char * getBackground();
46
 
    unsigned int getBackground(unsigned int &color2);
47
 
 
 
38
    void useMultiDesktop(bool &multiValue, int &height, int &width); //use more than one desktop?
 
39
    int getMultiDeskWidth(); //how many wide
 
40
    int getMultiDeskHeight(); //how many tall
 
41
    bool multipleDesktops(); //finds out if there are mulitple desktops
 
42
    void setMultiDeskWidth(double width); //how many wide
 
43
    void setMultiDeskHeight(double height);  //how many tall
 
44
 
 
45
    const char * getBackground();// , const char * rgb, const char* rgb2) //Get JWM background
 
46
    /*If it is an image/command the rgb variables will be ignored.
 
47
     * if it is solid/gradient color the return value should be ignored in the UI
 
48
     */
 
49
    unsigned int getBackground(unsigned int &color2);  //get color background either single or gradient
 
50
    /*the variable the function is assigned to gets the first color, or a single color, and color2 is the second color.
 
51
     * if only one color is needed make the variable for color2 and don't use it.  This way both situations are automatically handled
 
52
     * ///TODO: fix this! make an overloaded function so each can be handled separately.
 
53
     */
 
54
 
 
55
    void setFlImage(Fl_Box * o, const char * filename);
48
56
    void setBackground(const double* rgb);
49
 
    void setBackground(const char* type, const char* value);
 
57
    void setBackground(const double* rgb, const double* rgb2);
 
58
    void setBackground(const char* type, const char* value);  //set background image, a tiled image or command.  type = image value = filename(or command)
 
59
 
 
60
    //ROX
 
61
    void useRox(bool rox);
 
62
    bool roxActive();
 
63
    void setRoxBackground(const char* type, const char* value);
 
64
    int loadRox(); /* this loads the Pinboard File... if it does not exist it should create it.*/
 
65
    const char * getRoxBackground();
 
66
    void saveRox();
 
67
    std::string roxPath();
50
68
 
51
69
    bool test(tinyxml2::XMLElement *element);
52
70
    //constructors and destructor
54
72
    virtual ~flDesktop();
55
73
 
56
74
private:
57
 
    bool useRox;
 
75
    bool m_useRox;
 
76
    tinyxml2::XMLDocument roxDoc;
58
77
 
59
78
};
60
79