<br><div class="gmail_quote">Hi all,<br><br>      Regarding to Sketch Book Tagging, I am writing this mail . . .  <br> ( 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. )<br>
<br>    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.  <br><br>  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 ).<br>

  <br>      In order to get the status of the docker and saved them to workspace resource, we did the following way<br><br><b>Saving the Workspace resource :</b><br><br>->  Whenever a new workspace resource is saved, we will call a function saveDockerStatus() of canvas class.<br>

          <br>    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.<br>

 <br>-> The recieved QHashobject is stored in the XML file. <br><br><b>Restoring the Workspace resource:</b><br><br>-> While loading the workspace resource, we will call a function restoreDockerStatus(QHash object) of canvas class<br>

<br>      restoreDockerStatus() will take the QhashObject from the 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.<br>

<br><br></span> With this way, we can store the type of workspace we like and restore them, when we want . . . <br><br>All this functionality is implemented and presently added to the preset docker only. this is the <a href="http://quickgit.kde.org/?p=calligra.git&a=commit&h=580364e3764fcee31c07dee44465168c1b380ecf" target="_blank">commit link</a> (<a href="http://quickgit.kde.org/?p=calligra.git&a=commit&h=580364e3764fcee31c07dee44465168c1b380ecf" target="_blank">http://quickgit.kde.org/?p=calligra.git&a=commit&h=580364e3764fcee31c07dee44465168c1b380ecf</a>)<br>

<br><br> Now, I need your suggestions whether it is working the same way ? Or any suggestios to improve it ?<br>        <br> If it is working in the correct, I will add this to all other dockers<br><font color="#888888"><br>
</font></div> <br>Regards<br>Srikanth Tiyyagura<br><br><br>