David Capello
4c8c7463ed
Move functions related to quantization and dithering algorithms to raster/quantization.h|cpp.
2010-12-26 10:57:03 -03:00
David Capello
47a265745c
Fix Quantize command call (sprite was locked).
2010-12-12 12:11:44 -03:00
David Capello
d4caa65cae
Use gfx::Rgb and gfx::Hsv classes for HSV <-> RGB conversions.
...
+ Removed rgb_to_hsv_int() and hsv_to_rgb_int() functions.
+ Changed HSV ranges from [0,255] to H=[0,360], S=[0,100], V=[0,100].
+ Simplified Color class (src/app/color.h) using a m_type and m_value union.
2010-12-08 11:35:08 -03:00
David Capello
551efd4313
Convert jslider to Slider class.
...
+ Changed JI_SIGNAL_SLIDER_CHANGE to Slider::Change signal.
2010-12-04 16:13:21 -03:00
David Capello
7fab4cd42f
Improve RGB and HSV modifications when a range of colors is selected in the palette.
2010-12-01 23:53:27 -03:00
David Capello
ac36822222
Add undo support for palette changes.
...
+ Added Undo::undo_set_palette_colors() method.
2010-12-01 23:41:20 -03:00
David Capello
ffd0f17879
Move all undo_*() functions as members of Undo class.
2010-09-30 23:55:35 -03:00
David Capello
109d6a072f
Remove jstring class replacing it with the new base::string and new functions to manipulate strings.
2010-09-30 15:34:12 -03:00
David Capello
cb3dd70fb8
Move Jinete library to src/gui directory (future gui-lib).
2010-09-26 15:59:32 -03:00
David Capello
cd6b8d3d23
Move Signal/Slot/Bind stuff to base-lib.
2010-09-25 17:20:59 -03:00
David Capello
28d09af036
Move Point/Size/Rect classes to a new gfx-lib.
2010-09-25 16:22:32 -03:00
David Capello
3ec3bbbef8
Refactor undo_clear_redo/set_label/get_next_*_label -> Undo::clearRedo/etc.
2010-09-19 17:44:06 -03:00
David Capello
12ce788d11
Remove undo_new/free/enable/disable/is_enabled/is_disabled, add Undo::is/setEnabled.
2010-09-19 15:23:15 -03:00
David Capello
46e847ef80
Remove internationalization stuff.
...
- Remove "_" macro.
- Remove src/intl/ directory.
2010-09-18 23:54:56 -03:00
David Capello
3f9e947ea9
Convert color_t type to Color class.
...
+ Add color_utils namespace and move useful routines for colors right there.
+ Add test_color.cpp.
2010-08-25 00:26:37 -03:00
David Capello
8727390b2d
Rename colbar.h to color_bar.h.
2010-08-23 18:11:47 -03:00
David Capello
7d47093acc
Convert jbutton widget to ButtonBase, Button, CheckBox, and RadioButton C++ classes.
...
+ Add ButtonBase::Click signal.
+ Button does not close the window by default (you have to configure this action manually when Click signal is triggered).
+ Add "closewindow" attribute to <button> widget in XML files.
+ Move "bevels" to SkinProperty.
+ Convert colorbutton widget in ColorButton C++ class.
2010-08-23 17:41:19 -03:00
David Capello
7ba3c5df9d
Fix warnings in GCC (unused variables, size_t and int comparisons, unhandled enum cases in switch, etc.).
2010-08-11 23:42:03 -03:00
David Capello
4e72997a02
Use Allegro's ASSERT() instead of assert().
2010-08-03 23:33:44 -03:00
David Capello
01c811e726
Add PreferredSizeEvent and Widget::onPreferredSize to replace JM_REQSIZE message.
...
There are a lot of widgets in C code, so JM_REQSIZE cannot be removed until all widgets are converted to C++ classes.
2010-08-02 22:57:41 -03:00
David Capello
4b2f341af1
Refactored Command class to contain extensions points (virtual methods) as protected members (except clone() method).
...
+ Renamed Command::load_params -> onLoadParams
+ Renamed Command::enabled -> onEnabled
+ Renamed Command::checked -> onChecked
+ Renamed Command::execute -> onExecute
+ Added public (non-virtual methods) Command::execute/loadParams/isChecked/isEnabled.
2010-07-31 12:23:45 -03:00
David Capello
c4ab208e4b
Replaced jwidget_show/hide/is_visible/is_hidden functions with Widget::isVisible/setVisible methods.
2010-07-04 12:03:14 -03:00
David Capello
2b5058f66c
Modified "on_color_changed" slot (in palette editor) to avoid using invalid colors.
2010-06-21 22:17:05 -03:00
David Capello
7d659f1017
Sort command will not be available in the beta version.
2010-06-17 02:28:37 -03:00
David Capello
1de1a263f1
Added undo information to sort command (it is WIP, is not working properly).
2010-06-17 02:17:42 -03:00
David Capello
df03782e0a
Now Palette:sort() generates a mapping table.
2010-06-17 02:16:43 -03:00
David Capello
636b188283
Added possibility to sort a range of palette entries.
2010-06-17 00:34:39 -03:00
David Capello
924fc09a66
Added HSL_Lightness and YUV_Luma palette sort criteria.
2010-06-17 00:21:57 -03:00
David Capello
265896ac07
Now the "More Options" visible status is saved in configuration file.
2010-06-15 19:46:39 -03:00
David Capello
6fb63f71b0
Modified logic to selected the default sort criteria in palette editor.
2010-06-15 19:45:57 -03:00
David Capello
ec30837631
Added Palette:sort() and SortPalette class.
...
Implemented "Sort" command in palette editor.
2010-06-14 22:53:30 -03:00
David Capello
91174456cd
Added the missing palette commands: ramp, quantize, load, and save.
2010-06-13 20:04:38 -03:00
David Capello
9a550e2301
Added "More Options" panel in palette editor.
2010-06-13 19:35:40 -03:00
David Capello
493bbbd20c
Fixed size of palette editor boxes for jguiscale() > 1.
2010-06-13 18:06:11 -03:00
David Capello
162e3efd97
Modified default bounds of "palette editor" window.
2010-04-25 14:40:40 -03:00
David Capello
a76473bf9d
Fixed problem picking non-indexed colors.
2010-04-23 19:13:55 -03:00
David Capello
210c127477
Removed unused local variable "imgtype".
2010-04-23 19:13:43 -03:00
David Capello
8ecc957fb2
Fixed a bug in update_sliders_from_color().
2010-04-11 17:42:18 -03:00
David Capello
bb69d63883
Fixed palette_editor_change_hook() to update entry widgets.
2010-04-11 17:42:01 -03:00
David Capello
10781dcf5f
Removed Context::getFg/BgColor member functions.
...
Modified color_get_*() so they do not need "imgtype" parameter.
ColorBar class is public (defined in colbar.h).
Added ColorBar::Fg/BgColorChange signals.
Converted palette editor widget to a C++ class (PalEdit derived from Widget).
Modified the "Palette Editor" (F4 key) to be non-modal (still WIP).
2010-04-10 17:01:56 -03:00
David Capello
c5442abcba
Moved data/jids/*.jid files to data/widgets/*.xml.
2010-04-06 22:14:33 -03:00
David Capello
475d0eeb1b
Refactored Sprite class: no public variable members, all functions sprite_* go as Sprite function members, pimpl idiom.
2010-03-30 21:43:18 -03:00
David Capello
ee878c87e9
Modified Palette class to contain all functions to manipulate it as function members.
...
Modified its implementation to use std::vector<> instead of a raw C array[].
Now the number of colors in the sprite is more relevant (e.g. we should be able to create sprites of 4bpp, 16 colors).
2010-03-28 12:15:32 -03:00
David Capello
b747ccdaa6
Updated copyright year to 2010
2010-02-01 21:25:40 +00:00
David Capello
96759c9c17
Converted all TRUE/FALSE to C++ true/false
2010-01-30 16:43:13 +00:00
David Capello
77c009de55
Renamed jwidget to Widget.
...
Refactored jwidget_set_text to Widget::setText (same for setFont, setEnabled, etc.).
Created "Frame" class.
Refactored "jwindow_funcname" functions to "Frame::funcname".
Renamed JWidgetPtr to FramePtr.
2010-01-26 00:38:05 +00:00
David Capello
33ca3cf8e0
Added support to load png files through Allegro library (now you can save/load palettes in PNG files)
2009-11-19 00:34:07 +00:00
David Capello
5455136f35
Internal refactoring of commands to support record/play macros in the near future.
2009-10-09 01:34:06 +00:00
David Capello
b0c56578ca
Moved modules/sprites.cpp to effect/images_ref.cpp
2009-08-17 23:45:55 +00:00
David Capello
05803abaa1
Fixed a lot of VC++8 warnings with /W3 flag.
2009-08-17 18:00:38 +00:00