summaryrefslogtreecommitdiffstats
path: root/SidebarAdd.cpp
diff options
context:
space:
mode:
authorneoraider <devnull@localhost>2007-10-18 21:18:01 +0200
committerneoraider <devnull@localhost>2007-10-18 21:18:01 +0200
commit2bc9bb15dcc9691f6946eaa7a03370814bad0b8e (patch)
treea0b45181788dd17bd580374fd4a3fdc04ae8bd17 /SidebarAdd.cpp
parentb660b965bcb679e53cc89e7b8903190d2d162ff6 (diff)
downloadzoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.tar
zoomedit-2bc9bb15dcc9691f6946eaa7a03370814bad0b8e.zip
zoomedit: edit.c in den EditManager integriert
Diffstat (limited to 'SidebarAdd.cpp')
-rw-r--r--SidebarAdd.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/SidebarAdd.cpp b/SidebarAdd.cpp
index 78509e0..57de3ee 100644
--- a/SidebarAdd.cpp
+++ b/SidebarAdd.cpp
@@ -1,5 +1,4 @@
#include "SidebarAdd.h"
-#include "edit.h"
void SidebarAdd::buttonClicked(GtkButton *button, SidebarAdd *sidebar) {
@@ -33,10 +32,10 @@ GtkWidget* SidebarAdd::getWidget() {
}
void SidebarAdd::update() {
- if(!getActiveRoom())
+ if(!editor->getActiveRoom())
return;
- if(getActiveRoom()->size() > 2 && isPolygonOk(getActiveRoom()))
+ if(editor->getActiveRoom()->size() > 2 && editor->polygonOk(*editor->getActiveRoom()))
gtk_widget_set_sensitive(buttonAdd, TRUE);
else
gtk_widget_set_sensitive(buttonAdd, FALSE);