|
From: Ralph T. <ra...@us...> - 2005-04-01 19:12:16
|
Update of /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17226/adobe-source/adobe/test/visual Modified Files: Jamfile Log Message: Checking in initial support for getting most metrics from Windows. This work isn't yet complete, and there may be a few regressions. The new files, metrics.hpp and metrics.cpp define a new "metrics_t" type which can return metrics for widgets from the OS. win/ui_core_implementation.* have been modified to use the new metrics_t type, as well as use measurements from plain Win32 (in the case of edit and comboboxes). The baseline alignment for "compound widgets" (with labels and the main widget) has changed to cover the case that a static label is larger than the actual widget (a possible occurance when using custom themes). Index: Jamfile =================================================================== RCS file: /cvsroot/adobe-source/sandbox/adobe-source/adobe/test/visual/Jamfile,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Jamfile 30 Mar 2005 22:34:37 -0000 1.3 --- Jamfile 1 Apr 2005 19:11:48 -0000 1.4 *************** *** 10,20 **** PLATFORM_HEADERS = headers/win ; PLATFORM_SOURCE_DIR = sources/win ; } else { PLATFORM_HEADERS = headers/mac ; PLATFORM_SOURCE_DIR = sources/mac ; } project adobe/visual ! : requirements <toolset>msvc:<linkflags>"gdi32.lib user32.lib comctl32.lib /subsystem:windows" : requirements <include>headers <link>static ; --- 10,22 ---- PLATFORM_HEADERS = headers/win ; PLATFORM_SOURCE_DIR = sources/win ; + PLATFORM_SOURCES = sources/win/metrics.cpp ; } else { PLATFORM_HEADERS = headers/mac ; PLATFORM_SOURCE_DIR = sources/mac ; + PLATFORM_SOURCES = ; } project adobe/visual ! : requirements <toolset>msvc:<linkflags>"uxtheme.lib gdi32.lib user32.lib comctl32.lib /subsystem:windows" : requirements <include>headers <link>static ; *************** *** 24,27 **** --- 26,30 ---- sources/client_assembler.cpp sources/ui_core.cpp + $(PLATFORM_SOURCES) $(PLATFORM_SOURCE_DIR)/main.cpp $(PLATFORM_SOURCE_DIR)/display.cpp *************** *** 29,32 **** /adobe//asl_lib_dev /boost/filesystem//boost_filesystem ! : <include>$(PLATFORM_HEADERS) ; # <variant>release:<define>NDEBUG ; --- 32,35 ---- /adobe//asl_lib_dev /boost/filesystem//boost_filesystem ! : <include>$(PLATFORM_HEADERS) <link>static ; # <variant>release:<define>NDEBUG ; |