Move src/core/ to src/

+ Renamed cfg.cpp to ini_file.cpp
This commit is contained in:
David Capello 2011-06-29 22:51:46 -03:00
parent c6e6d3fe95
commit 96d263f50e
46 changed files with 85 additions and 87 deletions

View File

@ -31,7 +31,6 @@ Refactoring
- Replace JRect & jrect with gfx::Rect.
- Create gfx::Region to replace JRegion & jregion.
- editors_ -> MultiEditors class widget
- rename core/cfg.h to cfg_file.h
- convert all widgets to classes:
+ match Jinete design with Vaca library.
+ move all functions (jwidget_*) to methods in Widget class.

View File

@ -82,11 +82,15 @@ add_library(aseprite-library
context_flags.cpp
document.cpp
documents.cpp
drop_files.cpp
file_system.cpp
gfxmode.cpp
gui_xml.cpp
ini_file.cpp
job.cpp
launcher.cpp
log.cpp
modules.cpp
objects_container_impl.cpp
recent_files.cpp
resource_finder.cpp
@ -177,10 +181,6 @@ add_library(aseprite-library
commands/filters/filter_target_buttons.cpp
commands/filters/filter_window.cpp
commands/filters/filter_worker.cpp
core/cfg.cpp
core/drop_files.cpp
core/file_system.cpp
core/modules.cpp
dialogs/aniedit.cpp
dialogs/drawtext.cpp
dialogs/filesel.cpp

View File

@ -27,16 +27,16 @@
#include "commands/commands.h"
#include "commands/params.h"
#include "console.h"
#include "core/cfg.h"
#include "core/drop_files.h"
#include "core/file_system.h"
#include "core/modules.h"
#include "drop_files.h"
#include "file/file.h"
#include "file/file_formats_manager.h"
#include "file_system.h"
#include "gui/gui.h"
#include "gui/intern.h"
#include "gui_xml.h"
#include "ini_file.h"
#include "log.h"
#include "modules.h"
#include "modules/editors.h"
#include "modules/gfx.h"
#include "modules/gui.h"

View File

@ -18,12 +18,13 @@
#include "config.h"
#include "check_args.h"
#include "base/convert_to.h"
#include "base/split_string.h"
#include "base/string.h"
#include "check_args.h"
#include "console.h"
#include "core/cfg.h"
#include "ini_file.h"
CheckArgs::CheckArgs(const std::vector<base::string>& args)
: m_consoleOnly(false)

View File

@ -20,9 +20,9 @@
#include "gui/gui.h"
#include "commands/command.h"
#include "app.h"
#include "core/cfg.h"
#include "commands/command.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "widgets/color_bar.h"
#include "widgets/statebar.h"

View File

@ -22,14 +22,14 @@
#include "gui/gui.h"
#include "ui_context.h"
#include "commands/command.h"
#include "app.h"
#include "core/cfg.h"
#include "commands/command.h"
#include "document_wrappers.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "raster/sprite.h"
#include "document_wrappers.h"
#include "ui_context.h"
//////////////////////////////////////////////////////////////////////
// duplicate_sprite

View File

@ -24,8 +24,8 @@
#include "base/unique_ptr.h"
#include "commands/command.h"
#include "console.h"
#include "core/cfg.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -26,7 +26,7 @@
#include "app.h"
#include "commands/command.h"
#include "context.h"
#include "core/cfg.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "raster/image.h"

View File

@ -26,7 +26,6 @@
#include "commands/command.h"
#include "commands/params.h"
#include "console.h"
#include "core/cfg.h"
#include "dialogs/filesel.h"
#include "document_wrappers.h"
#include "gfx/hsv.h"
@ -34,6 +33,7 @@
#include "gfx/size.h"
#include "gui/graphics.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -20,9 +20,9 @@
#include "base/bind.h"
#include "commands/command.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "job.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -25,14 +25,14 @@
#include "commands/filters/color_curve_editor.h"
#include "commands/filters/filter_manager_impl.h"
#include "commands/filters/filter_window.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "filters/color_curve.h"
#include "filters/color_curve_filter.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/mask.h"
#include "raster/sprite.h"
#include "document_wrappers.h"
#include "widgets/color_button.h"
static ColorCurve* the_curve = NULL;

View File

@ -26,7 +26,7 @@
#include "commands/filters/convolution_matrix_stock.h"
#include "commands/filters/filter_manager_impl.h"
#include "commands/filters/filter_window.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "filters/convolution_matrix.h"
#include "filters/convolution_matrix_filter.h"
#include "gui/button.h"
@ -37,10 +37,10 @@
#include "gui/slider.h"
#include "gui/view.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/mask.h"
#include "raster/sprite.h"
#include "document_wrappers.h"
static const char* ConfigSection = "ConvolutionMatrix";

View File

@ -24,18 +24,18 @@
#include "commands/command.h"
#include "commands/filters/filter_manager_impl.h"
#include "commands/filters/filter_window.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "filters/median_filter.h"
#include "gui/button.h"
#include "gui/entry.h"
#include "gui/frame.h"
#include "gui/grid.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/mask.h"
#include "raster/sprite.h"
#include "settings/settings.h"
#include "document_wrappers.h"
static const char* ConfigSection = "Despeckle";

View File

@ -23,18 +23,18 @@
#include "commands/command.h"
#include "commands/filters/filter_manager_impl.h"
#include "commands/filters/filter_window.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "filters/invert_color_filter.h"
#include "gui/button.h"
#include "gui/frame.h"
#include "gui/label.h"
#include "gui/slider.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/image.h"
#include "raster/mask.h"
#include "raster/sprite.h"
#include "document_wrappers.h"
#include "widgets/color_button.h"
static const char* ConfigSection = "InvertColor";

View File

@ -25,16 +25,16 @@
#include "app/color_utils.h"
#include "base/bind.h"
#include "commands/command.h"
#include "commands/filters/filter_window.h"
#include "commands/filters/filter_manager_impl.h"
#include "core/cfg.h"
#include "commands/filters/filter_window.h"
#include "document_wrappers.h"
#include "filters/replace_color_filter.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/image.h"
#include "raster/mask.h"
#include "raster/sprite.h"
#include "document_wrappers.h"
#include "widgets/color_bar.h"
#include "widgets/color_button.h"

View File

@ -20,13 +20,13 @@
#include "commands/filters/filter_manager_impl.h"
#include "core/cfg.h"
#include "filters/filter.h"
#include "gui/manager.h"
#include "gui/rect.h"
#include "gui/region.h"
#include "gui/view.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "raster/cel.h"
#include "raster/image.h"

View File

@ -23,7 +23,7 @@
#include "base/bind.h"
#include "commands/filters/filter_manager_impl.h"
#include "commands/filters/filter_worker.h"
#include "core/cfg.h"
#include "ini_file.h"
#include "modules/gui.h"
FilterWindow::FilterWindow(const char* title, const char* cfgSection,

View File

@ -26,8 +26,8 @@
#include "base/scoped_lock.h"
#include "base/thread.h"
#include "commands/filters/filter_manager_impl.h"
#include "core/cfg.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "raster/sprite.h"

View File

@ -23,10 +23,10 @@
#include "gui/gui.h"
#include "app.h"
#include "console.h"
#include "core/cfg.h"
#include "app/color.h"
#include "console.h"
#include "dialogs/filesel.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "modules/palettes.h"
#include "raster/blend.h"

View File

@ -33,9 +33,9 @@
#include "base/bind.h"
#include "base/path.h"
#include "base/split_string.h"
#include "core/cfg.h"
#include "file/file.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/gfx.h"
#include "modules/gui.h"
#include "recent_files.h"
@ -82,7 +82,7 @@ static void on_exit_delete_navigation_history()
* Shows the dialog to select a file in ASE.
*
* Mainly it uses:
* - the 'core/file_system' routines.
* - the 'file_system' routines.
* - the 'widgets/fileview' widget.
*/
base::string ase_file_selector(const base::string& message,

View File

@ -22,7 +22,6 @@
#include "app/color.h"
#include "app/color_utils.h"
#include "base/bind.h"
#include "core/cfg.h"
#include "document.h"
#include "document_wrappers.h"
#include "gui/box.h"
@ -32,6 +31,7 @@
#include "gui/label.h"
#include "gui/slider.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "raster/image.h"

View File

@ -24,8 +24,8 @@
#include "base/bind.h"
#include "gui/gui.h"
#include "core/cfg.h"
#include "dialogs/repo.h"
#include "ini_file.h"
#include "modules/gui.h"
static void fill_listbox(RepoDlg *repo_dlg);

View File

@ -55,7 +55,7 @@ void install_drop_files()
void uninstall_drop_files()
{
unsubclass_hwnd();
delete dropped_files_mutex;
dropped_files_mutex = NULL;

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CORE_DROP_FILES_H_INCLUDED
#define CORE_DROP_FILES_H_INCLUDED
#ifndef DROP_FILES_H_INCLUDED
#define DROP_FILES_H_INCLUDED
void install_drop_files();
void uninstall_drop_files();
@ -25,4 +25,3 @@ void uninstall_drop_files();
void check_for_dropped_files();
#endif

View File

@ -26,11 +26,11 @@
#include "base/compiler_specific.h"
#include "base/memory.h"
#include "console.h"
#include "core/cfg.h"
#include "file/file.h"
#include "file/file_format.h"
#include "file/format_options.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/raster.h"

View File

@ -19,11 +19,11 @@
#include "config.h"
#include "app.h"
#include "core/cfg.h"
#include "document.h"
#include "file/file.h"
#include "file/file_format.h"
#include "file/format_options.h"
#include "ini_file.h"
#include "raster/raster.h"
#include <stdio.h>

View File

@ -56,7 +56,7 @@
#endif
#include "base/path.h"
#include "core/file_system.h"
#include "file_system.h"
//////////////////////////////////////////////////////////////////////
@ -216,7 +216,7 @@ FileSystemModule::FileSystemModule()
PRINTF("File system module installed\n");
}
/**
* Shutdowns the file-system module.
*/
@ -321,7 +321,7 @@ IFileItem* FileSystemModule::getRootFileItem()
/**
* Returns the FileItem through the specified @a path.
*
*
* @warning You have to call path.fix_separators() before.
*/
IFileItem* FileSystemModule::getFileItemFromPath(const base::string& path)
@ -825,7 +825,7 @@ static LPITEMIDLIST get_next_pidl(LPITEMIDLIST pidl)
}
return NULL;
}
}
static LPITEMIDLIST get_last_pidl(LPITEMIDLIST pidl)
{

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CORE_FILE_SYSTEM_H_INCLUDED
#define CORE_FILE_SYSTEM_H_INCLUDED
#ifndef FILE_SYSTEM_H_INCLUDED
#define FILE_SYSTEM_H_INCLUDED
#include "base/string.h"
@ -69,4 +69,3 @@ public:
};
#endif

View File

@ -18,15 +18,15 @@
#include "config.h"
#include "ini_file.h"
#include "gui/rect.h"
#include "resource_finder.h"
#include <allegro/config.h>
#include <allegro/file.h>
#include <allegro/unicode.h>
#include "gui/rect.h"
#include "core/cfg.h"
#include "resource_finder.h"
using namespace gfx;
static char config_filename[512];

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CORE_CFG_H_INCLUDED
#define CORE_CFG_H_INCLUDED
#ifndef INI_FILE_H_INCLUDED
#define INI_FILE_H_INCLUDED
#include <allegro/config.h>
#include "gfx/rect.h"

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CORE_JOB_H_INCLUDED
#define CORE_JOB_H_INCLUDED
#ifndef JOB_H_INCLUDED
#define JOB_H_INCLUDED
#include "gui/alert.h"

View File

@ -18,7 +18,7 @@
#include "config.h"
#include "core/modules.h"
#include "modules.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -16,8 +16,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef CORE_MODULES_H_INCLUDED
#define CORE_MODULES_H_INCLUDED
#ifndef MODULES_H_INCLUDED
#define MODULES_H_INCLUDED
#include "gui/base.h"
@ -37,4 +37,3 @@ public:
};
#endif

