Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
This is due to the way sketching is currently implemented, it's done via 
AnnotationWidget which has context recall and thus reloads the last drawings. 
To fix this, we need to move sketching to its own widget (SketchingWidget, 
derived from BaseDrawingWidget) and display this widget instead of 
AnnotationWidget when sketching is selected from the menu. This will require 
some UI refactoring for MainWindow so let's keep it like this for the moment.

Original comment by [email protected] on 23 Mar 2011 at 5:24

from watchntouch.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
r85, This problem has been fixed just fixing a little bug in the program. 
SketchingWidget will be the upcoming step after discussing its necessity.

Original comment by [email protected] on 30 Mar 2011 at 3:45

from watchntouch.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
SketchinWidget decided to be integrated to the system as it is required by SDD. 
Working on it.

Original comment by [email protected] on 31 Mar 2011 at 7:46

from watchntouch.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 26, 2024
r86, sketching component has been constructed. Some basic changes and logics 
applied is the following

1 - A new object named SketchingWidget.cpp is created. This a new class derived 
from BaseDrawingClass. 

2 - A new QWidget variable named groupForSketching is created. This is to group 
the objects of SketchingWidget and the Qlabel that holds the pixels of blank 
image or screeshot

3 - Old variable named group(AnnotationWidget object) 's name changed as 
"groupForPresentation".

4 - A new variable named "stackWidget" is introduced. This is a QStackedWidget 
object and keeps two widgets groupForPresentation and groupForSketching. As 
stack provide us having one of the widget is active at the same time, these 
widgets are used alternatively by the lines

widgetStack->setCurrentIndex(ANNOTATION_WIDGET);
widgetStack->setCurrentIndex(SKETCHING_WIDGET);

in the required places.

5 - Due to the state diagram attached to the note, there are two 
sketchingwidget component. One is to keep sketched data one is to keep 
screenshot data. Indeed, It is only for "open existing sketch" option. We have 
to keep sketching's drawing data seperate from the screenshot drawingdata in 
order not to destroy sketching's drawing data when we load a screenshot image. 

Note that only one sketchingwidget is visible at a time.

6 - mainwindow constructor, openNewSketch(), openExistingSketch() and 
openScreenshot() functions can be examined for the changes.









Original comment by [email protected] on 2 Apr 2011 at 10:45

Attachments:

from watchntouch.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.