equal
deleted
inserted
replaced
88 stream << " Creates a template layout adaptation layer implementation." << endl; |
88 stream << " Creates a template layout adaptation layer implementation." << endl; |
89 } |
89 } |
90 |
90 |
91 |
91 |
92 AdaptationLayerTemplate::AdaptationLayerTemplate(TLayout& aLayout, CCdlTkInterface& aLayIface, CCdlTkInterface& aScaleIface, CCdlTkInstance& aInstance, string& aExisting) |
92 AdaptationLayerTemplate::AdaptationLayerTemplate(TLayout& aLayout, CCdlTkInterface& aLayIface, CCdlTkInterface& aScaleIface, CCdlTkInstance& aInstance, string& aExisting) |
93 : iLayout(aLayout), iLayIface(aLayIface), iScaleIface(aScaleIface), iInstance(aInstance), iExisting(aExisting) |
93 : iLayIface(aLayIface), iScaleIface(aScaleIface), iLayout(aLayout), iInstance(aInstance), iExisting(aExisting) |
94 { |
94 { |
95 } |
95 } |
96 |
96 |
97 AdaptationLayerTemplate::~AdaptationLayerTemplate() |
97 AdaptationLayerTemplate::~AdaptationLayerTemplate() |
98 { |
98 { |
160 return percent; |
160 return percent; |
161 } |
161 } |
162 |
162 |
163 pair<string,int> AdaptationLayerTemplate::GetApiMatch(const string& aName) |
163 pair<string,int> AdaptationLayerTemplate::GetApiMatch(const string& aName) |
164 { |
164 { |
165 int size = aName.size(); |
165 //int size = aName.size(); |
166 CCdlTkApiList& apiList = iScaleIface.ApiList(); |
166 CCdlTkApiList& apiList = iScaleIface.ApiList(); |
167 string bestMatch; |
167 string bestMatch; |
168 int bestScore = 0; |
168 int bestScore = 0; |
169 for (CCdlTkApiList::iterator pApi = apiList.begin(); pApi != apiList.end(); ++pApi) |
169 for (CCdlTkApiList::iterator pApi = apiList.begin(); pApi != apiList.end(); ++pApi) |
170 { |
170 { |