Commit Graph

1313 Commits

Author SHA1 Message Date
David Capello
55aca8567c Move src/gui/ to src/ui/ 2012-06-17 22:49:58 -03:00
David Capello
14dd4e7ae2 Add GUI library stuff into "ui" namespace (now ui-lib). 2012-06-17 22:02:54 -03:00
David Capello
6f91238264 Add support to load/save GIMP palettes (.gpl files). Issue #112. 2012-06-16 17:50:52 -03:00
David Capello
3835af7ff0 Fix bug with Export Sprite Sheet when the cel is bigger than the sprite's size. 2012-06-16 13:40:13 -03:00
David Capello
57d5748cfe Remove deprecated types (jstream, MessageFunc, JDrawFunc). 2012-06-16 00:51:25 -03:00
David Capello
4afe591c54 Fix TooltipManager: we cannot handle filtered message with the normal Widget::onProcessMessage() handler.
If we use the Widget::onProcessMessage() handler for filtered messages,
key-pressed messages would be handled by the Manager before the
focused widget.
2012-06-16 00:48:29 -03:00
David Capello
42bb192a24 Remove commented code from combobox.cpp. 2012-06-16 00:08:05 -03:00
David Capello
8c13c32ac0 The combobox button isn't a focus stop. 2012-06-16 00:06:54 -03:00
David Capello
a74b9d89a0 Remove JWidget type (replaced with Widget*). 2012-06-16 00:05:01 -03:00
David Capello
fa0bf031e2 Add support to load <textbox> widgets from .xml files. 2012-06-16 00:03:27 -03:00
David Capello
02e8c66da4 Remove signals and hooks in GUI code.
Several refactoring tasks where made:
- Removed the old Widget::id field (JID).
- Renamed Widget::get/setName to get/setId.
- Moved load_widget_from_xmlfile() to app::load_widget and WidgetLoader
  class.
- Removed jhook structure & jwidget_add_hook function. Hooks were replaced
  subclassing widgets.
