On 08/15/2012 12:15 AM, Alexander Semke wrote:
> Hi Iurie,
> have your made any progress on the export to latex? Do you need help?
> Best regards
I am sorry, but during my holiday I was unable to work on labplot. Now
I'll start to dig more in the labplot code because the first time I
tried to add menus, but that was not the right file because there is
more than one code for interface (for KDE oriented and that from
scidaivs, and something else if I am not wrong).
From: Alexander Semke <Alexander.S<emke@we...> - 2012-08-15 06:29:28
> I am sorry, but during my holiday I was unable to work on labplot.
Not a problem :-)
> I'll start to dig more in the labplot code because the first time I
> tried to add menus, but that was not the right file because there is
> more than one code for interface (for KDE oriented and that from
> scidaivs, and something else if I am not wrong).
The relevant code for you is in commonfrontend/SpreadsheetView. Forget for the
moment about the qtfrontend-directory. The SpreadsheetView is the view in the
GUI for the Spreadsheet-class, which is located in backend/spreadsheet. The
stuff in the backend is, as the name says, frontend independent. For the
frontends we have three directories - kdefrontend, qtfrontend and
commonfrontend. The fist one is actively depeloped now, the second stagnates
since a long time, the latter contains stuff that can be utilized in both
frontends and is under active development. So, for the current stage you only
have to look at kdefrontend and commonfrontend.
In SpreadsheetView.cpp the relevant functions are initActions() and
initMenus(). The actions itself needs to be defined in
spreadsheetview_kactions.h, which is included in SpreadsheetView.cpp.
We moved the trivial definition of QActions/KActions to an external file in
order not to obfuscate the actuall interesting code in SpreadsheetView.cpp.
We need to separate the definitions of QActions and KActions since we want to
use the stuff in commonfrontend in both frontends.
Please checkout the current code from svn-repo.
Happy hacking :-)