Comments (4)
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.
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.
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.
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)
- [deleted issue]
- Drawing system must be converted to raster HOT 7
- pdf must be rendered in a multi-threaded way HOT 10
- error in r57 HOT 3
- Refactoring of the input system to support multitouch gestures HOT 2
- Context Menu, multiple-choice button problem HOT 1
- Sketching component and screenshot HOT 6
- Screencasting capabilities HOT 2
- Simple collaborative drawing HOT 1
- Support for PPT viewing HOT 1
- Cursor should reflect current drawing tool
- Rectangle drawing HOT 1
- Triangle drawing HOT 1
- Video annotation HOT 4
- Webpage annotation HOT 3
- Null Pointer Exception HOT 1
- QML interface development and integration
- Recent items list not updated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from watchntouch.