- Added InitThemeEvent class and Widget::onInitTheme member function.
2012-06-15 23:37:59 -03:00
David Capello
b599f0f85a Fix regression bug introduced in 0.9.2: ENTER/TAB/ESC keys didn't work in ListBox widget. 2012-06-15 22:34:50 -03:00
David Capello
805a0333d7 Fix a problem not showing the "modified" state in tabs correctly after the first DrawingState. 2012-06-15 21:55:32 -03:00
David Capello
3bbf7af991 Rename layer_new_flatten_copy() to create_flatten_layer_copy() and moved to src/flatten.cpp file. 2012-06-08 21:34:53 -03:00
David Capello
5e94f9193c Fix issue #100 - hue is lost when saturation or value is set to 0.
This was fixed only when one entry is selected in the color-bar.
When several entries are selected, as only the modified component
(hue/saturation/value) is set in all selected entries, and the
behaviour specified in the issue can be reproduced.
2012-05-19 18:41:24 -03:00
David Capello
a45253c43e Add OVERRIDE modifier in ColorSliders subclasses. 2012-05-19 18:38:12 -03:00
David Capello
468d9965b9 Improve HexColorEntry so we can paste hex colors with # symbol (like CSS colors #ff0000). 2012-05-19 18:18:56 -03:00
David Capello
ccb4f11cc3 Add file_unittest.cpp with a basic test to load/save .ase file. 2012-05-19 16:22:55 -03:00
David Capello
6c780db89b Minor and non-important changes in read_compressed_image in ase_format.cpp. 2012-05-19 16:22:18 -03:00
David Capello
338a665cb2 Add the possibility to create bigger images (to the limit of WORD size which is the .ase format limit). 2012-05-19 16:18:20 -03:00
David Capello
608a139449 Fix issue #106 - Trim is not working for certain images.
Two pixels with alpha=0 should be treated as the same color (even when
they RGB values are different).
2012-05-19 15:52:55 -03:00
David Capello
fddb323fdd Merge remote-tracking branch 'origin/master' 2012-05-13 15:43:17 -03:00
David Capello
370cf07414 Fix issue #102 - Error loading file (.ase file).
Z_BUF_ERROR (-5) can be returned by inflate() and deflate() in some cases.
2012-05-12 23:35:20 -03:00
David Capello
26f637b839 Add support to call verbose_printf() without an initialized App::instance(). 2012-05-12 23:26:37 -03:00
David Capello
78d3b80df3 Add ScopedAllegro class. 2012-05-12 23:25:36 -03:00
David Capello
5963bb96d9 Fix test.h with the new gui::Manager class. 2012-05-12 23:24:06 -03:00
David Capello
37fd3c1d98 Define SEE_MASK_DEFAULT if it is undefined in launcher.cpp. 2012-05-03 21:31:55 -03:00
David Capello
569451fa01 Include gui/intern.h in files that use _ji_theme_textbox_draw. 2012-05-03 21:24:05 -03:00
David Capello
9bd25d2f57 Improve error handling in ase_file_read_cel_chunk() to continue reading the whole file when an invalid zlib chunk is found.
Related to issue #102.
2012-05-03 00:52:39 -03:00
David Capello
9b4621be31 Add FileHandle to avoid manual FILE handle management. 2012-05-03 00:32:40 -03:00
David Capello
97154d5fbc Avoid opened FILE handlers after exceptions in AseFormat member funtions. 2012-05-03 00:09:31 -03:00
David Capello
ade6b0d333 Fix a bug trying to select a color index < 0 when there is no color selected in the palette view. 2012-05-02 23:09:56 -03:00
David Capello
b30d28e920 Use Palette::MaxColors instead of 256. 2012-05-02 23:09:34 -03:00
David Capello
27103a231f Convert group_button widget to ButtonSet class.
- Removed radio_button_new() function.
2012-04-19 20:33:57 -03:00
David Capello
616ec40656 Remove JI_SIGNAL_ENTRY_CHANGE signal. 2012-04-18 22:57:36 -03:00
David Capello
d07cd55245 Remove unused signals. 2012-04-15 16:08:15 -03:00
David Capello
48f0a88d66 Remove jwidget_free() function. 2012-04-15 16:04:03 -03:00
David Capello
44856735be Fix problem using Alt+mnemonic when the focus is inside a Entry widget. 2012-04-15 15:56:47 -03:00
David Capello
8a1295c025 Replace jwidget_check_underscored with Widget::isScancodeMnemonic(). 2012-04-15 15:43:07 -03:00
David Capello
f2f6ba9fca Move jclipboard functions to gui::clipboard namespace. 2012-04-15 15:24:26 -03:00
David Capello
7d0bed8341 Refactor jmanager to gui::Manager class. 2012-04-15 15:21:24 -03:00
David Capello
94ea65ff4d Fix problem compiling base/thread.cpp in Mac OS X. 2012-04-07 19:30:46 -03:00
David Capello
1f787e0dcb Replace jmanager_*timer functions with a Timer class. 2012-04-07 13:12:01 -03:00
David Capello
777e276632 Refactor: Change jseparator widget to Separator class. 2012-04-05 23:34:42 -03:00
David Capello
38b5e35351 Refactor: jtextbox widget to TextBox class. 2012-04-05 23:28:05 -03:00
David Capello
f6f6225b1a Minor changes in box.cpp and image_view.cpp 2012-04-05 23:21:31 -03:00
David Capello
46bc974d3b Refactor: Convert jlistbox and jlistitem to ListBox and ListBox::Item classes. 2012-04-05 23:19:32 -03:00
David Capello
aa0555e662 Rename panel widget to Splitter class. 2012-04-05 19:39:09 -03:00
David Capello
f8f52f75fa Refactor: replace jwidget_magnetic/expansive/decorative/focusrest with member functions of Widget class. 2012-04-05 19:00:19 -03:00
David Capello
55a4002ec5 Add posibility to scroll by-tiles using Ctrl+arrow keys (Paul Pridham idea).
+ Added ScrollCommand.
2012-04-04 00:49:13 -03:00