Conversation started Dec 13, 2012 at 10:53.
Dec 13, 2012 10:53
@jokerdino you seem to have several "widgets" - each should be a class in their own right - with the mechanig as the overarching class. e.g. compiz class with its signals, windows class etc - think of each "tab" as a class.
Dec 13, 2012 11:46
@fossfreedom that is the idea. i don't have any idea on how to do the splitting into each classes
Do you have just one big UI file - or lots of individual UI's ?
one big UI file
to cover all the tabs?
yep.
if you don't mind, you can find the glade file here github.com/jokerdino/mechanig/blob/jokerdesigns/mechanig.glade
Hey guys it is Docs Jam + Automated Testing Hacking Day today, join #ubuntu-doc and #ubuntu-quality to have fun!
Dec 13, 2012 11:49
let me look
0
Q: Java SWT App: Need 64-bit swt.jar

Nifty255I have a Java app that I want to run in Ubuntu, but I have Java 64 so I can't run it because it only has the 32-bit swt.jar. I can't build it myself, so Is there anyone that can provide the 64-bit swt.jar?

@jokerdino there seems to be lots of "notebook" UI elements - is this the tab interface part?
well, there are a couple of notebooks.
unity, compiz and theme settings have their own notebooks
so, they are notebooks inside a notebook
ok - there is where I would personally look at the split - each notebook should be an individual UI - and your classes would be naturally broken per UI
so, the glade file should be split? :/
Dec 13, 2012 11:55
yes - in the long run - it would make maintenance much easier - since you are focussing on individual areas.
hm
i would have tried that but how exactly do i embed a notebook inside another?
you would code that bit - gtk builder the ui and pack-start it on the notebook
well, instead of splitting up the gui, can i just split the code bit?
because i don't fancy messing with GUI again :/
I would have a singleton class that served the gui to each class. Each class then would grab the relevant object from the UI to play with.
that's sorta what is happening right now
i guess i would have to talk to Mahesh and ask him how to proceed then.
Dec 13, 2012 12:03
agreed - its fundamental - you need to discuss - IMHO - individual UIs would make your life much easier.
alright. i'll look into it. thanks much :)
btw, the new tabs would become dummy windows right?
yep - each tab (class) would be responsible for its own signals/widgets etc
got it
so, from what you suggest, it would work like gnome-control-center?
just like that - yep - one overarching window holding individual tabs that are separately coded - with just the common bits on the main class/window
you should have a py file for each UI element
then multiple people can make changes without upsetting/merging issues
i see.
Dec 13, 2012 12:12
I'm sorta doing something similar on my rhythmbox coverart-browser at the moment.
we had one big py holding the various elements.
splitting the UI's makes it much easier to collaborate and share code.
i will be consulting your code then :P
 
Conversation ended Dec 13, 2012 at 12:14.