David Capello
1e3e4a7bc7
Now SkinneableTheme::draw_bounds*() member functions
...
receive destination BITMAP. With this we eliminated all
hacks of the ji_screen <-> double-buffer switching style.
2010-04-23 22:36:40 -03:00
David Capello
917127ce37
Added alpha support for skin sheet.
2010-04-23 21:56:59 -03:00
David Capello
967d0fef39
Fixed problem with Ctrl+mouse wheel over the color-bar (reported by Ilija).
...
Renamed ColorBar::m_colorsPerColum to m_colorsPerColumn.
2010-04-23 21:49:50 -03:00
David Capello
ed792eba1e
Added getRgbMap() methods to Sprite class.
...
Added Palette* parameter to image_to_allegro() function and Image::to_allegro().
Removed orig_rgb_map.
Removed rgb_map usage (the Allegro global variable).
2010-04-20 23:44:31 -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
5ea607d801
More delay for Editor::flashCurrentLayer().
2010-04-06 09:03:53 -03:00
David Capello
27c895732d
Clicking fg/bg colors open the palette editor.
2010-04-01 00:09:25 -03:00
David Capello
6383d36f25
Fixed a bug in JM_DRAW handler of colorviewer_msg_proc() function. It was introduced in a recent commit.
2010-04-01 00:08:59 -03:00
David Capello
dceb182070
Added vsync to flashCurrentLayer.
2010-03-30 23:49:36 -03:00
David Capello
8720d156e5
Added Editor::flashCurrentLayer() for when the current layer is changed.
2010-03-30 23:40:01 -03:00
David Capello
ebe068b211
StatusBar::showTip now show the text in the same status-bar too (redrawing it).
2010-03-30 23:38:52 -03:00
David Capello
dd6da141c6
Buttons in the status bar now give us the possibility to change the current layer.
2010-03-30 22:46:43 -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
a7ecb08f2c
Fixed some GCC warnings and errors.
2010-03-30 09:48:19 -03:00
David Capello
911c2dca8f
The state-bar shows the name of the current layer when there is just one layer.
2010-03-29 00:12:07 -03:00
David Capello
749488d794
Fixed a couple of compiler warnings.
2010-03-29 00:00:39 -03:00
David Capello
bea59d7280
Status bar widget converted to C++ StatusBar class.
2010-03-29 00:00:25 -03:00
David Capello
0119922613
Removed the big-layer button from the state-bar.
2010-03-28 23:18:26 -03:00
David Capello
7974bffb80
Fixed bugs when the current tool was used in an hidden/locked layer.
2010-03-28 17:29:13 -03:00
David Capello
2d5e2dc7d7
Modified state-bar to show the stack of layers.
...
Removed the sprite & undo size indicators (completely useless).
2010-03-28 17:28:38 -03:00
David Capello
145a78ac09
Fixed minor problem with color-bar and JM_REQSIZE message.
2010-03-28 16:48:34 -03:00
David Capello
129d5a9b13
Mouse wheel+shift in color-bar jumps entire columns.
2010-03-28 13:11:31 -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
61c1e08be1
Added RecentFiles C++ class to replace legacy C implementation of recent files.
2010-03-27 23:43:08 -03:00
David Capello
d7f6b78119
Removed tooltip window and refresh_timer stuff in new color-bar.
2010-03-27 19:43:04 -03:00
David Capello
62d0c1db1d
New simplified color-bar (still WIP).
2010-03-27 19:41:39 -03:00
David Capello
b9d0e846b2
Hand tool now really scrolls.
2010-03-27 19:15:00 -03:00
David Capello
d093439109
Minor change: C++ comment style.
2010-03-27 18:53:58 -03:00
David Capello
c3ef673421
Minor modification to comments.
2010-03-27 17:26:02 -03:00
David Capello
9a58b21b08
Now draw_emptyset_symbol() uses a Vaca::Rect instead of JRect.
2010-03-27 17:03:25 -03:00
David Capello
8ff997d2d2
Fixed a lot of important bugs in clipping code.
2010-03-26 09:57:56 -03:00
David Capello
4f40d89c6f
Added mini-look to tabs buttons.
2010-03-24 22:08:22 -03:00
David Capello
f95a67f8fc
Converted color bar widget to ColorBar class.
2010-03-24 20:06:54 -03:00
David Capello
7d240c861f
Fixed bug 'preview cursor is not visible in indexed images when fg-color is 0' adding Image::mask_color field.
2010-03-24 19:15:23 -03:00
David Capello
975049bdea
Removed _index_cmap. It was used to remap colors of the current palette (useful in 8 bpp modes).
2010-03-24 18:21:20 -03:00
David Capello
1fe1e2ff7b
Removed real-time dithering option (because 8 bpp is not supported anymore).
2010-03-24 18:06:28 -03:00
David Capello
4ccb661bbf
Minilook for group of buttons (groupbut and buttons in "target" selector).
2010-03-24 17:49:46 -03:00
David Capello
a336900115
When the mouse leaves the color-bar the status bar is cleared.
2010-03-24 17:40:58 -03:00
David Capello
685f4cf191
Now PreviewFilled configuration field is for tool.
2010-03-24 13:57:31 -03:00
David Capello
5ea8d97b60
Added tooltips to toolbar.
2010-03-24 13:38:28 -03:00
David Capello
38d2c8da68
Minor modifications to state bar JM_DRAW message handler.
2010-03-21 23:47:43 -03:00
David Capello
952a2aac4d
Fixed buttons in toolbar for jguiscale > 1.
2010-03-21 23:29:41 -03:00
David Capello
3f1cad8505
Added setup_mini_look() function.
2010-03-21 23:18:30 -03:00
David Capello
4486ccdd29
Modified state-bar borders to match Ilija's mockup.
2010-03-21 21:31:13 -03:00
David Capello
ac8c1ecdc1
Now buttons and sliders in the state-bar have mini-look.
2010-03-21 21:30:50 -03:00
David Capello
104d315f25
Applied guiscale to tabs widget.
2010-03-20 12:55:25 -03:00
David Capello
345dbb6fec
State-bar is double-buffered now.
2010-03-20 12:29:15 -03:00
David Capello
2658aae644
Applied jguiscale to status bar borders.
2010-03-18 21:28:55 -03:00
David Capello
c4bd51d569
Applied jguiscale to color bar.
2010-03-13 00:21:14 -02:00
David Capello
11fda53fe3
Added Editor::editor_move_cursor to avoid drawing cursor preview flickering.
2010-03-13 00:14:32 -02:00
David Capello
6cad6849b5
Removed jpoint.h and jsize.h.
2010-03-11 00:45:19 -02:00
David Capello
719374718d
More jguiscale() usage.
2010-03-09 00:42:31 -02:00
David Capello
9535b085fe
Removed guiscale() from ASE and added jguiscale() in Jinete.
...
With this change we can apply jguiscale() in some places like jalert and jfiles.
2010-03-08 00:42:41 -02:00
David Capello
0a7136a0b4
Added underline_height in jdraw_text() function.
...
Removed jdraw_widget_text() (deprecated).
2010-03-07 23:16:20 -02:00
David Capello
cb97884026
- All tools stuff refactored in various files/components.
...
- Added classes: IToolLoop, Tool, ToolGroup, ToolInk, ToolController, ToolPointShape, ToolIntertwine, ToolBox, etc.
- Added ToolLoopManager.
- Removed old src/modules/tools.cpp.
- Added ISettings and UISettingsImpl, adding the tools settings (onion skinning, grid, tiled mode, etc.).
- Added App::PenSizeBeforeChange, PenSizeAfterChange, CurrentToolChange signals.
- Renamed Context::get_bg/fg_color to getBg/FgColor.
- Refactored Brush class to Pen and added PenType.
- Renamed tiled_t to TiledMode.
- get_config_rect now uses the new Rect class imported from Vaca instead of old jrect.
- Added default_skin.xml to load tool icons.
- Added pen preview in Editor::cursor stuff.
- Added Editor::decorators.
Note: This big patch is from some time ago. I did my best to pre-commit other small changes before this big one.
2010-03-07 17:47:45 -02:00
David Capello
36f281a2b7
Limited scroll movement (related to feature request #2874441 ).
2010-03-07 11:39:18 -02:00
David Capello
fb139ccf49
Renamed Editor::editor_get_sprite to Editor::getSprite.
2010-03-01 00:00:56 -02:00
David Capello
d8a7fbf0f0
Moved functions from util/render.h into RenderEngine class.
2010-02-28 23:29:50 -02: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
6e93dfe4ea
Converted editor widget in a C++ class (Editor class derived from Widget).
2010-01-27 02:52:30 +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
017ece697f
Now XML files are loaded with tinyxml library
2009-12-16 23:24:57 +00:00
David Capello
11a094cb05
Moved app.cpp from src/core/ to src/
2009-12-11 14:53:05 +00:00
David Capello
b585600a19
Fixed a couple of bugs:
...
+ in tabs_remove_tab selected/hot tabs are set to NULL.
+ the select_callback is called only for the hot tab (if hot is NULL, now the selected is not used anymore).
2009-11-22 14:14:06 +00:00
David Capello
3626589229
Fixed little details in tabs gfxs.
2009-11-22 02:16:29 +00:00
David Capello
9e0928ca66
Fixed combo-box graphics.
2009-11-22 00:26:58 +00:00
David Capello
5d64181f16
Added SkinneableTheme class. Thanks to Ilija Melentijevic for the graphics.
2009-11-21 20:02:31 +00:00
David Capello
6d04c3815c
Now jtheme is a class with member functions; and jwidget has a virtual msg_proc.
2009-11-19 02:59:20 +00:00
David Capello
8f1eac61a9
Now color-bar shows FG/BG indicators (Ilija Melentijevic idea).
2009-11-18 14:47:30 +00:00
David Capello
cbc0bf22bd
Refactored Layer class to include all layer_* functions as member functions.
2009-11-17 13:12:26 +00:00
David Capello
9e5d0dc2f2
Renamed file cmd_eyedropper_tool.cpp to cmd_eyedropper.cpp
2009-10-09 02:36:30 +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
e484553608
Renamed some header guards.
2009-08-17 21:38:00 +00:00
David Capello
3dbb7c088b
Moved console.* from src/console to src/
2009-08-17 19:32:09 +00:00
David Capello
05803abaa1
Fixed a lot of VC++8 warnings with /W3 flag.
2009-08-17 18:00:38 +00:00
David Capello
1c541651ce
+ Added a progress bar in the file-selector to show the progress of thumbnail generation.
...
+ Fixed a program crash in file-selector dialog when you open a file and the thumbnail is being generated.
2009-08-10 02:36:06 +00:00
David Capello
8b8f13edf9
+ Added support to paste/copy text from/to Windows clipboard.
...
+ Added support to process Ctrl+C / Ctrl+V / Ctrl+P keys in all entry fields.
+ Fixed a bug where file names for new sprites are lower-case always (in Windows).
2009-08-09 21:24:32 +00:00
David Capello
c384b6c19b
Fixed problems using the "argument" parameter in commands.
2009-07-27 03:03:19 +00:00
David Capello
5b543a995b
Added memory leak detection for MSVC.
2009-07-12 20:29:16 +00:00
David Capello
f8f45dc0e5
+ Added Flip Canvas Horizontal/Vertical commands.
...
+ Fixed problems with keyboard shortcuts for commands with arguments.
2009-07-10 02:08:41 +00:00
David Capello
3885f37f45
+ CurrentSprite class was split in SpriteWrapper/Reader/Writer, and CurrentSpriteReader/Writer wrappers.
...
+ More routines are using exceptions for error handling.
+ Added JWidgetPtr class.
+ Added Undoable::set_imgtype/layer_from_background/flatten_layers.
2009-06-11 15:11:11 +00:00
David Capello
b4a0d2f7d7
Added CurrentSpriteRgbMap class.
2009-06-11 00:33:29 +00:00
David Capello
c4be9fe5b4
Added Context and UIContext classes.
...
Added CurrentSprite class.
Removed current_sprite global.
Moved all functions of 'sprites' module to Context/UIContext.
2009-06-01 02:59:15 +00:00
David Capello
6f9bccd65b
Changed jwidget to a C++ class with methods.
2009-05-30 21:22:52 +00:00
David Capello
0adb37f2bb
Fixed a bug with multiple editors, paste command, and cleaning the editor's cursor.
2009-03-02 01:22:52 +00:00
David Capello
09578c2f23
Fixed some compilation errors in gcc 64 bits (reported by Scott Wilson).
2009-02-21 19:57:57 +00:00
David Capello
8e498470d5
Fixed bug #2511762 (thanks to Clayton Enga for the patch).
...
Added the feature #2419098 (David Campo idea).
2009-01-24 00:41:01 +00:00
David Capello
77b06bf748
Added support to close tabs with middle button.
2008-10-16 02:19:00 +00:00
David Capello
f43bbec69d
Better handling of special file-names in the file-name entry field of ase_file_selector.
2008-10-16 01:55:12 +00:00
David Capello
6562d7071a
Now the file-system core routines use jstring (std::string) instead of char*.
...
Overloaded new and delete when MEMLEAK is activated (to use jmalloc and
jfree so memory leaks can be detected).
2008-10-13 21:43:41 +00:00
David Capello
c35c452a80
Converted GfxObj and all the hierarchy of graphics objects to classes.
...
Removed "(void)" -> "()".
2008-10-01 01:27:51 +00:00
David Capello
a587132ffe
Project converted to C++.
2008-09-30 21:01:54 +00:00
David Capello
78f879fa14
Renamed some files and removed deprecated files.
...
Fixed a bug in fileview with i-search.
2008-09-30 01:25:11 +00:00
David Capello
bcc221ab59
Fixed a bug in FlattenLayers.
...
Fixed a bug when paste outside the sprite.
Fixed a bug in color-bar when drop colors in nowhere.
Fixed some compilation errors in MSVC.
2008-09-29 23:58:07 +00:00
David Capello
4026754881
Added support to lock lines in special angles with Shift key (feature request #1961397 ).
...
Fixed 'Curve' tool when click with the right mouse button (added
'editor_click_continue' routine for this).
2008-09-29 01:55:24 +00:00
David Capello
8911db458a
Added the 'Curve' tool.
2008-09-28 20:53:42 +00:00
David Capello
d181b9f215
Completelly removed the scripting support and lua files.
...
Updated the forum address.
2008-09-27 23:24:27 +00:00