home *** CD-ROM | disk | FTP | other *** search
- /*
- * File: form.h
- * Purpose: Demo for wxWindows `forms' class
- *
- * wxWindows 1.40
- * Copyright (c) 1993 Artificial Intelligence Applications Institute,
- * The University of Edinburgh
- *
- * Author: Julian Smart
- * Date: 18-4-93
- *
- * Permission to use, copy, modify, and distribute this software and its
- * documentation for any purpose is hereby granted without fee, provided
- * that the above copyright notice, author statement and this permission
- * notice appear in all copies of this software and related documentation.
- *
- * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, EXPRESS,
- * IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF
- * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
- *
- * IN NO EVENT SHALL THE ARTIFICIAL INTELLIGENCE APPLICATIONS INSTITUTE OR THE
- * UNIVERSITY OF EDINBURGH BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR
- * CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM
- * LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF
- * DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH
- * THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
- // Define a new application
- class MyApp: public wxApp
- {
- public:
- wxFrame *OnInit(void);
- };
-
- // Define a new frame
- class MyFrame: public wxFrame
- {
- public:
- MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h);
- Bool OnClose(void);
- void OnMenuCommand(int id);
- };
-
- class MyObject: public wxObject
- {
- public:
- char *string1;
- char *string2;
- char *string3;
- int int1;
- Bool bool1;
- float float1;
- wxList string_list1;
- MyObject(void);
- };
-
- class MyForm: public wxForm
- {
- public:
- void EditForm(MyObject *object, wxPanel *panel);
- void OnOk(void);
- void OnCancel(void);
- };
-
- #define FORM_QUIT 1
- #define FORM_EDIT 2
-