This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
neofx-zoomedit/Tool.h

36 lines
707 B
C
Raw Normal View History

2007-11-30 15:07:00 +00:00
#ifndef TOOL_H_
#define TOOL_H_
2007-12-14 22:03:00 +00:00
#include "Object.h"
#include "EventHandler.h"
#include "Sidebar.h"
#include "Renderer.h"
2007-12-04 21:35:01 +00:00
#include <gtk/gtk.h>
2007-12-14 22:03:00 +00:00
class Tool : public Object {
2007-11-30 15:07:00 +00:00
public:
2007-12-04 21:35:01 +00:00
virtual ~Tool() {}
virtual void activate() {};
virtual void deactivate() {};
2007-12-04 21:35:01 +00:00
virtual const char* getName() const {
2007-12-14 22:03:00 +00:00
return getType();
}
virtual GtkWidget* getImage() = 0;
virtual bool isSensitive() const {
return true;
}
virtual bool hoverFilter(const LevelObject &object) const = 0;
virtual EventHandler* getEventHandler() = 0;
virtual Sidebar* getSidebar() = 0;
virtual Renderer* getRenderer() {return NULL;}
2007-11-30 15:07:00 +00:00
};
#endif /*TOOL_H_*/