예제 #1
0
파일: runtime.c 프로젝트: 0x65/compiler
void _show(value_t p, FILE* stream) {
    if (IS_FIXNUM(p)) {
        fprintf(stream, "%ld", VALUE_TO_FIXNUM(p));
    } else if (IS_PAIR(p)) {
        pair_t pair = VALUE_TO_PAIR(p);
        fprintf(stream, "(");
        _show(pair.first, stream);
        fprintf(stream, " ");
        _show(pair.second, stream);
        fprintf(stream, ")");
    } else if (IS_CLOSURE(p)) {
        fprintf(stream, "#<closure 0x%08lx>", p);
    } else if (IS_IMMEDIATE(p)) {
        if (p == BOOL_F) {
            fprintf(stream, "#f");
        } else if (p == BOOL_T) {
            fprintf(stream, "#t");
        } else if (p == NIL) {
            fprintf(stream, "()");
        } else {
            fprintf(stream, "#<immediate 0x%08lx>", p);
        }
    } else {
        fprintf(stream, "#<unknown 0x%08lx>", p);
    }
}
예제 #2
0
void
KnobGui::show(int /*index*/)
{
    if ( !getGui() ) {
        return;
    }
    if (!_imp->customInteract) {
        _show();
    } else {
        _imp->customInteract->show();
    }

    //also show the curve from the curve editor if there's any
    KnobPtr knob = getKnob();
    if ( knob && knob->getHolder() && knob->getHolder()->getApp() ) {
        getGui()->getCurveEditor()->showCurves( shared_from_this() );
    }

    //if (_imp->isOnNewLine) {
    if (_imp->field) {
        _imp->field->show();
    }
    if (_imp->container) {
        _imp->container->refreshTabWidgetMaxHeight();
    }
    //}

    if (_imp->labelContainer) {
        _imp->labelContainer->show();
    } else if (_imp->descriptionLabel) {
        _imp->descriptionLabel->show();
    }
}
예제 #3
0
static void
_kx_show(LV2_External_UI_Widget *widget)
{
	handle_t *handle = (void *)widget - offsetof(handle_t, widget);

	_show(handle);
}
예제 #4
0
void Scene::show()
{
	//add scene view to root
	getRoot()->addChild(_view);
	//and fade in
	_view->setAlpha(0);
	_view->addTween(Actor::TweenAlpha(255), 300);

	//call virtual method (overloaded in inherited classes)
	_show();
}
예제 #5
0
/*--------------------------------------------------------*/
void AzTree::show(const AzSvFeatInfo *feat, const AzOut &out,
                  const char *header) const
{
  if (out.isNull()) return;
  AzPrint::writeln(out, header);
  if (nodes == NULL) {
	  AzPrint::writeln(out, "AzTree::show, No tree\n");
    return;
  }
  _show(feat, root_nx, 0, out);
}
예제 #6
0
void ZLOptionView::setVisible(bool visible) {
	if (visible) {
		if (!myInitialized) {
			_createItem();
			myInitialized = true;
		}
		setActive(myOption->isActive());
		_show();
	} else {
		if (myInitialized) _hide();
	}
}
예제 #7
0
파일: expose.c 프로젝트: comick/finalcm
/* We start the exposition when the user touch triangle reactangle at the top left. */
static int _handle_motion_notify(xcb_motion_notify_event_t *e) {
    if (e->root_x + e->root_y < 20 && _this.state == _IDLE && gd.win_count >= 2) {
        _show();
    } else {
        xcb_ungrab_pointer(gd.conn, XCB_TIME_CURRENT_TIME);
        e->time = XCB_CURRENT_TIME;
        xcb_send_event(gd.conn, 1, e->child, 0, (char *) e);
        xcb_grab_pointer(gd.conn, 1, gd.def_screen->root,
                XCB_EVENT_MASK_POINTER_MOTION | XCB_EVENT_MASK_BUTTON_PRESS,
                XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC, XCB_NONE, XCB_NONE, XCB_CURRENT_TIME);
        xcb_flush(gd.conn);
    }
    return 1;
}
예제 #8
0
/*--------------------------------------------------------*/
void AzTree::_show(const AzSvFeatInfo *feat,
                    int nx,
                    int depth,
                    const AzOut &out) const
{
  if (out.isNull()) return;

  const AzTreeNode *np = &nodes[nx];

  AzPrint o(out);
  o.printBegin("", ", ", "=", depth*2);
  /* [nx], (weight), depth=d, desc,border */
  o.inBrackets(nx,3);
  if (np->weight != 0) {
    o.inParen(np->weight,3);
  }
  o.printV("depth=", depth);
  if (np->fx >= 0) {
    AzBytArr s_desc;
    if (feat != NULL) {
      feat->concatDesc(np->fx, &s_desc);
    }
    else {
      s_desc.c("F");
      s_desc.cn(np->fx);
    }
    o.print(&s_desc);
    o.print(np->border_val,4,false);
  }
  o.printEnd();

  if (!np->isLeaf()) {
    _show(feat, np->le_nx, depth+1, out);
    _show(feat, np->gt_nx, depth+1, out);
  }
}
예제 #9
0
파일: menugrey.c 프로젝트: andreiw/polaris
int
set_menu_grey(MENU *m, chtype attr)
{
	/*LINTED [E_CONST_PROMOTED_UNSIGNED_LONG]*/
	if (InvalidAttr(attr)) {
		return (E_BAD_ARGUMENT);
	}
	if (m) {
		Grey(m) = attr;
		if (Posted(m)) {
			_draw(m);		/* Redraw the menu */
			_show(m);		/* Redisplay menu */
		}
	} else {
		Grey(Dfl_Menu) = attr;
	}
	return (E_OK);
}
예제 #10
0
파일: Window.cpp 프로젝트: luk2010/aproe
    void Window::show()
    {
        if(m_status == StatusNull)
		{
			// Create the Window before showing it.
			if(create()) {
				// Call this function again.
				return show();
			}
		}
		else if(m_status == StatusShown)
		{
			return;
		}
		else
		{
			// Call the implementation specific function.
			_show();
		}
    }
