Пример #1
0
void
RSSourceStatusButton::HotSpotResult(
	SInt16	/* inHotSpot */)
{

	// Validate pointers.
	
	ValidateThis_();
	
	// If we have a source-control setting, make file MRO.

	if (mSettings != nil) {
		if (mSettings->IsReadOnly()) {
			mSettings->ModifyReadOnly();
			StatusBlink();
		}
	}
}
Пример #2
0
void
RSSourceStatusButton::ListenToMessage(
	MessageT	inMessage,
	void*		/* ioParam */)
{

	// Validate pointers.

	ValidateThis_();
	
	// Listen for SCC messages.

	switch (inMessage) {

		case msg_SCC_Changed:
			Refresh();
			break;
			
		case msg_ReadOnlyViolation:
			if (IsActive())
				StatusBlink();
			break;
	}
}
Пример #3
0
void forceReset() {
  StatusBlink(3);
  wdt_enable(WDTO_15MS);
  for(;;)
    ;
}