#include <spriteeditor.h>
Public Member Functions | |
| SpriteEditor () | |
| Constructor.  | |
| void | clear () | 
| Clear out previous sprite data.  | |
| void | set_sprite_data (const Sprite &spr) | 
| Set sprite data to use.   | |
| Sprite | get_sprite_data () const | 
| Get the working sprite.   | |
Private Member Functions | |
| void | construct () | 
| Build the window's UI.  | |
| void | update_progress_label () | 
| Update the progress label and other widgets.  | |
| void | on_save () | 
| Handler to save the current sprite.  | |
| void | on_export () | 
| Handler to export the current sprite.  | |
| void | on_close () | 
| Handler to close the window.  | |
| void | on_preview_animation () | 
| Handler to preview an animation.  | |
| void | on_loop_cb_toggled () | 
| Handler for loop check button toggles.  | |
| void | on_anim_cb_changed () | 
| Handler for combo box changes.  | |
| void | on_amend_button_clicked () | 
| Handler for amend button clicks.  | |
| void | on_new_animation_button_clicked () | 
| Handler for new animation button clicks.  | |
| void | on_delete_animation_button_clicked () | 
| Handler for delete animation button clicks.  | |
| void | on_add_frame_button_clicked () | 
| Handler for add frame button clicks.  | |
| void | on_delete_frame_button_clicked () | 
| Handler for delete frame button clicks.  | |
| void | on_prev_frame_button_clicked () | 
| Handler for previous frame button clicks.  | |
| void | on_next_frame_button_clicked () | 
| Handler for next frame button clicks.  | |
Private Attributes | |
| Gtk::Label * | m_AnimLabel | 
| Gtk::Label * | m_FrameLabel | 
| Gtk::Label * | m_TimeLabel | 
| Gtk::Label * | m_SfxLabel | 
| Gtk::CheckButton * | m_LoopCB | 
| Gtk::Entry * | m_TimeEntry | 
| Gtk::Entry * | m_SfxEntry | 
| Gtk::Image * | m_Image | 
| Gtk::Button * | m_SaveButton | 
| Gtk::Button * | m_ExportButton | 
| Gtk::Button * | m_CloseButton | 
| Gtk::Button * | m_PreviewButton | 
| Gtk::Button * | m_NewAnimButton | 
| Gtk::Button * | m_DeleteAnimButton | 
| Gtk::Button * | m_AddFrameButton | 
| Gtk::Button * | m_DeleteFrameButton | 
| Gtk::Button * | m_PrevFrameButton | 
| Gtk::Button * | m_NextFrameButton | 
| Gtk::Button * | m_AmendButton | 
| Gtk::ComboBoxText * | m_AnimCB | 
| Glib::ustring | m_SpritePath | 
| Current sprite path.  | |
| Sprite | m_Sprite | 
| The sprite we are editing.  | |
| int | m_CurFrame | 
| Current frame of animation.  | |
The actualy sprite can be edited using this window. It provides all of the basic frame handling, sound effect, and preview functionality.
| void SpriteEditor::set_sprite_data | ( | const Sprite & | spr | ) | 
Set sprite data to use.
| spr | The sprite to edit | 
| Sprite SpriteEditor::get_sprite_data | ( | ) |  const [inline] | 
        
Get the working sprite.
 1.5.3