



#ifndef _numedit_h_ /* Mon Aug  7 09:13:30 1995 */
#define _numedit_h_



/*
 *
 *          Copyright (C) 1995, M. A. Sridhar
 *  
 *
 *     This software is Copyright M. A. Sridhar, 1995. You are free
 *     to copy, modify or distribute this software  as you see fit,
 *     and to use  it  for  any  purpose, provided   this copyright
 *     notice and the following   disclaimer are included  with all
 *     copies.
 *
 *                        DISCLAIMER
 *
 *     The author makes no warranties, either expressed or implied,
 *     with respect  to  this  software, its  quality, performance,
 *     merchantability, or fitness for any particular purpose. This
 *     software is distributed  AS IS.  The  user of this  software
 *     assumes all risks  as to its quality  and performance. In no
 *     event shall the author be liable for any direct, indirect or
 *     consequential damages, even if the  author has been  advised
 *     as to the possibility of such damages.
 *
 */



// NumberEditor is  derived  from StringEditor and intended for editing
// only numbers. So it only allows numeric keys to be typed in. In the
// current version, the NumberEditor's model is a String, the same as the
// StringEditor's. A later YACL release might change the model to be a
// CL_Integer.

#include "ui/stred.h"

class YACL_UI UI_NumberEditor: public UI_StringEditor {

public:
    UI_NumberEditor (UI_VisualObject* parent, const UI_Rectangle& shape,
                     UI_ViewID id);
    // Constructor: Create a NumberEditor with given parent, shape and
    // view id.

protected:
    virtual bool FilterChar (short& key);
    // Override the inherited method.

};

#endif /* _numedit_h_ */
