summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/group
diff options
context:
space:
mode:
authormarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 14:04:49 +0000
committermarex <marex@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-14 14:04:49 +0000
commitbdc23adb6e1a186192ed92b88807acce00a5e85d (patch)
tree9d87558d024dddf11b6dcd2889af404351b93ee3 /beryl-plugins/src/group
parent86cb3233bdae6ac5e97b581a98e5ccf90111c930 (diff)
downloadmarex-dev-bdc23adb6e1a186192ed92b88807acce00a5e85d.tar.gz
marex-dev-bdc23adb6e1a186192ed92b88807acce00a5e85d.tar.bz2
group: Removed debug code, not needed anymore
git-svn-id: file:///beryl/trunk@4056 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/group')
-rw-r--r--beryl-plugins/src/group/debug.c205
1 files changed, 0 insertions, 205 deletions
diff --git a/beryl-plugins/src/group/debug.c b/beryl-plugins/src/group/debug.c
deleted file mode 100644
index c068aa0..0000000
--- a/beryl-plugins/src/group/debug.c
+++ /dev/null
@@ -1,205 +0,0 @@
-#include "group.h"
-
-/**
- *
- * Beryl group plugin
- *
- * debug.c
- *
- * Copyright : (C) 2006 by Patrick Niklaus, Roi Cohen, Danny Baumann
- * Authors: Patrick Niklaus <patrick.niklaus@googlemail.com>
- * Roi Cohen <roico@beryl-project.org>
- * Danny Baumann <maniac@beryl-project.org>
- *
- *
- * 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.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- **/
-
-#define DEBUG_LEVEL DEBUG_ALL
-
-/*
- * groupDebugPrintMsg
- *
- */
-void groupDebugPrintMsg(char* msg, DebugLevel level)
-{
- if (level >= DEBUG_LEVEL) {
- printf("DEBUG: %s\n", msg);
- }
-}
-
-/*
- * groupDebugPrintGroup
- *
- */
-void groupDebugPrintGroup(GroupSelection *group)
-{
- if (DEBUG_LEVEL == DEBUG_OFF)
- return;
-
- printf("DEBUG: Debugging group (%p)...\n", group);
-
- if (DEBUG_LEVEL >= DEBUG_IMPORTANT ) {
- printf("topTab => %p\n", group->topTab);
- printf("prevTopTab => %p\n", group->prevTopTab);
- printf("nextTopTab => %p\n", group->nextTopTab);
- printf("tabBar => %p\n", group->tabBar);
- printf("changeAnimationTime => %i\n", group->changeAnimationTime);
- printf("changeAnimationDirection => %i\n", group->changeAnimationDirection);
- printf("changeState => %i\n", group->changeState);
- printf("tabbingState => %i\n", group->tabbingState);
- printf("changeTab => %s\n", (group->changeTab ? "TRUE" : "FALSE"));
- printf("doTabbing => %s\n", (group->doTabbing ? "TRUE" : "FALSE"));
- printf("ungroupState => %d\n", group->ungroupState);
- }
-
- if (DEBUG_LEVEL >= DEBUG_INFO) {
- printf("oldTopTabCenterX => %i\n", group->oldTopTabCenterX);
- printf("oldTopTabCenterY => %i\n", group->oldTopTabCenterY);
- printf("inputPrevention.id => %i\n", (int)group->inputPrevention);
- }
-
- if (DEBUG_LEVEL >= DEBUG_ALL) {
- printf("prev => %p\n", group->prev);
- printf("next => %p\n", group->next);
- printf("nWins => %i\n", group->nWins);
- printf("windows => %p\n", group->windows);
- printf("Color: Red => %i Green => %i Blue => %i Alpha => %i\n",
- group->color[0], group->color[1], group->color[2], group->color[3]);
- }
-}
-
-/*
- * groupDebugPrintScreen
- *
- */
-void groupDebugPrintScreen(GroupScreen *gs)
-{
- if (DEBUG_LEVEL == DEBUG_OFF)
- return;
-
- printf("DEBUG: Debugging screen (%p)...\n", gs);
-
- if (DEBUG_LEVEL >= DEBUG_IMPORTANT ) {
- printf("queued => %s\n", (gs->queued ? "TRUE" : "FALSE"));
- printf("draggedSlot => %p\n", gs->draggedSlot);
- //printf("draggedSlotTabBar => %p\n", gs->draggedSlotTabBar);
- }
-
- if (DEBUG_LEVEL >= DEBUG_INFO) {
- printf("prevX => %i\n", gs->prevX);
- printf("prevY => %i\n", gs->prevY);
- printf("grabIndex => %i\n", gs->grabIndex);
- printf("grabState => %i\n", gs->grabState);
- }
-
- if (DEBUG_LEVEL >= DEBUG_ALL) {
- printf("glowType => %i\n", gs->glowType);
- printf("glowTexture => 0x%i\n", gs->glowTexture.name);
- printf("x1 => %i y1 => %i\n", gs->x1, gs->y1);
- printf("x2 => %i y2 => %i\n", gs->x2, gs->y2);
- }
-}
-
-/*
- * groupDebugPrintWindow
- *
- */
-void groupDebugPrintWindow(GroupWindow *gw)
-{
- if (DEBUG_LEVEL == DEBUG_OFF)
- return;
-
- printf("DEBUG: Debugging window (%p)...\n", gw);
-
- if (DEBUG_LEVEL >= DEBUG_IMPORTANT ) {
- printf("group => %p\n", gw->group);
- printf("slot => %p\n", gw->slot);
- printf("animateState => %i\n", gw->animateState);
- printf("mainTabOffset => (%i, %i)\n", gw->mainTabOffset.x, gw->mainTabOffset.y);
- printf("destination => (%i, %i)\n", gw->destination.x, gw->destination.y);
- printf("orgPos => (%i, %i)\n", gw->orgPos.x, gw->orgPos.y);
- printf("tx => %f ty => %f\n", gw->ty, gw->ty);
- printf("xVelocity => %f yVelocity => %f\n", gw->xVelocity, gw->yVelocity);
- }
-
- if (DEBUG_LEVEL >= DEBUG_INFO) {
- printf("needsPosSync => %s\n", (gw->needsPosSync ? "TRUE" : "FALSE"));
- }
-
- if (DEBUG_LEVEL >= DEBUG_ALL) {
- printf("inSelection => %s\n", (gw->inSelection ? "TRUE" : "FALSE"));
- }
-}
-
-/*
- * groupDebugPrintTabBar
- *
- */
-void groupDebugPrintTabBar(GroupTabBar *bar)
-{
- if (DEBUG_LEVEL == DEBUG_OFF)
- return;
-
- printf("DEBUG: Debugging tab bar (%p)...\n", bar);
-
- if (DEBUG_LEVEL >= DEBUG_IMPORTANT ) {
- printf("hoveredSlot => %p\n", bar->hoveredSlot);
- printf("textSlot => %p\n", bar->textSlot);
- //printf("mouseOver => %s\n", (bar->mouseOver ? "TRUE" : "FALSE"));
- printf("state => %i\n", bar->state);
- printf("timeoutHandle => %i\n", bar->timeoutHandle);
- printf("animationTime => %i\n", bar->animationTime);
- printf("region => (%i, %i) - (%i, %i)\n",
- bar->region->extents.x1, bar->region->extents.y1,
- bar->region->extents.x2, bar->region->extents.y2);
- }
-
- if (DEBUG_LEVEL >= DEBUG_INFO) {
- printf("slots => %p\n", bar->slots);
- printf("revSlots => %p\n", bar->revSlots);
- printf("nSlots => %i\n", bar->nSlots);
- }
-
- if (DEBUG_LEVEL >= DEBUG_ALL) {
- printf("textLayer => %p\n", bar->textLayer);
- }
-}
-
-/*
- * groupDebugPrintTabBarSlot
- *
- */
-void groupDebugPrintTabBarSlot(GroupTabBarSlot *slot)
-{
- if (DEBUG_LEVEL == DEBUG_OFF)
- return;
-
- printf("DEBUG: Debugging slot (%p)...\n", slot);
-
- if (DEBUG_LEVEL >= DEBUG_IMPORTANT ) {
- printf("prev => %p\n", slot->prev);
- printf("next => %p\n", slot->next);
- printf("region => (%i, %i) - (%i, %i)\n",
- slot->region->extents.x1, slot->region->extents.y1,
- slot->region->extents.x2, slot->region->extents.y2);
- printf("window => %p\n", slot->window);
- }
-
- if (DEBUG_LEVEL >= DEBUG_INFO) {
- printf("name => %s\n", slot->name);
- }
-
- if (DEBUG_LEVEL >= DEBUG_ALL) {
- // empty
- }
-}