main.h
上传用户:hzhsqp
上传日期:2007-01-06
资源大小:1600k
文件大小:3k
- /*
- * main.h
- *
- * PWLib application header file for pwtest
- *
- * Copyright 98 Equivalence
- *
- * $Log: main.h,v $
- * Revision 1.9 2000/07/15 09:47:35 robertj
- * Added video I/O device classes.
- *
- * Revision 1.8 1999/09/10 04:35:43 robertj
- * Added Windows version of PIPSocket::GetInterfaceTable() function.
- *
- * Revision 1.7 1999/08/07 07:11:14 robertj
- * Added test for menu text change
- *
- * Revision 1.6 1999/07/03 03:12:59 robertj
- * #ifdef'ed test code for stuff not in general distrubution.
- *
- * Revision 1.5 1999/06/24 14:00:09 robertj
- * Added URL parse test
- *
- * Revision 1.4 1999/02/22 10:15:16 robertj
- * Sound driver interface implementation to Linux OSS specification.
- *
- * Revision 1.3 1999/01/31 00:59:27 robertj
- * Added IP Access Control List class to PTLib Components
- *
- * Revision 1.2 1998/12/23 01:15:58 robertj
- * New directory structure
- *
- */
- #ifndef _Pwtest_MAIN_H
- #define _Pwtest_MAIN_H
- #include <pwclib/toolbars.h>
- class MainMenu;
- class MainWindow : public PMDIFrameWindow
- {
- PCLASSINFO(MainWindow, PMDIFrameWindow)
-
- public:
- MainWindow(PArgList & args);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, NewCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, OpenCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, CloseCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, SaveCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, SaveAsCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, PrintCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, PrinterSetupCmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, ExitCmd);
- PDECLARE_COMMAND_ENABLE("Copy", MainWindow, CopyCmd, CanCopy);
- PDECLARE_COMMAND_ENABLE("Copy", MainWindow, PasteCmd, CanPaste);
- PDECLARE_COMMAND("MenuTest", MainWindow, TestCmd);
- PDECLARE_COMMAND("IP_ACL", MainWindow, IP_ACL_Cmd);
- PDECLARE_NOTIFIER(PMenuItem, MainWindow, ListInterfacesCmd);
- #ifdef PARSE_URL_TEST
- PDECLARE_COMMAND("ParseURL", MainWindow, ParseURLCmd);
- #endif
- PDECLARE_COMMAND("PlaySound", MainWindow, PlaySoundCmd);
- PDECLARE_COMMAND("RecordSound", MainWindow, RecordSoundCmd);
- PDECLARE_COMMAND("VideoCapture", MainWindow, VideoCaptureCmd);
- protected:
- virtual void OnRedraw(PCanvas & canvas);
- virtual void OnResize(const PDim &, ResizeType);
- virtual void OnClose();
- private:
- MainMenu * myMenu;
- PButtonBar * buttonBar;
- PStatusBar * statusBar;
- PPrintInfo printInfo;
- };
- class Pwtest : public PApplication
- {
- PCLASSINFO(Pwtest, PApplication)
- public:
- Pwtest();
- void Main();
- };
- #endif // _Pwtest_MAIN_H
- // End of File ///////////////////////////////////////////////////////////////