AeBinView.h 2.48 KB

//////////////////////////////////////////////////////////////
//
// Header file for View
//
//    This file is generated by RapidApp 1.1
//
//    This class is a ViewKit user interface "component".
//    For more information on how components are used, see the
//    "ViewKit Programmers Manual", and the RapidApp
//    Users Guide.
//////////////////////////////////////////////////////////////
#ifndef __AeBinView__
#define __AeBinView__

#include <Vk/VkComponent.h>
#include <Vk/VkTabPanel.h>
#include <Vk/VkWindow.h>
#include <Vk/VkMenuBar.h>
#include <Vk/VkSubMenu.h>


class AeBinEditor;
class AeAsset;


class AeBinView : public VkComponent
{
  public:
                        AeBinView(const char *, AeBinEditor *, Widget);
    virtual 		~AeBinView();

    const char *  	className();

    virtual void 	setParent(VkWindow  *);
    virtual void	setTitle(char *);

    void		SetEditor (AeBinEditor * editor) { fEditor = editor; }
    AeBinEditor *	GetEditor (void) { return fEditor; }

    void		TabCreate (void);
    void		TabSetLabels (void);
    void		TabSelectName (String);

    void		ListCreate (void);
    Widget		ListGetWidget (void) { return fList; }
    void		ListUpdateUI (void);
    void		ListUpdateUIWidths (void);
    void		ListUpdateCell (int row, int col, String);
    void		ListAppendRows (int numRows);
    void		ListSelectRow (int row, Boolean);
    void		ListRedraw (void);
    Boolean		ListAssetInView (AeAsset *);
    void		ListGetResources (void);
    void		ListGetDefaultResources (void);
    Pixel		ListGetSelectForeground (void) { return fListSelectForeground; }
    Pixel		ListGetSelectBackground (void) { return fListSelectBackground; }
    Pixel		ListGetOnlineColor (void) { return fListOnlineColor; }

    void		PopupCreate (void);
    VkPopupMenu *	PopupGet (void) { return fPopup; }
    void		PopupShow (XEvent *);
    void		PopupUnmap (void);
    void		PopupSetFont (void);

  private:

    void 		TabSelectCallback (VkCallbackObject * object, void * clientData, void * callData);

    static void		ListCallback (Widget, XtPointer, XtPointer);

    static void		PopupUnmapCallback (Widget, XtPointer, XtPointer);

    Widget		fView;
    VkWindow *	       	fParent;
    AeBinEditor *	fEditor;

    Widget  		fList;
    XmFontList		fListFont;
    Pixel		fListSelectForeground;
    Pixel		fListSelectBackground;
    Pixel		fListOnlineColor;

    class VkTabPanel *	fTabpanel;
    class VkPopupMenu *	fPopup;


    // Array of default resources
    static String      _defaultResources[];
};
#endif