This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mocks source file | |
Generated with Narmock v0.2.15 (https://github.com/vberlier/narmock) | |
Do not edit manually | |
*/ | |
#include <errno.h> | |
#include <stddef.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b = bytes.fromhex("02c5f205f48bf0954a0c0e631fee98d4bb1b0199af485adf00000004111011121314151617226062636465666768") | |
print(b.hex()) | |
for i, B in enumerate(b): | |
print("{:02d} 0x{:02x}".format(i, B)) | |
print(b) | |
dtype = b[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
protected void beforeMain(Form f) { | |
findExamTab(f).setScrollableY(true); | |
findExamTab(f).addPullToRefresh(new Runnable() { | |
@Override | |
public void run() { | |
resMgr.update(); | |
model.addItem(new CourseResultImpl("Hest", "", "12", "B", "5")); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Form f = showForm("ExamDetails", null); | |
f.setLayout(new BorderLayout()); | |
DefaultListModel<StringPair> model = new DefaultListModel<StringPair>(exam.getDetails().getDetails()); | |
List lst = new List(model); | |
lst.setRenderer(new StringPairCellRenderer()); | |
f.addComponent(BorderLayout.CENTER, lst); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void attachTriggerHandler(TriggerType type, TriggerHandler handler) { | |
if (type == TriggerType.NEXT) | |
gameFrame.attachTriggerHandler(type, handler); | |
eventController.addTriggerHandler(type, handler); | |
} | |
@Override | |
public void removeTriggerHandler(TriggerType type, TriggerHandler handler) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package qgame.animator; | |
import qgame.frame.style.StyleSheet; | |
import qgame.plotpanel.LayerUI; | |
import qgame.util.ImageUtils; | |
import javax.swing.*; | |
import javax.swing.border.LineBorder; | |
import java.awt.*; | |
import java.awt.event.MouseEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void createGamePanel() { | |
if(level.getAnimation()!=null) { | |
gameFrame = new Animator(level,root); | |
gameFrame.attachTriggerHandler(TriggerType.ANIMATION_EXIT, new TriggerHandler() { | |
@Override | |
public void trigger(TriggerType type, Object triggerObject) { | |
mainPanel.remove(gameFrame.getPanel()); | |
gameFrame = new GameFrameImpl(level, root); | |
addGamePanel(); |