All pastes #87423 Raw Edit

Stuff

public text v1 · immutable
·published 2006-07-13 23:10 UTC
rendered paste body
/***************************************************************************
                          karma_guiobjects.h  -  description
                             -------------------
    begin                : Do Okt 21 2004
    copyright            : (C) 2004 by Ch. Klippel
    email                :
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef KARMA_GUIOBJECTS_H
#define KARMA_GUIOBJECTS_H

#include "icons/togglebutton.xpm"
#include "../../karma_core.h"

#include "pnpd.hpp"

/**
  *@author Ch. Klippel
  */


static const char *NAME = "PNPD Proxy";
static const char *SHORTNAME = "pnpd";
static const char *CLASSNAMES = "cl_pnpd";

static const classInfo CINFOS[] = {
  { "cl_pnpd",
    "PNPD Class",
    "This instantiates a PNPD Class<br>",
    "empty inlet",
    "empty outlet",
    togglebutton
  }
};

class karma_pnpd : public KarmaLibrary
{
public:
	karma_pnpd() { initLib(); };
	~karma_pnpd() { deinitLib(); };
  virtual QString get_name() const { return QString(NAME); }
  virtual QString get_shortname() const { return QString(SHORTNAME); }
  virtual QString get_classnames() const { return QString(CLASSNAMES); }
  virtual const classInfo *get_classinfo(const char *name) const { 
  int numIcons = sizeof(CINFOS)/sizeof(classInfo); 
  QString sname = name; 
  for(int i = 0; i < numIcons; i++) 
    if(sname == CINFOS[i].className) 
      return(&CINFOS[i]); 
  return 0; 
  }
  virtual KarmaClass* newClass(KarmaObject *o);
  virtual void initLib();
  virtual void deinitLib();
};

#endif