Source

gdt / SpriteEd / MAINWIN.H

#ifndef __INC_MAINWIN_H
#define __INC_MAINWIN_H
/*-------------------------------------------------------------------------*/
#ifndef __cplusplus /* C */
#	error Only C++ modules may include the class for the main window
#endif

#include "ImgDim.H" // We use this dialog as a member so it's class must be included here

class TMainWindow : public TMDIClient
{
private:
		static int HighMDIIndex;

      TImgDimDlg* _imgDimDlg; // We'll keep this dialog all the time, as owned by the main window

	DECLARE_RESPONSE_TABLE(TMainWindow);
public:
	TMainWindow(); // Constructor
   ~TMainWindow(); // Destructor
	virtual TMDIChild* InitChild(); // Create a new child
	virtual NATIVEBOOLTYPE CloseChildren(); // Close all MDI children

	virtual NATIVEBOOLTYPE CanClose();

	// Event handlers for mainm window
   void CmFileNew();
	void CmFileExit();
   void CmImageAttribs();
   void EvHTileChildren();
   void EvVTileChildren();
	void CmHelpAbout();
   void EvGetMinMaxInfo(MINMAXINFO far & s);
};
DEFINE_RESPONSE_TABLE1(TMainWindow, TMDIClient)
	EV_COMMAND(CM_FILE_NEW, CmFileNew),
	EV_COMMAND(CM_FILE_EXIT, CmFileExit),
   EV_COMMAND(CM_IMAGE_ATTRIBS, CmImageAttribs),
   EV_COMMAND(CM_WINDOW_CASCADE, CmCascadeChildren), /* This function is in parent */
   EV_COMMAND(CM_WINDOW_HTILE, CmTileChildrenHoriz), /* This is in TMainWindow */
   EV_COMMAND(CM_WINDOW_VTILE, CmTileChildren), /* This is in TMainWindow*/
   EV_COMMAND(CM_WINDOW_ARRANGEICONS, CmArrangeIcons), /* This also */
	EV_COMMAND(CM_HELP_ABOUT, CmHelpAbout),
   EV_WM_GETMINMAXINFO,
END_RESPONSE_TABLE;
//---------------------------------------------------------------------------
#endif //__INC_MAINWIN_H
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.