/************************************************************************/
/* Copyright 1998 MBARI							*/
/************************************************************************/
#ifndef _LABELEDTEXT_H
#define _LABELEDTEXT_H
static char LabeledText_h_id[] = "$Header: /u/oreilly/rov/tmacs/RCS/LabeledText.h,v 1.3 1998/12/18 21:07:21 oreilly Exp $";

/*
$Log: LabeledText.h,v $
Revision 1.3  1998/12/18 21:07:21  oreilly
Added documentation

Revision 1.2  1997/03/20 12:34:07  oreilly
*** empty log message ***

 * Revision 1.1  96/07/22  14:05:35  14:05:35  oreilly (Thomas C. O'Reilly)
 * Initial revision
 * 
*/

#include <Xm/RowColumn.h>
#include <Xm/Label.h>
#include <Xm/TextF.h>
#include "Vk/VkComponent.h"

/*
CLASS 
LabeledText

DESCRIPTION
Label and display text string; optionally give capability to
edit text string.

AUTHOR
Tom O'Reilly
*/
class LabeledText : public VkComponent
{
  private:
  Widget _text;
  Widget _label;
  
  public:
  LabeledText(Widget parent, char *name, int orientation, 
	      char *labelName = "label");

  const char *className() 
  {
    return "LabeledText";
  }
  
  ///////////////////////////////////////////////////////////////////
  // Set text string
  void set(char *); 
 
  ///////////////////////////////////////////////////////////////////
  // Get text string
  const char *get(void);

  ///////////////////////////////////////////////////////////////////
  // Set/unset edit capability on text string
  void setEditable(Boolean editable);
};



#endif
