mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-12-22 02:29:56 +00:00
37 lines
915 B
C++
37 lines
915 B
C++
#include "ResKnife.h"
|
|
#include "PlugWindow.h"
|
|
#include "ResourceObject.h"
|
|
|
|
#ifndef _ResKnife_EditorWindow_
|
|
#define _ResKnife_EditorWindow_
|
|
|
|
/*!
|
|
* @header EditorWindow
|
|
* @discussion A class specifically designed to maintain an external editor window.
|
|
*/
|
|
|
|
/*!
|
|
* @class EditorWindow
|
|
* @discussion A class specifically designed to maintain an external editor window.
|
|
*/
|
|
class EditorWindow : PlugWindow
|
|
{
|
|
private:
|
|
ResourceObjectPtr resource;
|
|
Boolean modified; // flag the editor sets when it modifies a resource (ie. it needs to be saved)
|
|
|
|
public:
|
|
/*!
|
|
* @function EditorWindow
|
|
* @discussion Constructor function.
|
|
*/
|
|
EditorWindow( FileWindowPtr ownerFile, ResourceObjectPtr targetResource, WindowRef inputWindow );
|
|
/*!
|
|
* @function Close
|
|
* @discussion Sends a close message to the plug, then closes the window.
|
|
*/
|
|
OSStatus Close( void );
|
|
ResourceObjectPtr Resource( void );
|
|
};
|
|
|
|
#endif |