// This may look like C code, but it's really -*- C++ -*-
/*
 * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
 *
 * See the LICENSE file for terms of use.
 */
#ifndef EXT_CHECKBOX_H_
#define EXT_CHECKBOX_H_

#include <Wt/Ext/AbstractToggleButton>

namespace Wt {
  namespace Ext {

/*! \class CheckBox Wt/Ext/CheckBox Wt/Ext/CheckBox
 *  \brief A user control that represents a check box.
 *
 * The API is identical to the API of WCheckBox.
 *
 * \ingroup ext
 */
class WT_EXT_API CheckBox : public AbstractToggleButton
{
public:
  /*! \brief Create a checkbox with empty label.
   */
  CheckBox(WContainerWidget *parent = 0);

  /*! \brief Create a checkbox with given label.
   */
  CheckBox(const WString& text, WContainerWidget *parent = 0);

private:
  std::string getExtName() const;
};

  }
}

#endif // EXT_CHECKBOX_H_
