home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / iconed / brshdlg.h < prev    next >
C/C++ Source or Header  |  1998-07-03  |  2KB  |  59 lines

  1. //========================= brshdlg.h ===================================
  2. // This is a header file for the brush dialog class
  3. //
  4. // Copyright (C) 1996 Philip Eckenroth, Mike Tipping, Marilee Padilla,
  5. //                    John Fredric Jr. Masciantoni, and Bruce E. Wampler.
  6. //
  7. // This file is part of the V Icon Editor, and is covered
  8. // under the terms of the GNU General Public License,
  9. // Version 2. This program has NO WARRANTY. See the source file
  10. // viedapp.cpp for more complete information about license terms.
  11. //=======================================================================
  12.  
  13. #ifndef BRUSHDLG_H
  14. #define BRUSHDLG_H
  15.  
  16. #include <v/vdialog.h>     // We inherit from vDialog
  17. #include "viedcnv.h"    
  18.  
  19.     class vApp;
  20.     class vWindow;
  21.     class myCanvasPane;
  22.     class vBrshDialog : public vDialog
  23.       {
  24.       public:           //---------------------------------------- public
  25.     // Constructors
  26.         vBrshDialog(vBaseWindow* bw, int All = 1, myCanvasPane* cnv = NULL);
  27.  
  28.         virtual ~vBrshDialog();          // Destructor
  29.         virtual void DialogCommand(ItemVal,ItemVal,CmdType); // action selected
  30.         void AddDefaultCmds();          // to add the defined commands
  31.  
  32.       protected:        //--------------------------------------- protected
  33.  
  34.       private:          //--------------------------------------- private
  35.  
  36.         void init();    // internal inintialization
  37.  
  38.         vWindow* pWin;              // our parent
  39.         myCanvasPane* myCanvas;
  40.  
  41.         int drawWhatBrush;              // active shape to draw
  42.         int toAll;                      // to all or only parent window
  43.         int toggleBrush;                // toggles between brushes
  44.       };
  45.  
  46. //Definitions for brushes 
  47. const int brush_1 = 3001;
  48. const int brush_2 = 3002;
  49. const int brush_3 = 3003;
  50. const int brush_4 = 3004;
  51. const int brush_5 = 3005;
  52. const int brush_6 = 3006;
  53. const int brush_7 = 3007;
  54. const int brush_8 = 3008;
  55. const int brush_9 = 3009;
  56. const int brush_10 = 3010;
  57.  
  58. #endif
  59.