wx/evtloopsrc.h \
wx/fdrepdlg.h \
wx/filectrl.h \
+ wx/filehistory.h \
wx/filepicker.h \
wx/fontpicker.h \
wx/fmappriv.h \
monodll_effects.o \
monodll_fddlgcmn.o \
monodll_filectrlcmn.o \
+ monodll_filehistorycmn.o \
monodll_filepickercmn.o \
monodll_fontpickercmn.o \
monodll_fldlgcmn.o \
monodll_effects.o \
monodll_fddlgcmn.o \
monodll_filectrlcmn.o \
+ monodll_filehistorycmn.o \
monodll_filepickercmn.o \
monodll_fontpickercmn.o \
monodll_fldlgcmn.o \
monolib_effects.o \
monolib_fddlgcmn.o \
monolib_filectrlcmn.o \
+ monolib_filehistorycmn.o \
monolib_filepickercmn.o \
monolib_fontpickercmn.o \
monolib_fldlgcmn.o \
monolib_effects.o \
monolib_fddlgcmn.o \
monolib_filectrlcmn.o \
+ monolib_filehistorycmn.o \
monolib_filepickercmn.o \
monolib_fontpickercmn.o \
monolib_fldlgcmn.o \
coredll_effects.o \
coredll_fddlgcmn.o \
coredll_filectrlcmn.o \
+ coredll_filehistorycmn.o \
coredll_filepickercmn.o \
coredll_fontpickercmn.o \
coredll_fldlgcmn.o \
coredll_effects.o \
coredll_fddlgcmn.o \
coredll_filectrlcmn.o \
+ coredll_filehistorycmn.o \
coredll_filepickercmn.o \
coredll_fontpickercmn.o \
coredll_fldlgcmn.o \
corelib_effects.o \
corelib_fddlgcmn.o \
corelib_filectrlcmn.o \
+ corelib_filehistorycmn.o \
corelib_filepickercmn.o \
corelib_fontpickercmn.o \
corelib_fldlgcmn.o \
corelib_effects.o \
corelib_fddlgcmn.o \
corelib_filectrlcmn.o \
+ corelib_filehistorycmn.o \
corelib_filepickercmn.o \
corelib_fontpickercmn.o \
corelib_fldlgcmn.o \
@COND_USE_GUI_1@monodll_filectrlcmn.o: $(srcdir)/src/common/filectrlcmn.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/filectrlcmn.cpp
+@COND_USE_GUI_1@monodll_filehistorycmn.o: $(srcdir)/src/common/filehistorycmn.cpp $(MONODLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/filehistorycmn.cpp
+
@COND_USE_GUI_1@monodll_filepickercmn.o: $(srcdir)/src/common/filepickercmn.cpp $(MONODLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONODLL_CXXFLAGS) $(srcdir)/src/common/filepickercmn.cpp
@COND_USE_GUI_1@monolib_filectrlcmn.o: $(srcdir)/src/common/filectrlcmn.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/filectrlcmn.cpp
+@COND_USE_GUI_1@monolib_filehistorycmn.o: $(srcdir)/src/common/filehistorycmn.cpp $(MONOLIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/filehistorycmn.cpp
+
@COND_USE_GUI_1@monolib_filepickercmn.o: $(srcdir)/src/common/filepickercmn.cpp $(MONOLIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(MONOLIB_CXXFLAGS) $(srcdir)/src/common/filepickercmn.cpp
@COND_USE_GUI_1@coredll_filectrlcmn.o: $(srcdir)/src/common/filectrlcmn.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/common/filectrlcmn.cpp
+@COND_USE_GUI_1@coredll_filehistorycmn.o: $(srcdir)/src/common/filehistorycmn.cpp $(COREDLL_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/common/filehistorycmn.cpp
+
@COND_USE_GUI_1@coredll_filepickercmn.o: $(srcdir)/src/common/filepickercmn.cpp $(COREDLL_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(COREDLL_CXXFLAGS) $(srcdir)/src/common/filepickercmn.cpp
@COND_USE_GUI_1@corelib_filectrlcmn.o: $(srcdir)/src/common/filectrlcmn.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/common/filectrlcmn.cpp
+@COND_USE_GUI_1@corelib_filehistorycmn.o: $(srcdir)/src/common/filehistorycmn.cpp $(CORELIB_ODEP)
+@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/common/filehistorycmn.cpp
+
@COND_USE_GUI_1@corelib_filepickercmn.o: $(srcdir)/src/common/filepickercmn.cpp $(CORELIB_ODEP)
@COND_USE_GUI_1@ $(CXXC) -c -o $@ $(CORELIB_CXXFLAGS) $(srcdir)/src/common/filepickercmn.cpp
-# generated automatically by aclocal 1.10 -*- Autoconf -*-
+# generated automatically by aclocal 1.10.3 -*- Autoconf -*-
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005, 2006 Free Software Foundation, Inc.
+# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
# This file is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
src/common/effects.cpp
src/common/fddlgcmn.cpp
src/common/filectrlcmn.cpp
+ src/common/filehistorycmn.cpp
src/common/filepickercmn.cpp
src/common/fontpickercmn.cpp
src/common/fldlgcmn.cpp
wx/evtloopsrc.h
wx/fdrepdlg.h
wx/filectrl.h
+ wx/filehistory.h
wx/filepicker.h
wx/fontpicker.h
wx/fmappriv.h
$(OBJS)\monodll_effects.obj \\r
$(OBJS)\monodll_fddlgcmn.obj \\r
$(OBJS)\monodll_filectrlcmn.obj \\r
+ $(OBJS)\monodll_filehistorycmn.obj \\r
$(OBJS)\monodll_filepickercmn.obj \\r
$(OBJS)\monodll_fontpickercmn.obj \\r
$(OBJS)\monodll_fldlgcmn.obj \\r
$(OBJS)\monodll_effects.obj \\r
$(OBJS)\monodll_fddlgcmn.obj \\r
$(OBJS)\monodll_filectrlcmn.obj \\r
+ $(OBJS)\monodll_filehistorycmn.obj \\r
$(OBJS)\monodll_filepickercmn.obj \\r
$(OBJS)\monodll_fontpickercmn.obj \\r
$(OBJS)\monodll_fldlgcmn.obj \\r
$(OBJS)\monolib_effects.obj \\r
$(OBJS)\monolib_fddlgcmn.obj \\r
$(OBJS)\monolib_filectrlcmn.obj \\r
+ $(OBJS)\monolib_filehistorycmn.obj \\r
$(OBJS)\monolib_filepickercmn.obj \\r
$(OBJS)\monolib_fontpickercmn.obj \\r
$(OBJS)\monolib_fldlgcmn.obj \\r
$(OBJS)\monolib_effects.obj \\r
$(OBJS)\monolib_fddlgcmn.obj \\r
$(OBJS)\monolib_filectrlcmn.obj \\r
+ $(OBJS)\monolib_filehistorycmn.obj \\r
$(OBJS)\monolib_filepickercmn.obj \\r
$(OBJS)\monolib_fontpickercmn.obj \\r
$(OBJS)\monolib_fldlgcmn.obj \\r
$(OBJS)\coredll_effects.obj \\r
$(OBJS)\coredll_fddlgcmn.obj \\r
$(OBJS)\coredll_filectrlcmn.obj \\r
+ $(OBJS)\coredll_filehistorycmn.obj \\r
$(OBJS)\coredll_filepickercmn.obj \\r
$(OBJS)\coredll_fontpickercmn.obj \\r
$(OBJS)\coredll_fldlgcmn.obj \\r
$(OBJS)\coredll_effects.obj \\r
$(OBJS)\coredll_fddlgcmn.obj \\r
$(OBJS)\coredll_filectrlcmn.obj \\r
+ $(OBJS)\coredll_filehistorycmn.obj \\r
$(OBJS)\coredll_filepickercmn.obj \\r
$(OBJS)\coredll_fontpickercmn.obj \\r
$(OBJS)\coredll_fldlgcmn.obj \\r
$(OBJS)\corelib_effects.obj \\r
$(OBJS)\corelib_fddlgcmn.obj \\r
$(OBJS)\corelib_filectrlcmn.obj \\r
+ $(OBJS)\corelib_filehistorycmn.obj \\r
$(OBJS)\corelib_filepickercmn.obj \\r
$(OBJS)\corelib_fontpickercmn.obj \\r
$(OBJS)\corelib_fldlgcmn.obj \\r
$(OBJS)\corelib_effects.obj \\r
$(OBJS)\corelib_fddlgcmn.obj \\r
$(OBJS)\corelib_filectrlcmn.obj \\r
+ $(OBJS)\corelib_filehistorycmn.obj \\r
$(OBJS)\corelib_filepickercmn.obj \\r
$(OBJS)\corelib_fontpickercmn.obj \\r
$(OBJS)\corelib_fldlgcmn.obj \\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monodll_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monodll_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monolib_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monolib_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\coredll_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\coredll_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\corelib_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\corelib_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) -q -c -P -o$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(OBJS)\monodll_effects.o \\r
$(OBJS)\monodll_fddlgcmn.o \\r
$(OBJS)\monodll_filectrlcmn.o \\r
+ $(OBJS)\monodll_filehistorycmn.o \\r
$(OBJS)\monodll_filepickercmn.o \\r
$(OBJS)\monodll_fontpickercmn.o \\r
$(OBJS)\monodll_fldlgcmn.o \\r
$(OBJS)\monodll_effects.o \\r
$(OBJS)\monodll_fddlgcmn.o \\r
$(OBJS)\monodll_filectrlcmn.o \\r
+ $(OBJS)\monodll_filehistorycmn.o \\r
$(OBJS)\monodll_filepickercmn.o \\r
$(OBJS)\monodll_fontpickercmn.o \\r
$(OBJS)\monodll_fldlgcmn.o \\r
$(OBJS)\monolib_effects.o \\r
$(OBJS)\monolib_fddlgcmn.o \\r
$(OBJS)\monolib_filectrlcmn.o \\r
+ $(OBJS)\monolib_filehistorycmn.o \\r
$(OBJS)\monolib_filepickercmn.o \\r
$(OBJS)\monolib_fontpickercmn.o \\r
$(OBJS)\monolib_fldlgcmn.o \\r
$(OBJS)\monolib_effects.o \\r
$(OBJS)\monolib_fddlgcmn.o \\r
$(OBJS)\monolib_filectrlcmn.o \\r
+ $(OBJS)\monolib_filehistorycmn.o \\r
$(OBJS)\monolib_filepickercmn.o \\r
$(OBJS)\monolib_fontpickercmn.o \\r
$(OBJS)\monolib_fldlgcmn.o \\r
$(OBJS)\coredll_effects.o \\r
$(OBJS)\coredll_fddlgcmn.o \\r
$(OBJS)\coredll_filectrlcmn.o \\r
+ $(OBJS)\coredll_filehistorycmn.o \\r
$(OBJS)\coredll_filepickercmn.o \\r
$(OBJS)\coredll_fontpickercmn.o \\r
$(OBJS)\coredll_fldlgcmn.o \\r
$(OBJS)\coredll_effects.o \\r
$(OBJS)\coredll_fddlgcmn.o \\r
$(OBJS)\coredll_filectrlcmn.o \\r
+ $(OBJS)\coredll_filehistorycmn.o \\r
$(OBJS)\coredll_filepickercmn.o \\r
$(OBJS)\coredll_fontpickercmn.o \\r
$(OBJS)\coredll_fldlgcmn.o \\r
$(OBJS)\corelib_effects.o \\r
$(OBJS)\corelib_fddlgcmn.o \\r
$(OBJS)\corelib_filectrlcmn.o \\r
+ $(OBJS)\corelib_filehistorycmn.o \\r
$(OBJS)\corelib_filepickercmn.o \\r
$(OBJS)\corelib_fontpickercmn.o \\r
$(OBJS)\corelib_fldlgcmn.o \\r
$(OBJS)\corelib_effects.o \\r
$(OBJS)\corelib_fddlgcmn.o \\r
$(OBJS)\corelib_filectrlcmn.o \\r
+ $(OBJS)\corelib_filehistorycmn.o \\r
$(OBJS)\corelib_filepickercmn.o \\r
$(OBJS)\corelib_fontpickercmn.o \\r
$(OBJS)\corelib_fldlgcmn.o \\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
+ifeq ($(USE_GUI),1)\r
+$(OBJS)\monodll_filehistorycmn.o: ../../src/common/filehistorycmn.cpp\r
+ $(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
+endif\r
+\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\monodll_filepickercmn.o: ../../src/common/filepickercmn.cpp\r
$(CXX) -c -o $@ $(MONODLL_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
+ifeq ($(USE_GUI),1)\r
+$(OBJS)\monolib_filehistorycmn.o: ../../src/common/filehistorycmn.cpp\r
+ $(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
+endif\r
+\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\monolib_filepickercmn.o: ../../src/common/filepickercmn.cpp\r
$(CXX) -c -o $@ $(MONOLIB_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
+ifeq ($(USE_GUI),1)\r
+$(OBJS)\coredll_filehistorycmn.o: ../../src/common/filehistorycmn.cpp\r
+ $(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
+endif\r
+\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\coredll_filepickercmn.o: ../../src/common/filepickercmn.cpp\r
$(CXX) -c -o $@ $(COREDLL_CXXFLAGS) $(CPPDEPS) $<\r
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
endif\r
\r
+ifeq ($(USE_GUI),1)\r
+$(OBJS)\corelib_filehistorycmn.o: ../../src/common/filehistorycmn.cpp\r
+ $(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
+endif\r
+\r
ifeq ($(USE_GUI),1)\r
$(OBJS)\corelib_filepickercmn.o: ../../src/common/filepickercmn.cpp\r
$(CXX) -c -o $@ $(CORELIB_CXXFLAGS) $(CPPDEPS) $<\r
$(OBJS)\monodll_effects.obj \\r
$(OBJS)\monodll_fddlgcmn.obj \\r
$(OBJS)\monodll_filectrlcmn.obj \\r
+ $(OBJS)\monodll_filehistorycmn.obj \\r
$(OBJS)\monodll_filepickercmn.obj \\r
$(OBJS)\monodll_fontpickercmn.obj \\r
$(OBJS)\monodll_fldlgcmn.obj \\r
$(OBJS)\monodll_effects.obj \\r
$(OBJS)\monodll_fddlgcmn.obj \\r
$(OBJS)\monodll_filectrlcmn.obj \\r
+ $(OBJS)\monodll_filehistorycmn.obj \\r
$(OBJS)\monodll_filepickercmn.obj \\r
$(OBJS)\monodll_fontpickercmn.obj \\r
$(OBJS)\monodll_fldlgcmn.obj \\r
$(OBJS)\monolib_effects.obj \\r
$(OBJS)\monolib_fddlgcmn.obj \\r
$(OBJS)\monolib_filectrlcmn.obj \\r
+ $(OBJS)\monolib_filehistorycmn.obj \\r
$(OBJS)\monolib_filepickercmn.obj \\r
$(OBJS)\monolib_fontpickercmn.obj \\r
$(OBJS)\monolib_fldlgcmn.obj \\r
$(OBJS)\monolib_effects.obj \\r
$(OBJS)\monolib_fddlgcmn.obj \\r
$(OBJS)\monolib_filectrlcmn.obj \\r
+ $(OBJS)\monolib_filehistorycmn.obj \\r
$(OBJS)\monolib_filepickercmn.obj \\r
$(OBJS)\monolib_fontpickercmn.obj \\r
$(OBJS)\monolib_fldlgcmn.obj \\r
$(OBJS)\coredll_effects.obj \\r
$(OBJS)\coredll_fddlgcmn.obj \\r
$(OBJS)\coredll_filectrlcmn.obj \\r
+ $(OBJS)\coredll_filehistorycmn.obj \\r
$(OBJS)\coredll_filepickercmn.obj \\r
$(OBJS)\coredll_fontpickercmn.obj \\r
$(OBJS)\coredll_fldlgcmn.obj \\r
$(OBJS)\coredll_effects.obj \\r
$(OBJS)\coredll_fddlgcmn.obj \\r
$(OBJS)\coredll_filectrlcmn.obj \\r
+ $(OBJS)\coredll_filehistorycmn.obj \\r
$(OBJS)\coredll_filepickercmn.obj \\r
$(OBJS)\coredll_fontpickercmn.obj \\r
$(OBJS)\coredll_fldlgcmn.obj \\r
$(OBJS)\corelib_effects.obj \\r
$(OBJS)\corelib_fddlgcmn.obj \\r
$(OBJS)\corelib_filectrlcmn.obj \\r
+ $(OBJS)\corelib_filehistorycmn.obj \\r
$(OBJS)\corelib_filepickercmn.obj \\r
$(OBJS)\corelib_fontpickercmn.obj \\r
$(OBJS)\corelib_fldlgcmn.obj \\r
$(OBJS)\corelib_effects.obj \\r
$(OBJS)\corelib_fddlgcmn.obj \\r
$(OBJS)\corelib_filectrlcmn.obj \\r
+ $(OBJS)\corelib_filehistorycmn.obj \\r
$(OBJS)\corelib_filepickercmn.obj \\r
$(OBJS)\corelib_fontpickercmn.obj \\r
$(OBJS)\corelib_fldlgcmn.obj \\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monodll_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monodll_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONODLL_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\monolib_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\monolib_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(MONOLIB_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\coredll_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\coredll_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(COREDLL_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filectrlcmn.cpp\r
!endif\r
\r
+!if "$(USE_GUI)" == "1"\r
+$(OBJS)\corelib_filehistorycmn.obj: ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filehistorycmn.cpp\r
+!endif\r
+\r
!if "$(USE_GUI)" == "1"\r
$(OBJS)\corelib_filepickercmn.obj: ..\..\src\common\filepickercmn.cpp\r
$(CXX) /c /nologo /TP /Fo$@ $(CORELIB_CXXFLAGS) ..\..\src\common\filepickercmn.cpp\r
$(OBJS)\monodll_effects.obj &\r
$(OBJS)\monodll_fddlgcmn.obj &\r
$(OBJS)\monodll_filectrlcmn.obj &\r
+ $(OBJS)\monodll_filehistorycmn.obj &\r
$(OBJS)\monodll_filepickercmn.obj &\r
$(OBJS)\monodll_fontpickercmn.obj &\r
$(OBJS)\monodll_fldlgcmn.obj &\r
$(OBJS)\monodll_effects.obj &\r
$(OBJS)\monodll_fddlgcmn.obj &\r
$(OBJS)\monodll_filectrlcmn.obj &\r
+ $(OBJS)\monodll_filehistorycmn.obj &\r
$(OBJS)\monodll_filepickercmn.obj &\r
$(OBJS)\monodll_fontpickercmn.obj &\r
$(OBJS)\monodll_fldlgcmn.obj &\r
$(OBJS)\monolib_effects.obj &\r
$(OBJS)\monolib_fddlgcmn.obj &\r
$(OBJS)\monolib_filectrlcmn.obj &\r
+ $(OBJS)\monolib_filehistorycmn.obj &\r
$(OBJS)\monolib_filepickercmn.obj &\r
$(OBJS)\monolib_fontpickercmn.obj &\r
$(OBJS)\monolib_fldlgcmn.obj &\r
$(OBJS)\monolib_effects.obj &\r
$(OBJS)\monolib_fddlgcmn.obj &\r
$(OBJS)\monolib_filectrlcmn.obj &\r
+ $(OBJS)\monolib_filehistorycmn.obj &\r
$(OBJS)\monolib_filepickercmn.obj &\r
$(OBJS)\monolib_fontpickercmn.obj &\r
$(OBJS)\monolib_fldlgcmn.obj &\r
$(OBJS)\coredll_effects.obj &\r
$(OBJS)\coredll_fddlgcmn.obj &\r
$(OBJS)\coredll_filectrlcmn.obj &\r
+ $(OBJS)\coredll_filehistorycmn.obj &\r
$(OBJS)\coredll_filepickercmn.obj &\r
$(OBJS)\coredll_fontpickercmn.obj &\r
$(OBJS)\coredll_fldlgcmn.obj &\r
$(OBJS)\coredll_effects.obj &\r
$(OBJS)\coredll_fddlgcmn.obj &\r
$(OBJS)\coredll_filectrlcmn.obj &\r
+ $(OBJS)\coredll_filehistorycmn.obj &\r
$(OBJS)\coredll_filepickercmn.obj &\r
$(OBJS)\coredll_fontpickercmn.obj &\r
$(OBJS)\coredll_fldlgcmn.obj &\r
$(OBJS)\corelib_effects.obj &\r
$(OBJS)\corelib_fddlgcmn.obj &\r
$(OBJS)\corelib_filectrlcmn.obj &\r
+ $(OBJS)\corelib_filehistorycmn.obj &\r
$(OBJS)\corelib_filepickercmn.obj &\r
$(OBJS)\corelib_fontpickercmn.obj &\r
$(OBJS)\corelib_fldlgcmn.obj &\r
$(OBJS)\corelib_effects.obj &\r
$(OBJS)\corelib_fddlgcmn.obj &\r
$(OBJS)\corelib_filectrlcmn.obj &\r
+ $(OBJS)\corelib_filehistorycmn.obj &\r
$(OBJS)\corelib_filepickercmn.obj &\r
$(OBJS)\corelib_fontpickercmn.obj &\r
$(OBJS)\corelib_fldlgcmn.obj &\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
!endif\r
\r
+!ifeq USE_GUI 1\r
+$(OBJS)\monodll_filehistorycmn.obj : .AUTODEPEND ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
+!endif\r
+\r
!ifeq USE_GUI 1\r
$(OBJS)\monodll_filepickercmn.obj : .AUTODEPEND ..\..\src\common\filepickercmn.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONODLL_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
!endif\r
\r
+!ifeq USE_GUI 1\r
+$(OBJS)\monolib_filehistorycmn.obj : .AUTODEPEND ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
+!endif\r
+\r
!ifeq USE_GUI 1\r
$(OBJS)\monolib_filepickercmn.obj : .AUTODEPEND ..\..\src\common\filepickercmn.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(MONOLIB_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
!endif\r
\r
+!ifeq USE_GUI 1\r
+$(OBJS)\coredll_filehistorycmn.obj : .AUTODEPEND ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
+!endif\r
+\r
!ifeq USE_GUI 1\r
$(OBJS)\coredll_filepickercmn.obj : .AUTODEPEND ..\..\src\common\filepickercmn.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(COREDLL_CXXFLAGS) $<\r
$(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
!endif\r
\r
+!ifeq USE_GUI 1\r
+$(OBJS)\corelib_filehistorycmn.obj : .AUTODEPEND ..\..\src\common\filehistorycmn.cpp\r
+ $(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
+!endif\r
+\r
!ifeq USE_GUI 1\r
$(OBJS)\corelib_filepickercmn.obj : .AUTODEPEND ..\..\src\common\filepickercmn.cpp\r
$(CXX) -bt=nt -zq -fo=$^@ $(CORELIB_CXXFLAGS) $<\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\src\common\filehistorycmn.cpp\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\src\common\filepickercmn.cpp\r
# End Source File\r
# Begin Source File\r
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\..\include\wx\filehistory.h\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\..\include\wx\filepicker.h\r
# End Source File\r
# Begin Source File\r
<File\r
RelativePath="..\..\src\common\filectrlcmn.cpp">\r
</File>\r
+ <File\r
+ RelativePath="..\..\src\common\filehistorycmn.cpp">\r
+ </File>\r
<File\r
RelativePath="..\..\src\common\filepickercmn.cpp">\r
</File>\r
<File\r
RelativePath="..\..\include\wx\filedlg.h">\r
</File>\r
+ <File\r
+ RelativePath="..\..\include\wx\filehistory.h">\r
+ </File>\r
<File\r
RelativePath="..\..\include\wx\filepicker.h">\r
</File>\r
RelativePath="..\..\src\common\filectrlcmn.cpp"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\src\common\filehistorycmn.cpp"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\src\common\filepickercmn.cpp"\r
>\r
RelativePath="..\..\include\wx\filedlg.h"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\include\wx\filehistory.h"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\include\wx\filepicker.h"\r
>\r
RelativePath="..\..\src\common\filectrlcmn.cpp"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\src\common\filehistorycmn.cpp"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\src\common\filepickercmn.cpp"\r
>\r
RelativePath="..\..\include\wx\filedlg.h"\r
>\r
</File>\r
+ <File\r
+ RelativePath="..\..\include\wx\filehistory.h"\r
+ >\r
+ </File>\r
<File\r
RelativePath="..\..\include\wx\filepicker.h"\r
>\r
--enable-exceptions build exception-safe library
--enable-ffile use wxFFile class
--enable-file use wxFile class
+ --enable-filehistory use wxFileHistory class
--enable-filesystem use virtual file systems classes
--enable-fontenum use wxFontEnumerator class
--enable-fontmap use font encodings conversion classes
echo "${ECHO_T}$result" >&6; }
+ enablestring=
+ defaultval=$wxUSE_ALL_FEATURES
+ if test -z "$defaultval"; then
+ if test x"$enablestring" = xdisable; then
+ defaultval=yes
+ else
+ defaultval=no
+ fi
+ fi
+
+ { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filehistory" >&5
+echo $ECHO_N "checking for --${enablestring:-enable}-filehistory... $ECHO_C" >&6; }
+ # Check whether --enable-filehistory was given.
+if test "${enable_filehistory+set}" = set; then
+ enableval=$enable_filehistory;
+ if test "$enableval" = yes; then
+ wx_cv_use_filehistory='wxUSE_FILE_HISTORY=yes'
+ else
+ wx_cv_use_filehistory='wxUSE_FILE_HISTORY=no'
+ fi
+
+else
+
+ wx_cv_use_filehistory='wxUSE_FILE_HISTORY=${'DEFAULT_wxUSE_FILE_HISTORY":-$defaultval}"
+
+fi
+
+
+ eval "$wx_cv_use_filehistory"
+
+ if test x"$enablestring" = xdisable; then
+ if test $wxUSE_FILE_HISTORY = no; then
+ result=yes
+ else
+ result=no
+ fi
+ else
+ result=$wxUSE_FILE_HISTORY
+ fi
+
+ { echo "$as_me:$LINENO: result: $result" >&5
+echo "${ECHO_T}$result" >&6; }
+
+
enablestring=
defaultval=$wxUSE_ALL_FEATURES
if test -z "$defaultval"; then
fi
fi
+if test "$wxUSE_FILE_HISTORY" = "yes"; then
+ cat >>confdefs.h <<\_ACEOF
+#define wxUSE_FILE_HISTORY 1
+_ACEOF
+
+fi
+
if test "$wxUSE_FILESYSTEM" = "yes"; then
if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
{ echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
WX_ARG_FEATURE(exceptions, [ --enable-exceptions build exception-safe library], wxUSE_EXCEPTIONS)
WX_ARG_FEATURE(ffile, [ --enable-ffile use wxFFile class], wxUSE_FFILE)
WX_ARG_FEATURE(file, [ --enable-file use wxFile class], wxUSE_FILE)
+WX_ARG_FEATURE(filehistory, [ --enable-filehistory use wxFileHistory class], wxUSE_FILE_HISTORY)
WX_ARG_FEATURE(filesystem, [ --enable-filesystem use virtual file systems classes], wxUSE_FILESYSTEM)
WX_ARG_FEATURE(fontenum, [ --enable-fontenum use wxFontEnumerator class], wxUSE_FONTENUM)
WX_ARG_FEATURE(fontmap, [ --enable-fontmap use font encodings conversion classes], wxUSE_FONTMAP)
fi
fi
+if test "$wxUSE_FILE_HISTORY" = "yes"; then
+ AC_DEFINE(wxUSE_FILE_HISTORY)
+fi
+
if test "$wxUSE_FILESYSTEM" = "yes"; then
if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
AC_MSG_WARN(wxFileSystem requires wxStreams and wxFile or wxFFile... disabled)
# define wxUSE_STREAMS 1
# endif
# endif
+
+# if !wxUSE_FILE_HISTORY
+# ifdef wxABORT_ON_CONFIG_ERROR
+# error "DocView requires wxUSE_FILE_HISTORY"
+# else
+# undef wxUSE_FILE_HISTORY
+# define wxUSE_FILE_HISTORY 1
+# endif
+# endif
#endif /* wxUSE_DOC_VIEW_ARCHITECTURE */
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/list.h"
#include "wx/string.h"
#include "wx/frame.h"
+#include "wx/filehistory.h"
#if wxUSE_PRINTING_ARCHITECTURE
#include "wx/print.h"
class WXDLLIMPEXP_FWD_CORE wxDocManager;
class WXDLLIMPEXP_FWD_CORE wxPrintInfo;
class WXDLLIMPEXP_FWD_CORE wxCommandProcessor;
-class WXDLLIMPEXP_FWD_CORE wxFileHistory;
class WXDLLIMPEXP_FWD_BASE wxConfigBase;
class wxDocChildFrameAnyBase;
};
#endif // wxUSE_PRINTING_ARCHITECTURE
-// ----------------------------------------------------------------------------
-// File history management
-// ----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxFileHistory : public wxObject
-{
-public:
- wxFileHistory(size_t maxFiles = 9, wxWindowID idBase = wxID_FILE1);
-
- // Operations
- virtual void AddFileToHistory(const wxString& file);
- virtual void RemoveFileFromHistory(size_t i);
- virtual int GetMaxFiles() const { return (int)m_fileMaxFiles; }
- virtual void UseMenu(wxMenu *menu);
-
- // Remove menu from the list (MDI child may be closing)
- virtual void RemoveMenu(wxMenu *menu);
-
-#if wxUSE_CONFIG
- virtual void Load(const wxConfigBase& config);
- virtual void Save(wxConfigBase& config);
-#endif // wxUSE_CONFIG
-
- virtual void AddFilesToMenu();
- virtual void AddFilesToMenu(wxMenu* menu); // Single menu
-
- // Accessors
- virtual wxString GetHistoryFile(size_t i) const { return m_fileHistory[i]; }
- virtual size_t GetCount() const { return m_fileHistory.GetCount(); }
-
- const wxList& GetMenus() const { return m_fileMenus; }
-
- // Set/get base id
- void SetBaseId(wxWindowID baseId) { m_idBase = baseId; }
- wxWindowID GetBaseId() const { return m_idBase; }
-
-#if WXWIN_COMPATIBILITY_2_6
- // deprecated, use GetCount() instead
- wxDEPRECATED( size_t GetNoHistoryFiles() const );
-#endif // WXWIN_COMPATIBILITY_2_6
-
-protected:
- // Last n files
- wxArrayString m_fileHistory;
-
- // Menus to maintain (may need several for an MDI app)
- wxList m_fileMenus;
-
- // Max files to maintain
- size_t m_fileMaxFiles;
-
-private:
- // The ID of the first history menu item (Doesn't have to be wxID_FILE1)
- wxWindowID m_idBase;
-
- DECLARE_DYNAMIC_CLASS(wxFileHistory)
- wxDECLARE_NO_COPY_CLASS(wxFileHistory);
-};
-
-#if WXWIN_COMPATIBILITY_2_6
-inline size_t wxFileHistory::GetNoHistoryFiles() const
-{
- return m_fileHistory.GetCount();
-}
-#endif // WXWIN_COMPATIBILITY_2_6
-
// For compatibility with existing file formats:
// converts from/to a stream to/from a temporary file.
#if wxUSE_STD_IOSTREAM
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: wx/filehistory.h
+// Purpose: wxFileHistory class
+// Author: Julian Smart, Vaclav Slavik
+// Created: 2010-05-03
+// RCS-ID: $Id$
+// Copyright: (c) Julian Smart, Vaclav Slavik
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+#ifndef _WX_FILEHISTORY_H_
+#define _WX_FILEHISTORY_H_
+
+#include "wx/defs.h"
+
+#if wxUSE_FILE_HISTORY
+
+#include "wx/windowid.h"
+#include "wx/object.h"
+#include "wx/list.h"
+#include "wx/string.h"
+#include "wx/arrstr.h"
+
+class WXDLLIMPEXP_FWD_CORE wxMenu;
+class WXDLLIMPEXP_FWD_BASE wxConfigBase;
+
+// ----------------------------------------------------------------------------
+// File history management
+// ----------------------------------------------------------------------------
+
+class WXDLLIMPEXP_CORE wxFileHistory : public wxObject
+{
+public:
+ wxFileHistory(size_t maxFiles = 9, wxWindowID idBase = wxID_FILE1);
+
+ // Operations
+ virtual void AddFileToHistory(const wxString& file);
+ virtual void RemoveFileFromHistory(size_t i);
+ virtual int GetMaxFiles() const { return (int)m_fileMaxFiles; }
+ virtual void UseMenu(wxMenu *menu);
+
+ // Remove menu from the list (MDI child may be closing)
+ virtual void RemoveMenu(wxMenu *menu);
+
+#if wxUSE_CONFIG
+ virtual void Load(const wxConfigBase& config);
+ virtual void Save(wxConfigBase& config);
+#endif // wxUSE_CONFIG
+
+ virtual void AddFilesToMenu();
+ virtual void AddFilesToMenu(wxMenu* menu); // Single menu
+
+ // Accessors
+ virtual wxString GetHistoryFile(size_t i) const { return m_fileHistory[i]; }
+ virtual size_t GetCount() const { return m_fileHistory.GetCount(); }
+
+ const wxList& GetMenus() const { return m_fileMenus; }
+
+ // Set/get base id
+ void SetBaseId(wxWindowID baseId) { m_idBase = baseId; }
+ wxWindowID GetBaseId() const { return m_idBase; }
+
+#if WXWIN_COMPATIBILITY_2_6
+ // deprecated, use GetCount() instead
+ wxDEPRECATED( size_t GetNoHistoryFiles() const );
+#endif // WXWIN_COMPATIBILITY_2_6
+
+protected:
+ // Last n files
+ wxArrayString m_fileHistory;
+
+ // Menus to maintain (may need several for an MDI app)
+ wxList m_fileMenus;
+
+ // Max files to maintain
+ size_t m_fileMaxFiles;
+
+private:
+ // The ID of the first history menu item (Doesn't have to be wxID_FILE1)
+ wxWindowID m_idBase;
+
+ DECLARE_DYNAMIC_CLASS(wxFileHistory)
+ wxDECLARE_NO_COPY_CLASS(wxFileHistory);
+};
+
+#if WXWIN_COMPATIBILITY_2_6
+inline size_t wxFileHistory::GetNoHistoryFiles() const
+{
+ return m_fileHistory.GetCount();
+}
+#endif // WXWIN_COMPATIBILITY_2_6
+
+#endif // wxUSE_FILE_HISTORY
+
+#endif // _WX_FILEHISTORY_H_
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
// use this function
#define wxUSE_ABOUTDLG 1
+// wxFileHistory class
+//
+// Default is 1
+//
+// Recommended setting: 1
+#define wxUSE_FILE_HISTORY 1
+
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------
};
-
-/**
- @class wxFileHistory
-
- The wxFileHistory encapsulates a user interface convenience, the list of
- most recently visited files as shown on a menu (usually the File menu).
-
- wxFileHistory can manage one or more file menus. More than one menu may be
- required in an MDI application, where the file history should appear on
- each MDI child menu as well as the MDI parent frame.
-
- @library{wxcore}
- @category{docview}
-
- @see @ref overview_docview, wxDocManager
-*/
-class wxFileHistory : public wxObject
-{
-public:
- /**
- Constructor. Pass the maximum number of files that should be stored and
- displayed.
-
- @a idBase defaults to wxID_FILE1 and represents the id given to the
- first history menu item. Since menu items can't share the same ID you
- should change @a idBase (to one of your own defined IDs) when using
- more than one wxFileHistory in your application.
- */
- wxFileHistory(size_t maxFiles = 9, wxWindowID idBase = wxID_FILE1);
-
- /**
- Destructor.
- */
- virtual ~wxFileHistory();
-
- /**
- Adds a file to the file history list, if the object has a pointer to an
- appropriate file menu.
- */
- virtual void AddFileToHistory(const wxString& filename);
-
- /**
- Appends the files in the history list, to all menus managed by the file
- history object.
- */
- virtual void AddFilesToMenu();
- /**
- Appends the files in the history list, to the given menu only.
- */
- virtual void AddFilesToMenu(wxMenu* menu);
-
- /**
- Returns the base identifier for the range used for appending items.
- */
- wxWindowID GetBaseId() const;
-
- /**
- Returns the number of files currently stored in the file history.
- */
- virtual size_t GetCount() const;
-
- /**
- Returns the file at this index (zero-based).
- */
- virtual wxString GetHistoryFile(size_t index) const;
-
- /**
- Returns the maximum number of files that can be stored.
- */
- virtual int GetMaxFiles() const;
-
- /**
- Returns the list of menus that are managed by this file history object.
-
- @see UseMenu()
- */
- const wxList& GetMenus() const;
-
- /**
- Loads the file history from the given config object. This function
- should be called explicitly by the application.
-
- @see wxConfigBase
- */
- virtual void Load(const wxConfigBase& config);
-
- /**
- Removes the specified file from the history.
- */
- virtual void RemoveFileFromHistory(size_t i);
-
- /**
- Removes this menu from the list of those managed by this object.
- */
- virtual void RemoveMenu(wxMenu* menu);
-
- /**
- Saves the file history into the given config object. This must be
- called explicitly by the application.
-
- @see wxConfigBase
- */
- virtual void Save(wxConfigBase& config);
-
- /**
- Sets the base identifier for the range used for appending items.
- */
- void SetBaseId(wxWindowID baseId);
-
- /**
- Adds this menu to the list of those menus that are managed by this file
- history object. Also see AddFilesToMenu() for initializing the menu
- with filenames that are already in the history when this function is
- called, as this is not done automatically.
- */
- virtual void UseMenu(wxMenu* menu);
-};
-
-
-
// ============================================================================
// Global functions/macros
// ============================================================================
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: filehistory.h
+// Purpose: wxFileHistory class
+// Author: wxWidgets team
+// RCS-ID: $Id$
+// Licence: wxWindows license
+/////////////////////////////////////////////////////////////////////////////
+
+/**
+ @class wxFileHistory
+
+ The wxFileHistory encapsulates a user interface convenience, the list of
+ most recently visited files as shown on a menu (usually the File menu).
+
+ wxFileHistory can manage one or more file menus. More than one menu may be
+ required in an MDI application, where the file history should appear on
+ each MDI child menu as well as the MDI parent frame.
+
+ @library{wxcore}
+ @category{docview}
+
+ @see @ref overview_docview, wxDocManager
+*/
+class wxFileHistory : public wxObject
+{
+public:
+ /**
+ Constructor. Pass the maximum number of files that should be stored and
+ displayed.
+
+ @a idBase defaults to wxID_FILE1 and represents the id given to the
+ first history menu item. Since menu items can't share the same ID you
+ should change @a idBase (to one of your own defined IDs) when using
+ more than one wxFileHistory in your application.
+ */
+ wxFileHistory(size_t maxFiles = 9, wxWindowID idBase = wxID_FILE1);
+
+ /**
+ Destructor.
+ */
+ virtual ~wxFileHistory();
+
+ /**
+ Adds a file to the file history list, if the object has a pointer to an
+ appropriate file menu.
+ */
+ virtual void AddFileToHistory(const wxString& filename);
+
+ /**
+ Appends the files in the history list, to all menus managed by the file
+ history object.
+ */
+ virtual void AddFilesToMenu();
+ /**
+ Appends the files in the history list, to the given menu only.
+ */
+ virtual void AddFilesToMenu(wxMenu* menu);
+
+ /**
+ Returns the base identifier for the range used for appending items.
+ */
+ wxWindowID GetBaseId() const;
+
+ /**
+ Returns the number of files currently stored in the file history.
+ */
+ virtual size_t GetCount() const;
+
+ /**
+ Returns the file at this index (zero-based).
+ */
+ virtual wxString GetHistoryFile(size_t index) const;
+
+ /**
+ Returns the maximum number of files that can be stored.
+ */
+ virtual int GetMaxFiles() const;
+
+ /**
+ Returns the list of menus that are managed by this file history object.
+
+ @see UseMenu()
+ */
+ const wxList& GetMenus() const;
+
+ /**
+ Loads the file history from the given config object. This function
+ should be called explicitly by the application.
+
+ @see wxConfigBase
+ */
+ virtual void Load(const wxConfigBase& config);
+
+ /**
+ Removes the specified file from the history.
+ */
+ virtual void RemoveFileFromHistory(size_t i);
+
+ /**
+ Removes this menu from the list of those managed by this object.
+ */
+ virtual void RemoveMenu(wxMenu* menu);
+
+ /**
+ Saves the file history into the given config object. This must be
+ called explicitly by the application.
+
+ @see wxConfigBase
+ */
+ virtual void Save(wxConfigBase& config);
+
+ /**
+ Sets the base identifier for the range used for appending items.
+ */
+ void SetBaseId(wxWindowID baseId);
+
+ /**
+ Adds this menu to the list of those menus that are managed by this file
+ history object. Also see AddFilesToMenu() for initializing the menu
+ with filenames that are already in the history when this function is
+ called, as this is not done automatically.
+ */
+ virtual void UseMenu(wxMenu* menu);
+};
#define wxUSE_ABOUTDLG 0
+#define wxUSE_FILE_HISTORY 0
+
#define wxUSE_METAFILE 0
#define wxUSE_ENH_METAFILE 0
IMPLEMENT_DYNAMIC_CLASS(wxDocPrintout, wxPrintout)
#endif
-IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject)
-
// ============================================================================
// implementation
// ============================================================================
return ext.MakeLower();
}
-// return the string used for the MRU list items in the menu
-//
-// NB: the index n is 0-based, as usual, but the strings start from 1
-wxString GetMRUEntryLabel(int n, const wxString& path)
-{
- // we need to quote '&' characters which are used for mnemonics
- wxString pathInMenu(path);
- pathInMenu.Replace("&", "&&");
-
- return wxString::Format("&%d %s", n + 1, pathInMenu);
-}
-
} // anonymous namespace
// ----------------------------------------------------------------------------
#endif // wxUSE_PRINTING_ARCHITECTURE
-// ----------------------------------------------------------------------------
-// File history (a.k.a. MRU, most recently used, files list)
-// ----------------------------------------------------------------------------
-
-wxFileHistory::wxFileHistory(size_t maxFiles, wxWindowID idBase)
-{
- m_fileMaxFiles = maxFiles;
- m_idBase = idBase;
-}
-
-void wxFileHistory::AddFileToHistory(const wxString& file)
-{
- // check if we don't already have this file
- const wxFileName fnNew(file);
- size_t i,
- numFiles = m_fileHistory.size();
- for ( i = 0; i < numFiles; i++ )
- {
- if ( fnNew == m_fileHistory[i] )
- {
- // we do have it, move it to the top of the history
- RemoveFileFromHistory(i);
- numFiles--;
- break;
- }
- }
-
- // if we already have a full history, delete the one at the end
- if ( numFiles == m_fileMaxFiles )
- {
- RemoveFileFromHistory(--numFiles);
- }
-
- // add a new menu item to all file menus (they will be updated below)
- for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
- node;
- node = node->GetNext() )
- {
- wxMenu * const menu = (wxMenu *)node->GetData();
-
- if ( !numFiles && menu->GetMenuItemCount() )
- menu->AppendSeparator();
-
- // label doesn't matter, it will be set below anyhow, but it can't
- // be empty (this is supposed to indicate a stock item)
- menu->Append(m_idBase + numFiles, " ");
- }
-
- // insert the new file in the beginning of the file history
- m_fileHistory.insert(m_fileHistory.begin(), file);
- numFiles++;
-
- // update the labels in all menus
- for ( i = 0; i < numFiles; i++ )
- {
- // if in same directory just show the filename; otherwise the full path
- const wxFileName fnOld(m_fileHistory[i]);
-
- wxString pathInMenu;
- if ( fnOld.GetPath() == fnNew.GetPath() )
- {
- pathInMenu = fnOld.GetFullName();
- }
- else // file in different directory
- {
- // absolute path; could also set relative path
- pathInMenu = m_fileHistory[i];
- }
-
- for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
- node;
- node = node->GetNext() )
- {
- wxMenu * const menu = (wxMenu *)node->GetData();
-
- menu->SetLabel(m_idBase + i, GetMRUEntryLabel(i, pathInMenu));
- }
- }
-}
-
-void wxFileHistory::RemoveFileFromHistory(size_t i)
-{
- size_t numFiles = m_fileHistory.size();
- wxCHECK_RET( i < numFiles,
- wxT("invalid index in wxFileHistory::RemoveFileFromHistory") );
-
- // delete the element from the array
- m_fileHistory.RemoveAt(i);
- numFiles--;
-
- for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
- node;
- node = node->GetNext() )
- {
- wxMenu * const menu = (wxMenu *) node->GetData();
-
- // shift filenames up
- for ( size_t j = i; j < numFiles; j++ )
- {
- menu->SetLabel(m_idBase + j, GetMRUEntryLabel(j, m_fileHistory[j]));
- }
-
- // delete the last menu item which is unused now
- const wxWindowID lastItemId = m_idBase + numFiles;
- if ( menu->FindItem(lastItemId) )
- menu->Delete(lastItemId);
-
- // delete the last separator too if no more files are left
- if ( m_fileHistory.empty() )
- {
- const wxMenuItemList::compatibility_iterator
- nodeLast = menu->GetMenuItems().GetLast();
- if ( nodeLast )
- {
- wxMenuItem * const lastMenuItem = nodeLast->GetData();
- if ( lastMenuItem->IsSeparator() )
- menu->Delete(lastMenuItem);
- }
- //else: menu is empty somehow
- }
- }
-}
-
-void wxFileHistory::UseMenu(wxMenu *menu)
-{
- if ( !m_fileMenus.Member(menu) )
- m_fileMenus.Append(menu);
-}
-
-void wxFileHistory::RemoveMenu(wxMenu *menu)
-{
- m_fileMenus.DeleteObject(menu);
-}
-
-#if wxUSE_CONFIG
-void wxFileHistory::Load(const wxConfigBase& config)
-{
- m_fileHistory.Clear();
-
- wxString buf;
- buf.Printf(wxT("file%d"), 1);
-
- wxString historyFile;
- while ((m_fileHistory.GetCount() < m_fileMaxFiles) &&
- config.Read(buf, &historyFile) && !historyFile.empty())
- {
- m_fileHistory.Add(historyFile);
-
- buf.Printf(wxT("file%d"), (int)m_fileHistory.GetCount()+1);
- historyFile = wxEmptyString;
- }
-
- AddFilesToMenu();
-}
-
-void wxFileHistory::Save(wxConfigBase& config)
-{
- size_t i;
- for (i = 0; i < m_fileMaxFiles; i++)
- {
- wxString buf;
- buf.Printf(wxT("file%d"), (int)i+1);
- if (i < m_fileHistory.GetCount())
- config.Write(buf, wxString(m_fileHistory[i]));
- else
- config.Write(buf, wxEmptyString);
- }
-}
-#endif // wxUSE_CONFIG
-
-void wxFileHistory::AddFilesToMenu()
-{
- if ( m_fileHistory.empty() )
- return;
-
- for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
- node;
- node = node->GetNext() )
- {
- AddFilesToMenu((wxMenu *) node->GetData());
- }
-}
-
-void wxFileHistory::AddFilesToMenu(wxMenu* menu)
-{
- if ( m_fileHistory.empty() )
- return;
-
- if ( menu->GetMenuItemCount() )
- menu->AppendSeparator();
-
- for ( size_t i = 0; i < m_fileHistory.GetCount(); i++ )
- {
- menu->Append(m_idBase + i, GetMRUEntryLabel(i, m_fileHistory[i]));
- }
-}
-
// ----------------------------------------------------------------------------
// Permits compatibility with existing file formats and functions that
// manipulate files directly
--- /dev/null
+/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/filehistorycmn.cpp
+// Purpose: wxFileHistory class
+// Author: Julian Smart, Vaclav Slavik, Vadim Zeitlin
+// Created: 2010-05-03
+// RCS-ID: $Id$
+// Copyright: (c) Julian Smart
+// Licence: wxWindows licence
+/////////////////////////////////////////////////////////////////////////////
+
+// ============================================================================
+// declarations
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// headers
+// ----------------------------------------------------------------------------
+
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#ifdef __BORLANDC__
+ #pragma hdrstop
+#endif
+
+#include "wx/filehistory.h"
+
+#if wxUSE_FILE_HISTORY
+
+#include "wx/menu.h"
+#include "wx/confbase.h"
+#include "wx/filename.h"
+
+// ============================================================================
+// implementation
+// ============================================================================
+
+// ----------------------------------------------------------------------------
+// private helpers
+// ----------------------------------------------------------------------------
+
+namespace
+{
+
+// return the string used for the MRU list items in the menu
+//
+// NB: the index n is 0-based, as usual, but the strings start from 1
+wxString GetMRUEntryLabel(int n, const wxString& path)
+{
+ // we need to quote '&' characters which are used for mnemonics
+ wxString pathInMenu(path);
+ pathInMenu.Replace("&", "&&");
+
+ return wxString::Format("&%d %s", n + 1, pathInMenu);
+}
+
+} // anonymous namespace
+
+// ----------------------------------------------------------------------------
+// File history (a.k.a. MRU, most recently used, files list)
+// ----------------------------------------------------------------------------
+
+IMPLEMENT_DYNAMIC_CLASS(wxFileHistory, wxObject)
+
+wxFileHistory::wxFileHistory(size_t maxFiles, wxWindowID idBase)
+{
+ m_fileMaxFiles = maxFiles;
+ m_idBase = idBase;
+}
+
+void wxFileHistory::AddFileToHistory(const wxString& file)
+{
+ // check if we don't already have this file
+ const wxFileName fnNew(file);
+ size_t i,
+ numFiles = m_fileHistory.size();
+ for ( i = 0; i < numFiles; i++ )
+ {
+ if ( fnNew == m_fileHistory[i] )
+ {
+ // we do have it, move it to the top of the history
+ RemoveFileFromHistory(i);
+ numFiles--;
+ break;
+ }
+ }
+
+ // if we already have a full history, delete the one at the end
+ if ( numFiles == m_fileMaxFiles )
+ {
+ RemoveFileFromHistory(--numFiles);
+ }
+
+ // add a new menu item to all file menus (they will be updated below)
+ for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
+ node;
+ node = node->GetNext() )
+ {
+ wxMenu * const menu = (wxMenu *)node->GetData();
+
+ if ( !numFiles && menu->GetMenuItemCount() )
+ menu->AppendSeparator();
+
+ // label doesn't matter, it will be set below anyhow, but it can't
+ // be empty (this is supposed to indicate a stock item)
+ menu->Append(m_idBase + numFiles, " ");
+ }
+
+ // insert the new file in the beginning of the file history
+ m_fileHistory.insert(m_fileHistory.begin(), file);
+ numFiles++;
+
+ // update the labels in all menus
+ for ( i = 0; i < numFiles; i++ )
+ {
+ // if in same directory just show the filename; otherwise the full path
+ const wxFileName fnOld(m_fileHistory[i]);
+
+ wxString pathInMenu;
+ if ( fnOld.GetPath() == fnNew.GetPath() )
+ {
+ pathInMenu = fnOld.GetFullName();
+ }
+ else // file in different directory
+ {
+ // absolute path; could also set relative path
+ pathInMenu = m_fileHistory[i];
+ }
+
+ for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
+ node;
+ node = node->GetNext() )
+ {
+ wxMenu * const menu = (wxMenu *)node->GetData();
+
+ menu->SetLabel(m_idBase + i, GetMRUEntryLabel(i, pathInMenu));
+ }
+ }
+}
+
+void wxFileHistory::RemoveFileFromHistory(size_t i)
+{
+ size_t numFiles = m_fileHistory.size();
+ wxCHECK_RET( i < numFiles,
+ wxT("invalid index in wxFileHistory::RemoveFileFromHistory") );
+
+ // delete the element from the array
+ m_fileHistory.RemoveAt(i);
+ numFiles--;
+
+ for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
+ node;
+ node = node->GetNext() )
+ {
+ wxMenu * const menu = (wxMenu *) node->GetData();
+
+ // shift filenames up
+ for ( size_t j = i; j < numFiles; j++ )
+ {
+ menu->SetLabel(m_idBase + j, GetMRUEntryLabel(j, m_fileHistory[j]));
+ }
+
+ // delete the last menu item which is unused now
+ const wxWindowID lastItemId = m_idBase + numFiles;
+ if ( menu->FindItem(lastItemId) )
+ menu->Delete(lastItemId);
+
+ // delete the last separator too if no more files are left
+ if ( m_fileHistory.empty() )
+ {
+ const wxMenuItemList::compatibility_iterator
+ nodeLast = menu->GetMenuItems().GetLast();
+ if ( nodeLast )
+ {
+ wxMenuItem * const lastMenuItem = nodeLast->GetData();
+ if ( lastMenuItem->IsSeparator() )
+ menu->Delete(lastMenuItem);
+ }
+ //else: menu is empty somehow
+ }
+ }
+}
+
+void wxFileHistory::UseMenu(wxMenu *menu)
+{
+ if ( !m_fileMenus.Member(menu) )
+ m_fileMenus.Append(menu);
+}
+
+void wxFileHistory::RemoveMenu(wxMenu *menu)
+{
+ m_fileMenus.DeleteObject(menu);
+}
+
+#if wxUSE_CONFIG
+void wxFileHistory::Load(const wxConfigBase& config)
+{
+ m_fileHistory.Clear();
+
+ wxString buf;
+ buf.Printf(wxT("file%d"), 1);
+
+ wxString historyFile;
+ while ((m_fileHistory.GetCount() < m_fileMaxFiles) &&
+ config.Read(buf, &historyFile) && !historyFile.empty())
+ {
+ m_fileHistory.Add(historyFile);
+
+ buf.Printf(wxT("file%d"), (int)m_fileHistory.GetCount()+1);
+ historyFile = wxEmptyString;
+ }
+
+ AddFilesToMenu();
+}
+
+void wxFileHistory::Save(wxConfigBase& config)
+{
+ size_t i;
+ for (i = 0; i < m_fileMaxFiles; i++)
+ {
+ wxString buf;
+ buf.Printf(wxT("file%d"), (int)i+1);
+ if (i < m_fileHistory.GetCount())
+ config.Write(buf, wxString(m_fileHistory[i]));
+ else
+ config.Write(buf, wxEmptyString);
+ }
+}
+#endif // wxUSE_CONFIG
+
+void wxFileHistory::AddFilesToMenu()
+{
+ if ( m_fileHistory.empty() )
+ return;
+
+ for ( wxList::compatibility_iterator node = m_fileMenus.GetFirst();
+ node;
+ node = node->GetNext() )
+ {
+ AddFilesToMenu((wxMenu *) node->GetData());
+ }
+}
+
+void wxFileHistory::AddFilesToMenu(wxMenu* menu)
+{
+ if ( m_fileHistory.empty() )
+ return;
+
+ if ( menu->GetMenuItemCount() )
+ menu->AppendSeparator();
+
+ for ( size_t i = 0; i < m_fileHistory.GetCount(); i++ )
+ {
+ menu->Append(m_idBase + i, GetMRUEntryLabel(i, m_fileHistory[i]));
+ }
+}
+
+#endif // wxUSE_FILE_HISTORY