Logo Search packages:      
Sourcecode: ecawave version File versions  Download package

qeobjectmap.h

#ifndef INCLUDED_QEOBJECTINPUT_H
#define INCLUDED_QEOBJECTINPUT_H

#include "qeinput.h"

class QLabel;
class QWidget;
class ECA_OBJECT;
class ECA_OBJECT_MAP;

/**
 * Object map input widget
 */
00014 class QEObjectMap : public QEInput {
  Q_OBJECT
 public:

  /**
   * Class constructor
   */
  QEObjectMap (const ECA_OBJECT_MAP* omap, QWidget *parent = 0, const char *name = 0);

  ~QEObjectMap(void);

  /**
   * Returns the currently selected object
   */
00028   const ECA_OBJECT* result(void) const { return(object_rep); }

  virtual bool class_invariant(void) const { return(omap_rep != 0); }

public slots:

  virtual void update_results(void);

private slots:

  /**
   * Update object matching 'index'
   *
   * require:
   *  index >= 0
   * ensure:
   *  object_rep != 0
   */
  void update_object(int index);

 private:

  const ECA_OBJECT_MAP* omap_rep;
  const ECA_OBJECT* object_rep;
  bool empty_rep;

  /**
   * Creates and initializes widget layout
   */
  void init_layout(void);
};

#endif

Generated by  Doxygen 1.6.0   Back to index