View File

@ -21,9 +21,9 @@
#include "modules/editors.h"
#include "app.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "modules/palettes.h"
#include "raster/image.h"

View File

@ -29,9 +29,9 @@
#include "app.h"
#include "app/color_utils.h"
#include "console.h"
#include "core/cfg.h"
#include "gfx/point.h"
#include "gfx/rect.h"
#include "ini_file.h"
#include "modules/gfx.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -34,11 +34,12 @@
#include "commands/commands.h"
#include "commands/params.h"
#include "console.h"
#include "core/cfg.h"
#include "core/drop_files.h"
#include "drop_files.h"
#include "document_wrappers.h"
#include "gfxmode.h"
#include "gui/gui.h"
#include "gui/intern.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gfx.h"
#include "modules/gui.h"
@ -49,7 +50,6 @@
#include "skin/button_icon_impl.h"
#include "skin/skin_property.h"
#include "skin/skin_theme.h"
#include "document_wrappers.h"
#include "tools/tool_box.h"
#include "ui_context.h"
#include "widgets/editor/editor.h"

View File

@ -18,13 +18,14 @@
#include "config.h"
#include <cstdio>
#include <cstring>
#include <algorithm>
#include "recent_files.h"
#include "app.h"
#include "core/cfg.h"
#include "recent_files.h"
#include "ini_file.h"
#include <algorithm>
#include <cstdio>
#include <cstring>
RecentFiles::RecentFiles()
: m_limit(16)

