Add prebuilt event to copy output files.
This commit is contained in:
parent
25a2139674
commit
b9cb11b331
|
@ -60,40 +60,40 @@ DDSFormatPlugin::~DDSFormatPlugin ()
|
|||
|
||||
void DDSFormatPlugin::DoAbout (AboutRecord* inAboutRec)
|
||||
{
|
||||
QtHelpers::QtIntialize();
|
||||
//QtHelpers::QtIntialize();
|
||||
|
||||
QWidget *window = new QWidget();
|
||||
window->resize(320,240);
|
||||
window->show();
|
||||
|
||||
QPushButton *button = new QPushButton("Qt Button", window);
|
||||
button->move(100, 100);
|
||||
button->show();
|
||||
//QWidget *window = new QWidget();
|
||||
//window->resize(320,240);
|
||||
//window->show();
|
||||
//
|
||||
//QPushButton *button = new QPushButton("Qt Button", window);
|
||||
//button->move(100, 100);
|
||||
//button->show();
|
||||
|
||||
HWND hwnd = (HWND)((PlatformData*)inAboutRec->platformData)->hwnd;
|
||||
SetParent(window->winId(), hwnd);
|
||||
//HWND hwnd = (HWND)((PlatformData*)inAboutRec->platformData)->hwnd;
|
||||
//SetParent(window->winId(), hwnd);
|
||||
|
||||
qApp->exec();
|
||||
//qApp->exec();
|
||||
|
||||
QtHelpers::QtShutdown();
|
||||
//QtHelpers::QtShutdown();
|
||||
|
||||
//Using Adobe Dialog Manager (ADM)
|
||||
// if (inAboutRec != NULL && inAboutRec->sSPBasic != NULL)
|
||||
// {
|
||||
// ADMBasicSuite6* basicSuite = NULL;
|
||||
//
|
||||
// inAboutRec->sSPBasic->AcquireSuite (kADMBasicSuite, kADMBasicSuiteVersion6, (const void**) &basicSuite);
|
||||
if (inAboutRec != NULL && inAboutRec->sSPBasic != NULL)
|
||||
{
|
||||
ADMBasicSuite6* basicSuite = NULL;
|
||||
|
||||
inAboutRec->sSPBasic->AcquireSuite (kADMBasicSuite, kADMBasicSuiteVersion6, (const void**) &basicSuite);
|
||||
|
||||
// if (basicSuite != NULL)
|
||||
// {
|
||||
// basicSuite->MessageAlert ("Nvidia texture tool\n\n"
|
||||
// "Plug-in by Ignacio Castaño, Javier Cantón\n"
|
||||
// "www.nvidia.com");
|
||||
if (basicSuite != NULL)
|
||||
{
|
||||
basicSuite->MessageAlert ("Nvidia texture tool\n\n"
|
||||
"Plug-in by Ignacio Castaño, Javier Cantón\n"
|
||||
"www.nvidia.com");
|
||||
|
||||
// inAboutRec->sSPBasic->ReleaseSuite (kADMBasicSuite, kADMBasicSuiteVersion6);
|
||||
// basicSuite = NULL;
|
||||
// }
|
||||
// }
|
||||
inAboutRec->sSPBasic->ReleaseSuite (kADMBasicSuite, kADMBasicSuiteVersion6);
|
||||
basicSuite = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
|
|
|
@ -93,6 +93,8 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Copy Files to photoshop plugins folder"
|
||||
CommandLine="copy $(OutDir)\PSNvidiaPlugin.8bi "C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\File Formats""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
|
@ -171,6 +173,8 @@
|
|||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
Description="Copy Files to photoshop plugins folder"
|
||||
CommandLine="copy PSNvidiaPlugin.8bi "C:\Program Files\Adobe\Adobe Photoshop CS2\Plug-Ins\File Formats""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
|
|
Loading…
Reference in New Issue
Block a user