[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Skecth book tagging for krita
From:       =?UTF-8?B?4LC24LGN4LCw4LGAIOCwleCwvuCwguCwpOCxjSDgsKTgsL/gsK/gsY3gsK/gsJfgsYLgsL
Date:       2011-08-15 16:20:28
Message-ID: CA+n4BBX5XZD7cdS11fx+eRxZSdVEeycJj4Q8+RxHqoX1h173tg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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>(
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

[Attachment #5 (text/html)]

<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>-&gt;  Whenever a new workspace resource is saved, we will call a \
function saveDockerStatus() of canvas class.<br>

          <br>    The saveDockerStatus() will emit a  signal \
&quot;sigSaveDockerStatus&quot; . on the emission of the signal \
&quot;sigSaveDockerStatus&quot;, 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>-&gt; The recieved QHashobject is stored in the XML file. <br><br><b>Restoring \
the Workspace resource:</b><br><br>-&gt; 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&amp;a=commit&amp;h=580364e3764fcee31c07dee44465168c1b380ecf" \
target="_blank">commit link</a> (<a \
href="http://quickgit.kde.org/?p=calligra.git&amp;a=commit&amp;h=580364e3764fcee31c07dee44465168c1b380ecf" \
target="_blank">http://quickgit.kde.org/?p=calligra.git&amp;a=commit&amp;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>



_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic