Aktualni verze.

This commit is contained in:
Tomas Suchan 2012-09-15 14:12:45 +02:00 committed by Petr Baudis
parent ec9deb970d
commit fa66e43aa2
5 changed files with 843 additions and 213 deletions

View file

@ -1,14 +1,14 @@
# Gambas Project File 2.0 # Gambas Project File 2.0
# Compiled with Gambas 2.21.0 # Compiled with Gambas 2.23.1
Title=RatBox Title=RatBox
Startup=FMain Startup=FMain
Version=0.0.1 Version=0.0.9
Library=gb.gui Library=gb.gui
Library=gb.form Library=gb.form
Library=gb.net Library=gb.net
TabSize=2 TabSize=2
ExecPath=/home/tomsuch/Desktop/RatBox.gambas
SourcePath=/home/tomsuch/Desktop SourcePath=/home/tomsuch/Desktop
Maintainer=tomsuch Maintainer=tomsuch
Address=tomsuch@IceSpirit Address=tomsuch@IceSpirit
Url=http://www.endoftheinternet.com/
License=General Public Licence License=General Public Licence

View file

@ -16,10 +16,10 @@ SearchString=True
[OpenFile] [OpenFile]
File[1]="FMain.form" File[1]="FMain.form"
Active=1 File[2]="FMain.class:1393.12"
File[2]="FMain.class:1207.0" Active=2
File[3]="Form1.form" File[3]="Form1.form"
File[4]="Form1.class:24.13" File[4]="Form1.class:0.2"
Count=4 Count=4
[Watches] [Watches]

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
# Gambas Form File 2.0 # Gambas Form File 2.0
{ Form Form { Form Form
Move(0,0,1246,770) Move(0,0,1400,798)
#(Scaled) = False #(Scaled) = False
Text = ("") Text = ("")
Border = Window.None Border = Window.None
@ -16,8 +16,8 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ TimerSystime #Timer { TimerSystime #Timer
#X = 448 #X = 644
#Y = 252 #Y = 315
Enabled = True Enabled = True
Delay = 250 Delay = 250
} }
@ -58,7 +58,7 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPreFrm3 Label { LabelPreFrm3 Label
Move(595,252,28,63) Move(602,231,28,63)
Text = (" |\n |\n |\n") Text = (" |\n |\n |\n")
Alignment = Align.Center Alignment = Align.Center
} }
@ -76,7 +76,7 @@
Text = ("sec") Text = ("sec")
} }
{ LabelPreFrm5 Label { LabelPreFrm5 Label
Move(427,322,189,14) Move(441,301,189,14)
Text = ("<-----------------------------------------\n") Text = ("<-----------------------------------------\n")
Alignment = Align.Center Alignment = Align.Center
} }
@ -91,7 +91,7 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPre5 Label { LabelPre5 Label
Move(357,315,63,35) Move(371,294,63,35)
ToolTip = ("Nastaveni pitek do vychozich pozic") ToolTip = ("Nastaveni pitek do vychozich pozic")
Text = ("RESET") Text = ("RESET")
Alignment = Align.Center Alignment = Align.Center
@ -186,8 +186,8 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ ExperimentTxtTime0 TextBox { ExperimentTxtTime0 TextBox
Move(224,448,84,21) Move(217,448,63,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label8 Label { Label8 Label
@ -205,8 +205,8 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ ExperimentTxtTime1 TextBox { ExperimentTxtTime1 TextBox
Move(476,448,84,21) Move(476,448,63,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label10 Label { Label10 Label
@ -228,7 +228,7 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPre6 Label { LabelPre6 Label
Move(609,441,77,35) Move(602,441,77,35)
ToolTip = ("Otevreni dvirek") ToolTip = ("Otevreni dvirek")
Text = ("OTEVRENI\nDVERI") Text = ("OTEVRENI\nDVERI")
Alignment = Align.Center Alignment = Align.Center
@ -243,22 +243,22 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ Label14 Label { Label14 Label
Move(805,245,98,21) Move(798,245,112,21)
Text = ("Cas na reakci:") Text = ("Cas na reakci:")
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPre7 Label { LabelPre7 Label
Move(742,427,63,63) Move(714,427,63,63)
ToolTip = ("Ceka se az potkan zacumakuje") ToolTip = ("Ceka se az potkan zacumakuje")
Text = ("CEKANI\nAKCE\nPOTKAN") Text = ("CEKANI\nAKCE\nPOTKAN")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label15 Label { Label15 Label
Move(700,448,28,28) Move(679,448,28,28)
Text = ("--->") Text = ("--->")
} }
{ Label16 Label { Label16 Label
Move(819,448,196,21) Move(882,448,133,21)
Text = ("-----------------------------------------------") Text = ("-----------------------------------------------")
} }
{ LabelPreFrm11 Label { LabelPreFrm11 Label
@ -292,7 +292,7 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ Label20 Label { Label20 Label
Move(609,651,70,21) Move(511,651,70,21)
Text = ("RESET") Text = ("RESET")
Alignment = Align.Center Alignment = Align.Center
} }
@ -302,8 +302,8 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ Label21 Label { Label21 Label
Move(679,651,329,14) Move(749,651,259,14)
Text = ("--------------------------------------------------------------------------------") Text = ("-------------------------------------------------------------------------------------------------")
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPreFrm15 Label { LabelPreFrm15 Label
@ -312,18 +312,13 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ Label22 Label { Label22 Label
Move(91,651,511,21) Move(161,651,336,21)
Text = ("-----------------------------------------------------------------------------------------------------------------------------") Text = ("----------------------------------------------------------------------------------------------------------")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExperimentTxtTime2 TextBox { ExperimentTxtTime2 TextBox
Move(49,602,98,21) Move(42,602,84,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center
}
{ LabelPreFrm16 Label
Move(98,644,14,21)
Text = (" |\n")
Alignment = Align.Center Alignment = Align.Center
} }
{ LabelPre8 Label { LabelPre8 Label
@ -338,19 +333,19 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ ExperimentTxtTime3 TextBox { ExperimentTxtTime3 TextBox
Move(840,595,91,21) Move(840,595,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label23 Label { Label23 Label
Move(112,371,35,35) Move(126,378,63,49)
Font = Font["Bold"] Font = Font["Bold,+2"]
Text = ("0") Text = ("0")
Alignment = Align.Center Alignment = Align.Center
} }
{ TmrCasovac #Timer { TmrCasovac #Timer
#X = 399 #X = 602
#Y = 252 #Y = 315
} }
{ TxtInfoTimeout TextBox { TxtInfoTimeout TextBox
Move(532,7,70,21) Move(532,7,70,21)
@ -370,8 +365,8 @@
Text = ("Pripoj / Odpoj") Text = ("Pripoj / Odpoj")
} }
{ SerialPort1 #SerialPort { SerialPort1 #SerialPort
#X = 350 #X = 518
#Y = 252 #Y = 315
} }
{ Separator1 Separator { Separator1 Separator
Move(14,35,1218,7) Move(14,35,1218,7)
@ -408,110 +403,110 @@
Text = ("CheckBox7") Text = ("CheckBox7")
} }
{ Label25 Label { Label25 Label
Move(161,588,105,56) Move(42,630,105,56)
Text = ("PAUZA\nMEZI\nZOBRAZENIMI") Text = ("PAUZA\nMEZI\nZOBRAZENIMI")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label26 Label { Label26 Label
Move(1057,441,35,35) Move(1043,462,35,21)
Text = ("1") Text = ("1")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label27 Label { Label27 Label
Move(1057,483,35,35) Move(1043,497,35,21)
Text = ("2") Text = ("2")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label28 Label { Label28 Label
Move(1057,525,35,35) Move(1043,532,35,21)
Text = ("3") Text = ("3")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label29 Label { Label29 Label
Move(1057,567,35,35) Move(1043,567,35,21)
Text = ("4") Text = ("4")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label30 Label { Label30 Label
Move(1057,609,35,35) Move(1043,602,35,21)
Text = ("5") Text = ("5")
Alignment = Align.Center Alignment = Align.Center
} }
{ Label31 Label { Label31 Label
Move(1057,651,35,35) Move(1043,637,35,21)
Text = ("6") Text = ("6")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS1Time TextBox { ExpTxtS1Time TextBox
Move(1099,441,70,28) Move(1078,462,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS2Time TextBox { ExpTxtS2Time TextBox
Move(1099,483,70,28) Move(1078,497,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS3Time TextBox { ExpTxtS3Time TextBox
Move(1099,525,70,28) Move(1078,532,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS4Time TextBox { ExpTxtS4Time TextBox
Move(1099,567,70,28) Move(1078,567,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS5Time TextBox { ExpTxtS5Time TextBox
Move(1099,609,70,28) Move(1078,602,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpTxtS6Time TextBox { ExpTxtS6Time TextBox
Move(1099,651,70,28) Move(1078,637,70,21)
Text = ("10") Text = ("10000")
Alignment = Align.Center Alignment = Align.Center
} }
{ ExpChkSTime CheckBox { ExpChkSTime CheckBox
Move(1176,441,56,28) Move(1190,462,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ExpChkEnableTiming CheckBox { ExpChkEnableTiming CheckBox
Move(1064,406,154,28) Move(1085,427,147,21)
Text = ("Zapnout Casovani") Text = ("Zapnout Casovani")
} }
{ ExpChkSTime2 CheckBox { ExpChkSTime2 CheckBox
Move(1176,483,56,28) Move(1190,497,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ExpChkSTime3 CheckBox { ExpChkSTime3 CheckBox
Move(1176,525,56,28) Move(1190,532,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ExpChkSTime4 CheckBox { ExpChkSTime4 CheckBox
Move(1176,567,56,28) Move(1190,567,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ExpChkSTime5 CheckBox { ExpChkSTime5 CheckBox
Move(1176,609,56,28) Move(1190,602,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ExpChkSTime6 CheckBox { ExpChkSTime6 CheckBox
Move(1176,651,56,28) Move(1190,637,56,28)
Text = ("ZAP") Text = ("ZAP")
Value = CheckBox.True Value = CheckBox.True
} }
{ ChkExpNahoda CheckBox { ChkExpNahoda CheckBox
Move(14,406,98,21) Move(14,406,98,21)
Text = ("NAHODA") Text = ("NAHODNE")
} }
{ ChkExpNeopakovat CheckBox { ChkExpNeopakovat CheckBox
Move(119,406,119,21) Move(14,378,119,21)
Text = ("NEOPAKOVAT") Text = ("NEOPAKOVAT")
} }
{ BtnOpenDor Button { BtnOpenDor Button
@ -559,11 +554,11 @@
Move(707,238,189,7) Move(707,238,189,7)
} }
{ BtnExpFull Button { BtnExpFull Button
Move(252,385,315,28) Move(14,567,161,21)
Text = ("FULLSCREEN") Text = ("FULLSCREEN")
} }
{ LabelPreFrm4 Label { LabelPreFrm4 Label
Move(154,322,189,14) Move(168,301,189,14)
Text = ("<-----------------------------------------\n") Text = ("<-----------------------------------------\n")
Alignment = Align.Center Alignment = Align.Center
} }
@ -625,17 +620,17 @@
Move(714,315,182,21) Move(714,315,182,21)
Text = ("UPLATNI PARAMETRY") Text = ("UPLATNI PARAMETRY")
} }
{ TxtPotkanID TextBox { TxtSessionID TextBox
Move(819,385,189,21) Move(616,385,126,21)
Text = ("PotkanID") Text = ("SessionID")
} }
{ TxtExperimentID TextBox { TxtExperimentID TextBox
Move(819,413,189,21) Move(392,385,112,21)
Text = ("ExperimentID") Text = ("ExperimentID")
} }
{ TmrTimeout #Timer { TmrTimeout #Timer
#X = 497 #X = 644
#Y = 252 #Y = 273
} }
{ ListBox1 ListBox { ListBox1 ListBox
Move(1085,49,147,259) Move(1085,49,147,259)
@ -654,12 +649,115 @@
Alignment = Align.Center Alignment = Align.Center
} }
{ TimerExperimentMils #Timer { TimerExperimentMils #Timer
#X = 539 #X = 644
#Y = 252 #Y = 231
Delay = 10 Delay = 10
} }
{ PictureLogo1 PictureBox
Move(903,196,161,35)
Stretch = True
}
{ Label38 Label
Move(910,238,161,42)
Text = ("Tom\xC3\xA1\xC5\xA1 Suchan 2011\ntomsuch@tomsuch.net")
Alignment = Align.Center
}
{ Label39 Label
Move(518,385,91,21)
Text = ("SESSION ID:")
Alignment = Align.Center
}
{ Label40 Label
Move(259,385,126,21)
Text = ("EXPERIMENT ID:")
Alignment = Align.Center
}
{ Label37 Label { Label37 Label
Move(35,378,77,28) Move(749,385,91,21)
Text = ("STIMUL \xC4\x8D.:") Text = ("OBJECT ID:")
Alignment = Align.Center
}
{ TxtOjectID TextBox
Move(847,385,126,21)
Text = ("ObjectID")
}
{ TimerMilis #Timer
#X = 560
#Y = 315
Delay = 10
}
{ Label41 Label
Move(287,455,28,14)
Text = ("ms")
}
{ Label42 Label
Move(546,455,28,14)
Text = ("ms")
}
{ Label43 Label
Move(1155,574,28,14)
Text = ("ms")
}
{ Label44 Label
Move(1155,609,28,14)
Text = ("ms")
}
{ Label45 Label
Move(1155,539,28,14)
Text = ("ms")
}
{ Label46 Label
Move(1155,504,28,14)
Text = ("ms")
}
{ Label47 Label
Move(1155,469,28,14)
Text = ("ms")
}
{ Label48 Label
Move(1155,644,28,14)
Text = ("ms")
}
{ Label49 Label
Move(917,602,28,14)
Text = ("ms")
}
{ Label50 Label
Move(133,609,35,14)
Text = ("ms")
}
{ TxtInfoCasovacMilis TextBox
Move(1106,385,84,21)
Text = ("0")
Alignment = Align.Center
}
{ Label51 Label
Move(1197,392,28,14)
Text = ("ms")
}
{ Label52 Label
Move(1015,392,84,14)
Text = ("Casovac(ms):")
}
{ ChkTimeoutOpakReset CheckBox
Move(168,273,217,14)
Text = ("TIMEOUT = RESET OPAKOVANI")
}
{ ChkZhasniStimulPreReset CheckBox
Move(672,637,70,42)
Text = ("Vypni\nstimul")
}
{ Label53 Label
Move(588,651,63,14)
Text = ("-------------------------------------------------------------------------------------------------")
Alignment = Align.Center
}
{ ChkZhasniStimulPoAkci CheckBox
Move(805,441,70,42)
Text = ("Vypni\nstimul")
}
{ Label54 Label
Move(770,448,28,28)
Text = ("--->")
} }
} }

View file

@ -15,19 +15,12 @@ PUBLIC SUB stimul(xxx AS String)
END END
PUBLIC SUB loginfo(aaa AS String) PUBLIC SUB loginfo(aaa AS String)
Label1.Text = aaa Label1.Text = aaa
END END
PUBLIC SUB cyklusinfo(bbb AS String) PUBLIC SUB cyklusinfo(bbb AS String)
label2.Text = bbb label2.Text = bbb
END END
PUBLIC SUB PictureBox1_DblClick() PUBLIC SUB PictureBox1_DblClick()
Form1.FullScreen = FALSE Form1.FullScreen = FALSE
Form1.Visible = FALSE Form1.Visible = FALSE
@ -37,23 +30,17 @@ WAIT
END END
PUBLIC SUB Form_Resize() PUBLIC SUB Form_Resize()
PictureBox1.Width = Form1.Width PictureBox1.Width = Form1.Width
PictureBox1.Height = Form1.Height PictureBox1.Height = Form1.Height
END END
PUBLIC SUB Form_Show() PUBLIC SUB Form_Show()
WAIT WAIT
PictureBox1.Width = Form1.Width PictureBox1.Width = Form1.Width
PictureBox1.Height = Form1.Height PictureBox1.Height = Form1.Height
WAIT WAIT
END END
PUBLIC SUB PictureBox1_Menu() PUBLIC SUB PictureBox1_Menu()
FMain.remstart() FMain.remstart()
END END