cascardo/movie.git
15 years agomaking it possible to select a ball by clicking on it
Lincoln de Sousa [Tue, 12 Aug 2008 20:52:30 +0000 (17:52 -0300)]
making it possible to select a ball by clicking on it
in the image (added method: Gzv.select_fp_from_image, changed: Gzv.button_press

15 years agofixing issues when the image does not fill the whole allocated
Lincoln de Sousa [Tue, 12 Aug 2008 20:36:32 +0000 (17:36 -0300)]
fixing issues when the image does not fill the whole allocated
area. Added methods: Gzv.ball_with_border, Gzv.point_without_border.
Changed methods: Gzv.button_press, Gzv.draw_ball

15 years agofixing a little bug in Point.pythagorean
Lincoln de Sousa [Tue, 12 Aug 2008 18:45:39 +0000 (15:45 -0300)]
fixing a little bug in Point.pythagorean

15 years agoAdding the class Point, removing the attributes x and y from
Lincoln de Sousa [Tue, 12 Aug 2008 11:00:34 +0000 (08:00 -0300)]
Adding the class Point, removing the attributes x and y from
the Ball class and adding the p attr that is an instance of Point.
Updating BallManager.save_to_file, Gzv.draw_ball to fit with the above
change.

The feature "Move ball" was implemented and to do so, the event
motion-notify-event of the Gzv.treeview was binded to a new
callback (Gzv.ball_motion), Gzv.button_pressed now discovers if
the click was inside an already existent ball and were added
two new attributes to Gzv class: last_y and move_ball.

15 years agostoring the state of the creation of a new ball
Lincoln de Sousa [Tue, 12 Aug 2008 08:42:12 +0000 (05:42 -0300)]
storing the state of the creation of a new ball

15 years agoadding the attribute last_x to the Gzv.__init__ method and
Lincoln de Sousa [Tue, 12 Aug 2008 08:37:45 +0000 (05:37 -0300)]
adding the attribute last_x to the Gzv.__init__ method and
setting the POINTER_MOTION_MASK in the eventbox widget

15 years agoremoving the method Gzv.draw_current_ball and merging
Lincoln de Sousa [Tue, 12 Aug 2008 08:02:54 +0000 (05:02 -0300)]
removing the method Gzv.draw_current_ball and merging
its code in Gzv.expose_draw

15 years agoFixing the lack of a comparrision in NewProject.get_project
Lincoln de Sousa [Tue, 12 Aug 2008 07:43:35 +0000 (04:43 -0300)]
Fixing the lack of a comparrision in NewProject.get_project

15 years agoAdding the attribute button-press-event' in the main treeview to the
Lincoln de Sousa [Tue, 12 Aug 2008 07:41:45 +0000 (04:41 -0300)]
Adding the attribute button-press-event' in the main treeview to the
method Gzv.select_fp that gets the position of the selected ball and
set the selected attribute to the selected ball. Gzv.draw_ball: drawing
a border in the balls with the selected attribute set to True.
Gzv.load_project: Loading a pixbuf before creating the draw image.

15 years agochanging viewport name from viewport1 to viewport
Lincoln de Sousa [Tue, 12 Aug 2008 07:36:33 +0000 (04:36 -0300)]
changing viewport name from viewport1 to viewport

15 years agoReturning the self.draw.queque_draw in Gzv.remove_fp,
Lincoln de Sousa [Tue, 12 Aug 2008 05:53:35 +0000 (02:53 -0300)]
Returning the self.draw.queque_draw in Gzv.remove_fp,
the reall problem was the lack of reset in the coordinates
now they are being correctly reseted in Gzv.finish_drawing

15 years agoremoving an unuseful attribute (Gzv.selecting)
Lincoln de Sousa [Tue, 12 Aug 2008 05:47:41 +0000 (02:47 -0300)]
removing an unuseful attribute (Gzv.selecting)

15 years agoremoving the queue_draw in Gzv.remove_fp, it was making the
Lincoln de Sousa [Tue, 12 Aug 2008 05:42:50 +0000 (02:42 -0300)]
removing the queue_draw in Gzv.remove_fp, it was making the
expose function draw a wrong image

15 years agojust removing the gtk-image-missing...
Lincoln de Sousa [Tue, 12 Aug 2008 05:41:47 +0000 (02:41 -0300)]
just removing the gtk-image-missing...

15 years agoUsing a gtk image instead of a pixbuf, it is really faster.
Lincoln de Sousa [Tue, 12 Aug 2008 05:39:58 +0000 (02:39 -0300)]
Using a gtk image instead of a pixbuf, it is really faster.
The drawing area was replaced in glade file and in all references in
the python code. Some other little things were made to make it work properly

15 years agoMaking the "Save" feature works. Adding Gzv.save_project,
Lincoln de Sousa [Sun, 10 Aug 2008 15:45:02 +0000 (12:45 -0300)]
Making the "Save" feature works. Adding Gzv.save_project,
changing Project.save_to_file and setting callbacks in the
glade file

15 years agotreating the error generated when the user tries to use
Lincoln de Sousa [Sun, 10 Aug 2008 01:14:26 +0000 (22:14 -0300)]
treating the error generated when the user tries to use
a file which has an unknown format (commonly not an image)

15 years agofixing little bug when drawing more thant 2 balls and
Lincoln de Sousa [Sat, 9 Aug 2008 23:18:44 +0000 (20:18 -0300)]
fixing little bug when drawing more thant 2 balls and

15 years agoSaving balls added in the image and making it possible
Lincoln de Sousa [Sat, 9 Aug 2008 22:54:42 +0000 (19:54 -0300)]
Saving balls added in the image and making it possible
to edit its text after added

15 years agofixing a typo (radiOs) in many places,
Lincoln de Sousa [Sat, 9 Aug 2008 21:57:29 +0000 (18:57 -0300)]
fixing a typo (radiOs) in many places,
changing Gzv.finish_drawing, Gzv.setup_treeview,
Gzv.on_cell_edited and Gzv.remove_fp

15 years agoAdding some management functions to the focus point list:
Lincoln de Sousa [Sat, 9 Aug 2008 21:03:58 +0000 (18:03 -0300)]
Adding some management functions to the focus point list:
Added Gzv.remove_fp, Gzv.save_fp_list, changing Gzv.load_project,
Project.save_to_file. Setting two signals on glade (remove and save).

15 years agohidding the position column in the main treeview
Lincoln de Sousa [Sat, 9 Aug 2008 20:10:18 +0000 (17:10 -0300)]
hidding the position column in the main treeview

15 years agomaking the "New project" works
Lincoln de Sousa [Sat, 9 Aug 2008 20:04:11 +0000 (17:04 -0300)]
making the "New project" works

15 years agofixing the response-id of the ok button in the new-project dialog
Lincoln de Sousa [Sat, 9 Aug 2008 20:00:54 +0000 (17:00 -0300)]
fixing the response-id of the ok button in the new-project dialog

15 years agoImplementing the "Open Project" feature, adding
Lincoln de Sousa [Sat, 9 Aug 2008 19:51:44 +0000 (16:51 -0300)]
Implementing the "Open Project" feature, adding
Project.save_to_file, Project.parse_file, Gzv.load_project and changing Gzv.load_balls_from_file,
Gzv.open_project and Gzv.new_project

15 years agorenaming open_file_chooser to open_project and cleaning
Lincoln de Sousa [Sat, 9 Aug 2008 19:32:32 +0000 (16:32 -0300)]
renaming open_file_chooser to open_project and cleaning
some things in Gzv.__init__

15 years agogetting enough data to start a new project
Lincoln de Sousa [Sat, 9 Aug 2008 19:24:05 +0000 (16:24 -0300)]
getting enough data to start a new project

15 years agoadding callbacks to the toolbar and menubar buttons
Lincoln de Sousa [Sat, 9 Aug 2008 19:16:11 +0000 (16:16 -0300)]
adding callbacks to the toolbar and menubar buttons
and fixing parent and title parameter in Gzv.open_file_chooser.

15 years agofixing the space and size of labels and hboxes in new-project
Lincoln de Sousa [Sat, 9 Aug 2008 19:11:46 +0000 (16:11 -0300)]
fixing the space and size of labels and hboxes in new-project

15 years agoadding a pretty title, fixing some border widths and removing
Lincoln de Sousa [Sat, 9 Aug 2008 19:09:45 +0000 (16:09 -0300)]
adding a pretty title, fixing some border widths and removing
an unused placeholder in the main vbox of the new-project dialog

15 years agoSorry for delay to put it in a vcs, some hours ago this
Lincoln de Sousa [Sat, 9 Aug 2008 19:06:55 +0000 (16:06 -0300)]
Sorry for delay to put it in a vcs, some hours ago this
was not a project, but just a joke (taking a penalty card)