// JLH = James L. Hammons <jlhamm@acm.org>
//
// Who When What
-// --- ---------- -------------------------------------------------------------
+// --- ---------- -----------------------------------------------------------
// JLH 08/28/2008 Created this file
// JLH 03/11/2009 Converted from wxWidgets to Qt
//
#define DEBUGTP // Toolpalette debugging...
#include "toolwindow.h"
-#include "types.h"
ToolWindow::ToolWindow(void): QWidget(NULL, Qt::Window | Qt::FramelessWindowHint),
//printf("pt = %u, %u\n", pt.x(), pt.y());
// Divide mouse coords by the bitmap stamp size to find which one is pointed to
- uint32 x = (uint32)pt.x() / sizeStamp.x(), y = (uint32)pt.y() / sizeStamp.y();
+ uint32_t x = (uint32_t)pt.x() / sizeStamp.x(), y = (uint32_t)pt.y() / sizeStamp.y();
// Preset failure into newTool, in case no new tool is selected
ToolType newTool = TOOLNone;
newTool = (ToolType)((y * 4) + x);
// We don't have 11 yet, so fix this if the user selected the blank space
- if (newTool > 9)
- newTool = TOOLNone;
+//now we do!
+// if (newTool > 10)
+// newTool = TOOLNone;
return newTool;
}
+