Main Page   Class Hierarchy   Compound List   File List   Compound Members  

patdlg.h

00001 
00002 
00003 /*
00004  * Definition of class for dialog to specify pattern settings.
00005 */
00006 
00007 #ifndef PATTERNDLG_H
00008 #define PATTERNDLG_H
00009 
00010 #ifdef __GNUG__
00011 #pragma interface
00012 #endif
00013 
00014 #include "mainwin.h"
00015 #include "lsetup.h"
00016 #include "layprops.h"
00017 #include "windrv.h"
00018 
00019 
00022 
00023 //:defenition
00029 
00030 class PatternDialog: public wxDialog
00031 {
00032         public:
00033                 // Constructor.
00034                 PatternDialog(LayerPropertiesDialog* parent,char* title,long style =0 ,char* name = "main_pattern_dlg");
00035 
00036       // Destructor.
00037                 ~PatternDialog();
00038 
00039         protected:
00040 
00041       // Close window if EXIT-button is pressed.
00042       void      OnCloseWindow(wxCloseEvent& event);
00043 
00044       // Draw for each button its own pattern.
00045       void      Redraw();
00046 
00047       // Get chosen pattern.
00048                 void    Cm_P_BitB(wxEvent& event);
00049 
00050       // wxWindows class.
00051                 wxColour* ltowxc(long colour);
00052 
00053       // wxWindows class.
00054       wxPanel*          _panel1;
00055 
00056       wxScrolledWindow* _scroll;
00057 
00058       // Pointer to parent, holds the parent window.
00059                 LayerPropertiesDialog*  _parent;
00060 
00061       // wxWindows class, layer PATTERN  buttons.
00062                 wxBitmapButton*         _patternbut[NR_PATTERNS];
00063 
00064       //the choosen pattern.
00065       int                                       _choosen;
00066 
00067       // Declare used events.
00068       DECLARE_EVENT_TABLE()
00069 
00070 };
00071 
00072 #endif
00073 
patdlg.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page