예제 #11
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent)
{
    flags  = windowFlags();
    setWindowFlags(flags ^ Qt::FramelessWindowHint);
    setSizePolicy(
                QSizePolicy(
                    QSizePolicy::MinimumExpanding,
                    QSizePolicy::MinimumExpanding));
    setFocusPolicy(Qt::WheelFocus);
    setFocus(Qt::MouseFocusReason);
    setContentsMargins(0, 0, 0, 5);
    setWindowTitle("CPU Frequence Utility");
    toolBar = new ToolBar(this);
    addToolBar(toolBar);
    baseLayout = NULL;
    baseWdg = NULL;
    scrolled = NULL;
    CPU_COUNT = 0;
    timerID = 0;
    initTrayIcon();
    readSettings();
    connect(toolBar->firstForAll, SIGNAL(toggled(bool)),
            this, SLOT(setFirstForAll(bool)));
    connect(toolBar->reload, SIGNAL(released()),
            this, SLOT(reloadCPUItems()));
    connect(toolBar->apply, SIGNAL(released()),
            this, SLOT(applyChanges()));
    connect(toolBar->exit, SIGNAL(released()),
            this, SLOT(close()));
    connect(toolBar->resize, SIGNAL(toggled(bool)),
            this, SLOT(resizeApp(bool)));
    if ( toolBar->getShowAtStartState() ) {
        _show();
    } else {
        timerID = startTimer(3);
    };
}
예제 #12
0
void
phoneui_backend_incoming_call_show(const int id, const int status,
				    const char *number)
{
	_show(id, status, number, CALL_INCOMING);
}
예제 #13
0
	/* 
	 * Draws a minimal wireframe version of the selection for the specified
	 * player (usually with water and brown mushrooms).
	 */
	void
	block_selection::show (player *pl)
	{
		world_selection::show (pl);
		_show (pl, this, true);
	}
예제 #14
0
	void
	block_selection::hide (player *pl)
	{
		world_selection::hide (pl);
		_show (pl, this, false);
	}
예제 #15
0
파일: expose.c 프로젝트: comick/finalcm
static int _handle_key_press(xcb_key_press_event_t *e) {
    if (_this.state == _IDLE && e->detail == _CTRL) {
        _show();
    }
}
예제 #16
0
	/* 
	 * Draws a minimal wireframe version of the selection for the specified
	 * player (usually with water and brown mushrooms).
	 */
	void
	sphere_selection::show (player *pl)
	{
		world_selection::show (pl);
		_show (pl, this, true);
	}
예제 #17
0
파일: runtime.c 프로젝트: 0x65/compiler
int main() {
    _initialize_primitives();
    _show(ENTRY_POINT(), stdout);
    printf("\n");
    return 0;
}
예제 #18
0
파일: runtime.c 프로젝트: 0x65/compiler
void _fatal_error_value(char* msg, value_t value) {
    fprintf(stderr, "%s ", msg);
    _show(value, stderr);
    fprintf(stderr, "\n");
    exit(1);
}
예제 #19
0
	void
	sphere_selection::hide (player *pl)
	{
		world_selection::hide (pl);
		_show (pl, this, false);
	}
예제 #20
0
void
phoneui_backend_outgoing_call_show(const int id, const int status,
				    const char *number)
{
	_show(id, status, number, CALL_ACTIVE);
}