View File

@ -21,7 +21,7 @@
#include "settings/ui_settings_impl.h"
#include "app.h"
#include "core/cfg.h"
#include "ini_file.h"
#include "tools/point_shape.h"
#include "tools/tool.h"
#include "tools/tool_box.h"

View File

@ -23,11 +23,11 @@
#include "app.h"
#include "app/color.h"
#include "core/cfg.h"
#include "gui/list.h"
#include "gui/manager.h"
#include "gui/system.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gui.h"
#include "modules/palettes.h"

View File

@ -21,9 +21,9 @@
#include "util/render.h"
#include "app/color_utils.h"
#include "core/cfg.h"
#include "document.h"
#include "gui/list.h"
#include "ini_file.h"
#include "raster/raster.h"
#include "settings/settings.h"
#include "ui_context.h"

View File

@ -25,9 +25,9 @@
#include "base/bind.h"
#include "commands/commands.h"
#include "commands/params.h"
#include "core/cfg.h"
#include "gui/list.h"
#include "gui/message.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "raster/image.h"
#include "skin/skin_theme.h"

View File

@ -20,12 +20,12 @@
#include <allegro/keyboard.h>
#include "core/cfg.h"
#include "gui/manager.h"
#include "gui/rect.h"
#include "gui/system.h"
#include "gui/view.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/gui.h"
#include "widgets/editor/editor.h"

