--===============7036261487235344101== Content-Type: multipart/alternative; boundary=20cf3079b77a5023a204aa8d7993 --20cf3079b77a5023a204aa8d7993 Content-Type: text/plain; charset=ISO-8859-1 Hi all, Regarding to Sketch Book Tagging, I am writing this mail . . . ( Sketchbook tagging is something like loading a profile, where all the tools and resources that belong to the profile tag is updated and set to have higher priority among resources. ) We already discussed about this in the previous mails and from them, what I get to know is that sketch book tagging is some thing like Master tag selector,which is integrated with the workspace system. And The work space is associated with a set of tags, and those tags are used as the default filter for all resources. But at present, a workspace resource is the one which contains the information of dockers, that are need to present in the main window. For creating a new workspace resource, we need to take the information (like visibilty, position ) of dockers. This information is given by the functions of the QMainwindow class. In the QMainwindow class, I cant find any functions which give docker status ( like type of resources present ). In order to get the status of the docker and saved them to workspace resource, we did the following way *Saving the Workspace resource :* -> Whenever a new workspace resource is saved, we will call a function saveDockerStatus() of canvas class. The saveDockerStatus() will emit a signal "sigSaveDockerStatus" . on the emission of the signal "sigSaveDockerStatus", all the dockers will send the data (like tags need to store and id of docker ) to the canvas class. This data from all the dockers are saved in QHash object. This QhashObject is send to workspace resource. -> The recieved QHashobject is stored in the XML file. *Restoring the Workspace resource:* -> While loading the workspace resource, we will call a function restoreDockerStatus(QHash object) of canvas class restoreDockerStatus() will take the QhashObject from the workspace file and store in the canvas class. Then, it emits the signal sigRestoreDockerStatus() . On emission of this signal, all the dockers will get the information using the dockerid from the QHashobject and show these changes in the docker. With this way, we can store the type of workspace we like and restore them, when we want . . . All this functionality is implemented and presently added to the preset docker only. this is the commit link( http://quickgit.kde.org/?p=calligra.git&a=commit&h=580364e3764fcee31c07dee44465168c1b380ecf ) Now, I need your suggestions whether it is working the same way ? Or any suggestios to improve it ? If it is working in the correct, I will add this to all other dockers Regards Srikanth Tiyyagura --20cf3079b77a5023a204aa8d7993 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,

=A0=A0=A0=A0=A0 Regarding to = Sketch Book Tagging, I am writing this mail . . .=A0
=A0( Sketchbook ta= gging is something like loading a profile, where all the=20 tools and resources that belong to the profile tag is updated and set to have higher priority among resources. )

=A0=A0=A0 We already discussed about this in the previous mails and fro= m them, what I get to know is that sketch book tagging is some thing like M= aster tag selector,which is integrated with the workspace system. And The w= ork space is associated with a set of tags, and those tags are used as the default filter for all=20 resources.=A0

=A0 But at present, a workspace resource is the one w= hich contains the information of dockers, that are need to present in the m= ain window. For creating a new workspace resource, we need to take the info= rmation (like visibilty, position ) of dockers. This information is given b= y the functions of the QMainwindow class. In the QMainwindow class, I cant = find any functions which give docker status ( like type of resources presen= t ).
=A0
=A0=A0=A0=A0=A0 In order to get the status of the docker and saved = them to workspace resource, we did the following way

Saving the W= orkspace resource :

->=A0 Whenever a new workspace resource i= s saved, we will call a function saveDockerStatus() of canvas class.
=A0=A0=A0=A0=A0=A0=A0=A0=A0
=A0=A0=A0 The saveDockerStatus() will emit = a=A0 signal "sigSaveDockerStatus" . on the emission of the signal= "sigSaveDockerStatus", all the dockers will send the data (like = tags need to store and id of docker ) to the canvas class. This data from a= ll the dockers are saved in QHash object. This QhashObject is send to works= pace resource.
=A0
-> The recieved QHashobject is stored in the XML file.

Restoring the Workspace resource:

-> While loading the works= pace resource, we will call a function restoreDockerStatus(QHash object) of= canvas class

=A0=A0=A0=A0=A0 restoreDockerStatus() will take the QhashObject from th= e workspace file and store in the canvas class. Then, it emits the signal <= span>sigRestoreDockerStatus() . On emission of this signal, all the dockers= will get the information using the dockerid from the QHashobject and show = these changes in the docker.


=A0With this way, we can store the type of workspace we like= and restore them, when we want . . .

All this functionality is imp= lemented and presently added to the preset docker only. this is the commit link (http://quickgit.kd= e.org/?p=3Dcalligra.git&a=3Dcommit&h=3D580364e3764fcee31c07dee44465= 168c1b380ecf)


=A0Now, I need your suggestions whether it is working the same way = ? Or any suggestios to improve it ?
=A0=A0=A0=A0=A0=A0=A0
=A0If it i= s working in the correct, I will add this to all other dockers

=A0
Regards
Srikanth Tiyyagura


--20cf3079b77a5023a204aa8d7993-- --===============7036261487235344101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop --===============7036261487235344101==--