Addition of feature to specify individual color for each note

Asked by Brahm Prakash Mishra on 2016-05-15

I want to write a functionality to specify an individual color for each note. This helps categorizing things such as To-Do lists, Scribbled notes to self, organized points while studying something, or a note for weblinks to be browsed later.

Could someone with experience point me to how I can go about this? I have downloaded the source from launchpad, but I am a little lost as to how I can start with this. Any pointers would be helpful.

Thanks in advance.

Question information

Language:
English Edit question
Status:
Answered
For:
Xpad Edit question
Assignee:
No assignee Edit question
Last query:
2016-05-15
Last reply:
2016-05-15

Hi Brahm,

Thanks for your interest in will to improve Xpad.

For the last couple of years, I have been maintaining Xpad, so I know Xpad a bit.
Although I cannot explain Xpad all the way, I can give you some pointers of possible ways to solve this.

Xpad is GTK application written in the programming language C, which means it uses the GTK framework for drawing items, communicating, taking care of many things, so we don't have to write or maintain the code for it.

My guess is that you can use GTK color picker / color selector. To see what out-of-the-box functionalities you have in GTK, I use the reference manual: https://developer.gnome.org/gtk3/stable

An example is the GTK color chooser: https://developer.gnome.org/gtk3/stable/GtkColorChooser.html

To start building Xpad do this:

- download source code
- extract into new folder
- run the following commands
* ./autogen.sh
* ./configure (= more or less a verification utility if you are not missing anything)
* ./make (= compile)
* ./make install (this is optional, if you want to install on your Linux system)
* ./src/xpad (to actually run xpad)

If it runs, make the changes to the source code and run the commands again to see the result.
If it fails, try to google why it fails. Often you need programs (like a C compiler) and the dependencies like Glib, GTK, etc.

In the past I have drawn a 'xpad design' picture, just to understand the relationships a bit better. I am not sure if it is still up to date, but it might give you a good idea of how things are related.

https://drive.google.com/file/d/0Bymxsci1WxB1Mzc3VlBabjI2RHM/view?usp=sharing

Is this what you were looking for, to get started?

Cheers,
Arthur Borsboom.

Can you help with this problem?

Provide an answer of your own, or ask Brahm Prakash Mishra for more information if necessary.

To post a message you must log in.