|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T i
Length: 7220 (0x1c34) Types: TextFile Names: »ibvarviews.h«
└─⟦8648bda34⟧ Bits:30007244 EUUGD5_II: X11R5 └─⟦87c3ac0e0⟧ »./contrib-3/contrib-3.00« └─⟦de8ce1454⟧ └─⟦this⟧ »contrib/lib/iv/src/bin/ibuild/ibvarviews.h«
/* * Copyright (c) 1991 Stanford University * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided * that the above copyright notice appear in all copies and that both that * copyright notice and this permission notice appear in supporting * documentation, and that the name of Stanford not be used in advertising or * publicity pertaining to distribution of the software without specific, * written prior permission. Stanford makes no representations about * the suitability of this software for any purpose. It is provided "as is" * without express or implied warranty. * * STANFORD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INDIRECT OR * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ /* * Views of user interface builder-specific state variables. * $Header: /master/3.0/iv/src/bin/ibuild/RCS/ibvarviews.h,v 1.2 91/09/27 14:15:37 tang Exp $ */ #ifndef ibvarviews_h #define ibvarviews_h #include <Unidraw/stateviews.h> class ButtonState; class BooleanStateVar; class BSDialog; class IBEditor; class CanvasVar; class MatchEditor; class Message; class MonoShapeVar; class NameChooserDialog; class GraphicComp; class SubclassNameVar; class ShapeVar; class UList; class IBVarView : public StateVarView { public: virtual boolean ChangedSubject(const char*& errors); virtual void SetAffectedStates(UList*); GraphicComp* GetGraphicComp (); protected: IBVarView(StateVar*, GraphicComp* = nil); protected: GraphicComp* _icomp; }; inline GraphicComp* IBVarView::GetGraphicComp () { return _icomp; } class CanvasVarView : public IBVarView { public: CanvasVarView(CanvasVar*); protected: virtual void Init(); }; class ButtonStateVarView : public IBVarView { public: ButtonStateVarView( ButtonStateVar*, ButtonState*, GraphicComp*, IBEditor* ); virtual ~ButtonStateVarView(); virtual boolean ChangedSubject(const char*& errors); virtual void SetAffectedStates(UList*); MatchEditor* GetBSEditor(); IBEditor* GetIBEditor(); ButtonSharedName* GetBSName(); void SetNameChange(boolean); boolean GetNameChange(); protected: virtual void Init(); protected: MatchEditor* _bs, *_setting; boolean _showsetting; BSDialog* _bsdialog; IBEditor* _ibed; ButtonSharedName* _bsname; boolean _namechange; private: Interactor* Interior(ButtonState*); }; inline MatchEditor* ButtonStateVarView::GetBSEditor() { return _bs; } inline IBEditor* ButtonStateVarView::GetIBEditor() { return _ibed; } inline ButtonSharedName* ButtonStateVarView::GetBSName() { return _bsname; } inline void ButtonStateVarView::SetNameChange(boolean namechange) { _namechange = namechange; } inline boolean ButtonStateVarView::GetNameChange() { return _namechange; } class CtrlStateVarView : public ButtonStateVarView { public: CtrlStateVarView( ButtonStateVar*, ButtonState*, GraphicComp*, IBEditor* ); private: Interactor* Interior(ButtonState*); }; class InstanceNameVarView : public IBVarView { public: InstanceNameVarView( InstanceNameVar*, ButtonState*, GraphicComp*, const char* = "Instance Name: " ); virtual ~InstanceNameVarView(); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); protected: char* _msg; MatchEditor* _name; private: Interactor* Interior(ButtonState*); }; class NameChooserView : public IBVarView { public: NameChooserView( IBNameVar*, ButtonState*, IBEditor*, const char*, const char* ); virtual ~NameChooserView(); void Append(const char*); void Accept(); protected: NameChooserDialog* _chooser; IBEditor* _ibed; protected: virtual boolean ChangedSubject(const char*& errors); virtual void Init(); private: Interactor* Interior(ButtonState*); private: char* _msg; MatchEditor* _name; }; class MemberNameVarView : public IBVarView { public: MemberNameVarView( MemberNameVar*, ButtonState*, GraphicComp*, const char* = "Member Name: " ); virtual ~MemberNameVarView(); virtual boolean ChangedSubject(const char*& errors); virtual void SetAffectedStates(UList*); protected: virtual void Init(); protected: MatchEditor* _name; ButtonState* _export; private: Interactor* Interior(ButtonState*); private: char* _msg; }; class TrackNameVarView : public IBVarView { public: TrackNameVarView(TrackNameVar*, ButtonState*, GraphicComp*); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); private: Interactor* Interior(ButtonState*); private: MatchEditor* _name; }; class ShapeVarView : public IBVarView { public: ShapeVarView(ShapeVar*, ButtonState* = nil); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); virtual Interactor* Interior(ButtonState*); virtual Interactor* Interior( Interactor*, Interactor*, Interactor*, Interactor*, Interactor*, Interactor* ); virtual void GetMessages(Message*&, Message*&, Message*&); protected: MatchEditor* _width, *_height; MatchEditor* _hshrink, *_vshrink; MatchEditor* _hstretch, *_vstretch; }; class MarginVarView : public ShapeVarView { public: MarginVarView(ShapeVar*, ButtonState*); protected: virtual void GetMessages(Message*&, Message*&, Message*&); }; class RelatedVarView : public IBVarView { public: RelatedVarView( MemberNameVar*, ButtonState*, GraphicComp*, const char* = "Member Adjusted: " ); virtual ~RelatedVarView(); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); private: Interactor* Interior(ButtonState*); private: MatchEditor* _name; char* _msg; }; class SubclassNameVarView : public IBVarView { public: SubclassNameVarView(SubclassNameVar*, ButtonState*, GraphicComp*); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); protected: MatchEditor* _subclass; private: Interactor* Interior(ButtonState*); boolean _resolve; }; class BooleanStateVarView : public IBVarView { public: BooleanStateVarView(BooleanStateVar*, const char*); virtual ~BooleanStateVarView(); virtual boolean ChangedSubject(const char*& errors); private: Interactor* Interior(); private: ButtonState* _bstate; char* _message; }; class FBrowserVarView : public IBVarView { public: FBrowserVarView(FBrowserVar*, ButtonState*); virtual ~FBrowserVarView(); virtual boolean ChangedSubject(const char*& errors); protected: virtual void Init(); private: Interactor* Interior(ButtonState*); private: MatchEditor* _dir; MatchEditor* _textfilter; }; #endif