View File

@ -22,13 +22,13 @@
#include "app/color.h"
#include "app/color_utils.h"
#include "base/memory.h"
#include "core/cfg.h"
#include "gui/base.h"
#include "gui/list.h"
#include "gui/rect.h"
#include "gui/region.h"
#include "gui/system.h"
#include "gui/widget.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "raster/image.h"
#include "raster/layer.h"

View File

@ -27,9 +27,9 @@
#include "app/color_utils.h"
#include "commands/commands.h"
#include "commands/params.h"
#include "core/cfg.h"
#include "document_wrappers.h"
#include "gui/gui.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "modules/gfx.h"
#include "modules/gui.h"

View File

@ -23,12 +23,12 @@
#include "app.h"
#include "commands/commands.h"
#include "commands/params.h"
#include "core/cfg.h"
#include "gfx/rect.h"
#include "gui/alert.h"
#include "gui/message.h"
#include "gui/system.h"
#include "gui/view.h"
#include "ini_file.h"
#include "modules/editors.h"
#include "raster/layer.h"
#include "raster/mask.h"

View File

@ -19,9 +19,9 @@
#ifndef WIDGETS_FILEVIEW_H_INCLUDED
#define WIDGETS_FILEVIEW_H_INCLUDED
#include "gui/base.h"
#include "base/string.h"
#include "core/file_system.h"
#include "file_system.h"
#include "gui/base.h"
/* TODO use some JI_SIGNAL_USER */
#define SIGNAL_FILEVIEW_FILE_SELECTED 0x10006