@@ -25,6 +25,11 @@ typedef enum {
|
||||
LAST = GREY
|
||||
} ColorType_t;
|
||||
|
||||
class Geom_t {
|
||||
public:
|
||||
int x, y, width, height;
|
||||
};
|
||||
|
||||
class YellowNotes
|
||||
{
|
||||
private:
|
||||
@@ -34,12 +39,13 @@ private:
|
||||
void *_langs;
|
||||
|
||||
std::list<SettingContainer *> _settings_containers;
|
||||
|
||||
std::list<YellowNote *> _notes;
|
||||
int _font_size;
|
||||
GtkWindow *_toplevel;
|
||||
std::unordered_map<std::string, std::string> _cfg;
|
||||
|
||||
std::list<Geom_t> _monitors;
|
||||
|
||||
private:
|
||||
void loadConfig();
|
||||
void saveConfig();
|
||||
@@ -66,13 +72,16 @@ public:
|
||||
void notesToDesktop(void *sender);
|
||||
void notesFromDesktop(void *sender);
|
||||
void reloadNotes(void *sender);
|
||||
void monitorsChanged(void *sender);
|
||||
void quit(void *sender);
|
||||
void topLevelHidden(GtkWidget *sender);
|
||||
void setup(void *sender);
|
||||
void reOrder(void *sender);
|
||||
void setupClose(GtkWidget *sender);
|
||||
void setupCancel(GtkWidget *sender);
|
||||
bool setupDel(GtkWidget *sender, void *evt);
|
||||
void remove(YellowNote *n);
|
||||
void checkMonitors();
|
||||
|
||||
public:
|
||||
std::string currentLang();
|
||||
@@ -86,6 +95,7 @@ public:
|
||||
std::string fromRGBA(const GdkRGBA &rgba);
|
||||
void toRGBA(const std::string &col, GdkRGBA &rgba);
|
||||
void updateWidgetCss(GtkWidget *w, ColorType_t col);
|
||||
GtkWidget *getWindow();
|
||||
|
||||
public:
|
||||
YellowNotes(void *app);
|
||||
|
||||
Reference in New Issue
Block a user