Many changes to setup colours, update window positions, put notes on desktop, etc.
Signed-off-by: Hans Dijkema <hans@dijkewijk.nl>
This commit is contained in:
@@ -10,6 +10,7 @@ extern "C" {
|
||||
}
|
||||
|
||||
class YellowNote;
|
||||
class ColorSet;
|
||||
|
||||
typedef enum {
|
||||
DARK = 0,
|
||||
@@ -32,6 +33,8 @@ private:
|
||||
void *_dlg;
|
||||
void *_langs;
|
||||
|
||||
std::list<ColorSet *> _color_sets;
|
||||
|
||||
std::list<YellowNote *> _notes;
|
||||
int _font_size;
|
||||
GtkWindow *_toplevel;
|
||||
@@ -58,6 +61,8 @@ public:
|
||||
void popupTrayMenu(void *sender);
|
||||
void newNote(void *sender);
|
||||
void showNotes(void *sender);
|
||||
void notesToDesktop(void *sender);
|
||||
void notesFromDesktop(void *sender);
|
||||
void reloadNotes(void *sender);
|
||||
void quit(void *sender);
|
||||
void topLevelHidden(GtkWidget *sender);
|
||||
@@ -70,10 +75,19 @@ public:
|
||||
public:
|
||||
std::string currentLang();
|
||||
void setCurrentLang(const std::string &l);
|
||||
bool cfgOnDesktop();
|
||||
void setCfgOnDesktop(bool y);
|
||||
std::string getFgColor(ColorType_t type);
|
||||
std::string getBgColor(ColorType_t type);
|
||||
void setFgColor(ColorType_t type, const std::string &col);
|
||||
void setBgColor(ColorType_t type, const std::string &col);
|
||||
std::string fromRGBA(const GdkRGBA &rgba);
|
||||
void toRGBA(const std::string &col, GdkRGBA &rgba);
|
||||
|
||||
public:
|
||||
YellowNotes(void *app);
|
||||
~YellowNotes();
|
||||
void colorSet(void *sender);
|
||||
};
|
||||
|
||||
#define YELLOWNOTES(obj) reinterpret_cast<YellowNotes *>(obj)
|
||||
|
||||
Reference in New Issue
Block a user