/* $Id: RecipeView.h,v 1.2 2001/12/31 00:28:58 rjesse Exp $
 *
 * Copyright (c) 2000, Roland Jesse
 * All rights reserved.
 *
 * For license and copyright information see the file COPYRIGHT or 
 * <http://www.opensource.org/licenses/bsd-license.html>.
 */
 
#ifndef RECIPE_VIEW_HPP
#define RECIPE_VIEW_HPP

#include <qextmdichildview.h>

class QLabel;
class QMultiLineEdit;
class QString;
class Recipe;
class RecipeModel;

/**
 * FIXME: write doc.
 */
class RecipeView : public QextMdiChildView {
      Q_OBJECT

   public:
      RecipeView( QWidget* parent, QString title, RecipeModel* model);
      ~RecipeView();

   public slots:
      void slotUpdate();

   private:
      void clearDisplay();

      RecipeModel*	m_model;
      Recipe* 		m_current;
      QLabel*		m_currentName;
      QLabel*		m_currentCategories;
      QLabel*		m_currentYields;
      QMultiLineEdit*	m_currentIngredients;
      QMultiLineEdit*	m_currentDescription;
};
#endif // RECIPE_VIEW_HPP
