home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / viewkit / xcontact / include / Buttons.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  2.5 KB  |  144 lines

  1. /*
  2.  * Copyright (C) 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. //////////////////////////////////////////////////////////////////
  18. // Buttons.h --
  19. //////////////////////////////////////////////////////////////////
  20. #ifndef BUTTONS_H
  21. #define BUTTONS_H
  22.  
  23. #include "OkPushButton.h"
  24.  
  25.  
  26. class ShowBtn : public OkPushButton {
  27.  
  28.  public:
  29.   ShowBtn( Widget parent ) : OkPushButton( "showBtn", parent ) {}
  30.   ~ShowBtn() {}
  31.  
  32.   void activate();
  33.  
  34. };
  35.  
  36. class DeleteBtn : public OkPushButton {
  37.  
  38.  public:
  39.   DeleteBtn( Widget parent ) : OkPushButton( "deleteBtn", parent ) {}
  40.   ~DeleteBtn() {}
  41.  
  42.   void activate();
  43. };
  44.  
  45. class NewBtn : public OkPushButton {
  46.  
  47.  public:
  48.   NewBtn( Widget parent ) : OkPushButton( "newBtn", parent ) {}
  49.   ~NewBtn() {}
  50.  
  51.   void activate();
  52. };
  53.  
  54.  
  55. //////////////////////////////////////////////////////////
  56. // Card View controls.
  57. //////////////////////////////////////////////////////////
  58.  
  59. class CardView;
  60.  
  61. class FirstBtn : public OkPushButton {
  62.  
  63.  private:
  64.   CardView*    _parentView;
  65.  
  66.  public:
  67.   FirstBtn( Widget, CardView* );
  68.   ~FirstBtn() {}
  69.  
  70.   void activate();
  71. };
  72.  
  73.  
  74.  
  75.  
  76. class PrevBtn : public OkPushButton {
  77.  
  78.  private:
  79.   CardView*    _parentView;
  80.  
  81.  public:
  82.   PrevBtn( Widget, CardView* );
  83.   ~PrevBtn() {}
  84.  
  85.   void activate();
  86. };
  87.  
  88.  
  89.  
  90.  
  91. class NextBtn : public OkPushButton {
  92.  
  93.  private:
  94.   CardView*    _parentView;
  95.  
  96.  public:
  97.   NextBtn( Widget, CardView* );
  98.   ~NextBtn() {}
  99.  
  100.   void activate();
  101. };
  102.  
  103.  
  104. class LastBtn : public OkPushButton {
  105.  
  106.  private:
  107.   CardView*    _parentView;
  108.  
  109.  public:
  110.   LastBtn( Widget, CardView* );
  111.   ~LastBtn() {}
  112.  
  113.   void activate();
  114. };
  115.  
  116.  
  117. class CloseBtn : public OkPushButton {
  118.  
  119.  private:
  120.   CardView*    _parentView;
  121.  
  122.  public:
  123.   CloseBtn( Widget, CardView* );
  124.   ~CloseBtn() {}
  125.  
  126.   void activate();
  127. };
  128.  
  129.  
  130.  
  131. class SrchBtn : public OkPushButton {
  132.  
  133.  private:
  134.   CardView*    _parentView;
  135.  
  136.  public:
  137.   SrchBtn( CardView* );
  138.   ~SrchBtn() {}
  139.  
  140.   void activate();
  141. };
  142.  
  143. #endif
  144.