home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Classes / UHSelectView / Demo / UHSelectView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-16  |  2.2 KB  |  81 lines

  1.  
  2.  
  3. #import <appkit/appkit.h>
  4.  
  5. // defining the various positions of the view
  6. #define UHSV_TOPLEFT 1
  7. #define UHSV_TOPCENTER 2
  8. #define UHSV_TOPRIGHT 3
  9. #define UHSV_LEFT 4
  10. #define UHSV_CENTER 5
  11. #define UHSV_RIGHT 6
  12. #define UHSV_BOTTOMLEFT 7
  13. #define UHSV_BOTTOMCENTER 8
  14. #define UHSV_BOTTOMRIGHT 9
  15.  
  16.  
  17. @interface UHSelectView:View
  18. {
  19.     id view00;                //these are outlets for connection in IB
  20.     id view01;
  21.     id view02;
  22.     id view03;
  23.     id view04;
  24.     id view05;
  25.     id view06;
  26.     id view07;
  27.     id view08;
  28.     id view09;
  29.     id view10;
  30.     id view11;
  31.     id view12;
  32.     id view13;
  33.     id view14;
  34.     id view15;
  35.     id view16;
  36.     id view17;
  37.     id view18;
  38.     id view19;
  39.     id view20;
  40.     id view21;
  41.     id view22;
  42.     id view23;
  43.     id view24;
  44.     id view25;
  45.     id defaultView;
  46.     id delegate;
  47.     List * views;
  48.     Storage * viewNos;
  49.     View * currentView;        //the view currently being displayed
  50.     View * currentSuperview;    //temporary storage for superview ptr
  51.     NXRect currentFrame;    //saved frame rect of current view
  52.     int viewNumber;    //current view number
  53.     int position;        // integer value of the position
  54.     BOOL isFramed;    //flag indicating whether selectview is to be framed
  55. }
  56.  
  57. - takeTagFrom:sender;            // select view number from tag of the sender
  58. - takeIntValueFrom:sender;        //select view number from int value of sender
  59. - selectViewNumber:(int)viewNo;    //select a view by number and display it
  60. - viewWithNumber:(int)viewNo;    //return view corresponding to a particular number
  61. - (int)viewNumber;                // return the current view number
  62. - setPosition:(int)aPosition;        //sets the position of the view
  63. - (int)position;                    //returns the position
  64. - makeFramed:(BOOL)framed;    //designate whether view is to be framed
  65. - (BOOL)isFramed;                // returns the value of the flag isFramed
  66. - setView:anObject number:(int)n;    //register a view with a reference number
  67. - (int)viewCount;                //return the number of views registered
  68. - drawDefault;                    //draw the default display when no view is selected
  69. - setDefaultView:aView;            //set view to be displayed when bi view is selected
  70. - defaultView;                    //returns the default view
  71.  
  72. @end
  73.  
  74. @interface Object(UHSelectViewDelegate)
  75. /* Methods Implemented by the Delegate */
  76. - viewWasSelected:sender;         //called when a view has been selected and displayed
  77. @end
  78.  
  79. @protocol NXNibNotification
  80. - awakeFromNib;
  81. @end