mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-19 21:16:51 +02:00
added Resourcemanager
This commit is contained in:
@@ -134,6 +134,27 @@ void Utility::initialize(LookAndFeel::Ptr ptr)
|
||||
}
|
||||
|
||||
|
||||
void Utility::initialize(ResourceManager::Ptr ptr, const Poco::Path& extJSDir)
|
||||
{
|
||||
Poco::Path aDir(extJSDir);
|
||||
aDir.makeDirectory();
|
||||
aDir.setFileName("ext-base.js");
|
||||
ptr->appendJSInclude(aDir);
|
||||
aDir.setFileName("ext-all.js");
|
||||
ptr->appendJSInclude(aDir);
|
||||
aDir.setFileName("DDView.js");
|
||||
ptr->appendJSInclude(aDir);
|
||||
aDir.setFileName("MultiSelect.js");
|
||||
ptr->appendJSInclude(aDir);
|
||||
|
||||
Poco::Path cssAll("resources/css/ext-all.css");
|
||||
cssAll.makeFile();
|
||||
|
||||
ptr->appendCSSInclude(Poco::Path(extJSDir, cssAll));
|
||||
ptr->appendCSSInclude(Poco::Path(extJSDir, "MultiSelect.css"));
|
||||
}
|
||||
|
||||
|
||||
const std::string& Utility::getTmpID()
|
||||
{
|
||||
static const std::string tmp("tmp");
|
||||
|
Reference in New Issue
Block a user