Lines 1407-1413
bool ApplicationData::ConvertProject( const wxString& path, int fileMajor, int f
Link Here
|
1407 |
|
1407 |
|
1408 |
// Create a clone of now-converted object tree, so it can be linked |
1408 |
// Create a clone of now-converted object tree, so it can be linked |
1409 |
// underneath the root element |
1409 |
// underneath the root element |
1410 |
std::auto_ptr< ticpp::Node > objectTree = root->Clone(); |
1410 |
std::unique_ptr<ticpp::Node> objectTree = root->Clone(); |
1411 |
|
1411 |
|
1412 |
// Clear the document to add the declatation and the root element |
1412 |
// Clear the document to add the declatation and the root element |
1413 |
doc.Clear(); |
1413 |
doc.Clear(); |
Lines 1936-1942
void ApplicationData::ConvertObject( ticpp::Element* parent, int fileMajor, int
Link Here
|
1936 |
m_warnOnAdditionsUpdate = false; |
1936 |
m_warnOnAdditionsUpdate = false; |
1937 |
wxLogWarning( _("Updated classes from wxAdditions. You must use the latest version of wxAdditions to continue.\nNote wxScintilla is now wxStyledListCtrl, wxTreeListCtrl is now wxadditions::wxTreeListCtrl, and wxTreeListCtrlColumn is now wxadditions::wxTreeListCtrlColumn") ); |
1937 |
wxLogWarning( _("Updated classes from wxAdditions. You must use the latest version of wxAdditions to continue.\nNote wxScintilla is now wxStyledListCtrl, wxTreeListCtrl is now wxadditions::wxTreeListCtrl, and wxTreeListCtrlColumn is now wxadditions::wxTreeListCtrlColumn") ); |
1938 |
} |
1938 |
} |
1939 |
|
1939 |
|
1940 |
typedef std::map< std::string, std::set< std::string > > PropertiesToRemove; |
1940 |
typedef std::map< std::string, std::set< std::string > > PropertiesToRemove; |
1941 |
|
1941 |
|
1942 |
static std::set< std::string > propertyRemovalWarnings; |
1942 |
static std::set< std::string > propertyRemovalWarnings; |
Lines 1950-1956
void ApplicationData::ConvertObject( ticpp::Element* parent, int fileMajor, int
Link Here
|
1950 |
std::stringstream ss; |
1950 |
std::stringstream ss; |
1951 |
std::ostream_iterator< std::string > out_it (ss, ", "); |
1951 |
std::ostream_iterator< std::string > out_it (ss, ", "); |
1952 |
std::copy( it->second.begin(), it->second.end(), out_it ); |
1952 |
std::copy( it->second.begin(), it->second.end(), out_it ); |
1953 |
|
1953 |
|
1954 |
wxLogMessage( _("Removed properties for class %s because they are no longer supported: %s"), objClass, ss.str() ); |
1954 |
wxLogMessage( _("Removed properties for class %s because they are no longer supported: %s"), objClass, ss.str() ); |
1955 |
propertyRemovalWarnings.insert( objClass ); |
1955 |
propertyRemovalWarnings.insert( objClass ); |
1956 |
} |
1956 |
} |
Lines 1977-1983
void ApplicationData::GetPropertiesToConvert( ticpp::Node* parent, const std::se
Link Here
|
1977 |
} |
1977 |
} |
1978 |
} |
1978 |
} |
1979 |
} |
1979 |
} |
1980 |
|
1980 |
|
1981 |
void ApplicationData::RemoveProperties( ticpp::Node* parent, const std::set< std::string >& names ) |
1981 |
void ApplicationData::RemoveProperties( ticpp::Node* parent, const std::set< std::string >& names ) |
1982 |
{ |
1982 |
{ |
1983 |
ticpp::Iterator< ticpp::Element > prop( "property" ); |
1983 |
ticpp::Iterator< ticpp::Element > prop( "property" ); |
Lines 1986-2000
void ApplicationData::RemoveProperties( ticpp::Node* parent, const std::set< std
Link Here
|
1986 |
{ |
1986 |
{ |
1987 |
ticpp::Element element = *prop; |
1987 |
ticpp::Element element = *prop; |
1988 |
++prop; |
1988 |
++prop; |
1989 |
|
1989 |
|
1990 |
std::string name; |
1990 |
std::string name; |
1991 |
element.GetAttribute( "name", &name ); |
1991 |
element.GetAttribute( "name", &name ); |
1992 |
|
1992 |
|
1993 |
if ( names.find( name ) != names.end() ) |
1993 |
if ( names.find( name ) != names.end() ) |
1994 |
{ |
1994 |
{ |
1995 |
parent->RemoveChild( &element ); |
1995 |
parent->RemoveChild( &element ); |
1996 |
} |
1996 |
} |
1997 |
} |
1997 |
} |
1998 |
} |
1998 |
} |
1999 |
|
1999 |
|
2000 |
void ApplicationData::TransferOptionList( ticpp::Element* prop, std::set< wxString >* options, const std::string& newPropName ) |
2000 |
void ApplicationData::TransferOptionList( ticpp::Element* prop, std::set< wxString >* options, const std::string& newPropName ) |
Lines 2909-2915
ApplicationData::PropertiesToRemove& ApplicationData::GetPropertiesToRemove_v1_1
Link Here
|
2909 |
propertiesToRemove[ "Dialog" ].insert( "validator_style" ); |
2909 |
propertiesToRemove[ "Dialog" ].insert( "validator_style" ); |
2910 |
propertiesToRemove[ "Dialog" ].insert( "validator_type" ); |
2910 |
propertiesToRemove[ "Dialog" ].insert( "validator_type" ); |
2911 |
propertiesToRemove[ "Dialog" ].insert( "aui_name" ); |
2911 |
propertiesToRemove[ "Dialog" ].insert( "aui_name" ); |
2912 |
|
2912 |
|
2913 |
propertiesToRemove[ "Panel" ].insert( "BottomDockable" ); |
2913 |
propertiesToRemove[ "Panel" ].insert( "BottomDockable" ); |
2914 |
propertiesToRemove[ "Panel" ].insert( "LeftDockable" ); |
2914 |
propertiesToRemove[ "Panel" ].insert( "LeftDockable" ); |
2915 |
propertiesToRemove[ "Panel" ].insert( "RightDockable" ); |
2915 |
propertiesToRemove[ "Panel" ].insert( "RightDockable" ); |
Lines 2932-2939
ApplicationData::PropertiesToRemove& ApplicationData::GetPropertiesToRemove_v1_1
Link Here
|
2932 |
propertiesToRemove[ "Panel" ].insert( "show" ); |
2932 |
propertiesToRemove[ "Panel" ].insert( "show" ); |
2933 |
propertiesToRemove[ "Panel" ].insert( "toolbar_pane" ); |
2933 |
propertiesToRemove[ "Panel" ].insert( "toolbar_pane" ); |
2934 |
propertiesToRemove[ "Panel" ].insert( "validator_style" ); |
2934 |
propertiesToRemove[ "Panel" ].insert( "validator_style" ); |
2935 |
propertiesToRemove[ "Panel" ].insert( "validator_type" ); |
2935 |
propertiesToRemove[ "Panel" ].insert( "validator_type" ); |
2936 |
|
2936 |
|
2937 |
propertiesToRemove[ "wxStaticText" ].insert( "validator_style" ); |
2937 |
propertiesToRemove[ "wxStaticText" ].insert( "validator_style" ); |
2938 |
propertiesToRemove[ "wxStaticText" ].insert( "validator_type" ); |
2938 |
propertiesToRemove[ "wxStaticText" ].insert( "validator_type" ); |
2939 |
propertiesToRemove[ "CustomControl" ].insert( "validator_style" ); |
2939 |
propertiesToRemove[ "CustomControl" ].insert( "validator_style" ); |
Lines 2941-2958
ApplicationData::PropertiesToRemove& ApplicationData::GetPropertiesToRemove_v1_1
Link Here
|
2941 |
propertiesToRemove[ "wxAuiNotebook" ].insert( "validator_style" ); |
2941 |
propertiesToRemove[ "wxAuiNotebook" ].insert( "validator_style" ); |
2942 |
propertiesToRemove[ "wxAuiNotebook" ].insert( "validator_type" ); |
2942 |
propertiesToRemove[ "wxAuiNotebook" ].insert( "validator_type" ); |
2943 |
propertiesToRemove[ "wxPanel" ].insert( "validator_style" ); |
2943 |
propertiesToRemove[ "wxPanel" ].insert( "validator_style" ); |
2944 |
propertiesToRemove[ "wxPanel" ].insert( "validator_type" ); |
2944 |
propertiesToRemove[ "wxPanel" ].insert( "validator_type" ); |
2945 |
propertiesToRemove[ "wxToolBar" ].insert( "validator_style" ); |
2945 |
propertiesToRemove[ "wxToolBar" ].insert( "validator_style" ); |
2946 |
propertiesToRemove[ "wxToolBar" ].insert( "validator_type" ); |
2946 |
propertiesToRemove[ "wxToolBar" ].insert( "validator_type" ); |
2947 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "use_wxAddition" ); |
2947 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "use_wxAddition" ); |
2948 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "validator_style" ); |
2948 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "validator_style" ); |
2949 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "validator_type" ); |
2949 |
propertiesToRemove[ "wxStyledTextCtrl" ].insert( "validator_type" ); |
2950 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "use_wxAddition" ); |
2950 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "use_wxAddition" ); |
2951 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "validator_style" ); |
2951 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "validator_style" ); |
2952 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "validator_type" ); |
2952 |
propertiesToRemove[ "wxPropertyGridManager" ].insert( "validator_type" ); |
2953 |
|
2953 |
|
2954 |
propertiesToRemove[ "wxadditions::wxTreeListCtrl" ].insert( "validator_style" ); |
2954 |
propertiesToRemove[ "wxadditions::wxTreeListCtrl" ].insert( "validator_style" ); |
2955 |
propertiesToRemove[ "wxadditions::wxTreeListCtrl" ].insert( "validator_type" ); |
2955 |
propertiesToRemove[ "wxadditions::wxTreeListCtrl" ].insert( "validator_type" ); |
2956 |
} |
2956 |
} |
2957 |
return propertiesToRemove; |
2957 |
return propertiesToRemove; |
2958 |
} |
2958 |
} |