ȥå   ʬ Хåå   ñ측 ǽ   إ   ǽRSS

Ĥ

Last-modified: 2011-02-25 () 11:33:26 (2851d)
Top / Ĥ

Ĥ

Ĥ郎ʬΤʤ夬ߤƤ롪˵Τǡܤܤޤ



ͤˤƤꤷڡ꤬Ȥޤ
ƣΥڡ
(Ȥ)Υڡ

ROOTGUI

ŪʤȤ⡣

rootΥ饤֥Ȥäƥɥʥץ

C++ǽ񤤤ĤROOTGUIȤ߹।᡼
ѥ뤹ȤROOTCINT˺륯饹Ͽ?ɬפߤʤȡܥ󲡤ȯư륹åDaq

slot Daq() does not exist 

Ȥäܤ롣
꤫ϤȤФMyMainFrameȤGUIѤΥ饹äȤˡtest.cctest.hȤΤȤ롣ȤˡȤ

#pragma link C++ class MyMainFrame;

Ƚ񤤤Ŭʥե(:test_LinkDef.h)ơʲΥޥɤ򤦤ġ

rootcint -f test_dict.cc -c test.h test_LinkDef.h

ȥǥʥtest_dict.ccȤɤưΤǡ򤤤ä˥ѥ뤷Ƥ롣㡣

g++ `root-config  ------(ά) ` -o test.o test.h test_dict.cc 

Ǥ

ROOTGUIطΥ饹

櫓狼ᡣߤȤ

TGTextEntry

ʸϤդܥå֤롣

TGTextEntry *te_pmt = new TGTextEntry(input_frame , "Sugoi PMT" );

input_frame֤ե졼ࡣ"Sugoi PMT"ϺǽɽƤʸ
ȤСʸξĴȤϡ

te_pmt->SetAlignment(kTextRight);

Τ褦ˤ롣
ΤȤϤTGWidget::ETextJustification줿Τǡ

kTextLeft     ·
kTextRight·
kTextCenterX  ·
kTextTop      ˥ƥȤ
kTextBottom   ˥ƥȤ
kTextCenterY  

Ȥ褦ʴ

TGTextButton

ܥΤΥ饹

TGTextButton *daq = new TGTextButton(hframe,"&DAQ Start");

ϡhframeȤե졼ξ˥ܥȤ̣Υܥˤ"DAQ Start"äƤ롣&ϥۥåȥȥ󥰲äựǡ򤹤Хۥåȥˤʤ롣

daq->Connect("Clicked()","MyMainFrame",this,"Daq()");

ǥʥ򥹥åȤ³롣 ϲ줿Ȥ˸ƤӽФؿʤɤꤷƤΤǡξ礿ȤDaq()ƤӽФ
ܥ礭ѤȤˤ

daq->SetMargins(left margin , right , up , down );

Ȥ

TGLayoutHints

åȤΥ쥤ȤΤˤ褯Ȥ饹

TGLayoutHints( 쥤ȥ, ¦ڡ, ¦ڡ, ڡ, ڡ )

쥤ȥפϤƤơΤ褦ʤΤ֡

kLHintsTop 	·
kLHintsBottom 	·
kLHintsLeft 	·
kLHintsRight 	·
kLHintsCenterX	·(x)
kLHintsCenterY	·(y)
kLHintsExpandX	x˿Ф
kLHintsExpandY	y˿Ф

ʣĤʤȤϡ|פǤĤʤȤС

fMain->AddFrame(fEcanvas , new TGLayoutHints(kLHintsExpandX| kLHintsExpandY,10,10,10,1))

Ȥդ˥åȤȤ˰ˤ褯Ȥ

TGNumberEntry

ϥܥåΤΥ饹١16ʿʤɤʥ뤬ݡȤƤ롣

kNESInteger
kNESRealOne1Ĥμ¿(ؿʤ)
kNESRealTwo2Ĥμ¿(ؿʤ)
kNESRealThree3Ĥμ¿(ؿʤ)
kNESRealFour4Ĥμ¿(ؿʤ)
kNESRealǤդμ¿
kNESDegree١ʬäǤγ٤Υեޥå
kNESMinSecʬäǤλ֤Υեޥå
kNESHourMinʬǤλ֤Υեޥå
kNESHourMinSecʬäǤλ֤Υեޥå
kNESDayMYearǯǤդΥեޥå
kNESMDayYearǯǤդΥեޥå
kNESHex16ʿ

ޤ°ȤƼΤΤǤ롣

kNEAAnyNumberɤʿǤ
kNEANonNegativeǤʤĤ
kNEAPositiveĤ

ˡŪʸ³Ǥ롣

kNELNoLimits¤ʤ
kNELLimitMin¤Τ߻
kNELLimitMax¤Τ߻
kNELLimitMinMax¡¤Ȥ˻

ϼΤ褦˹Ԥ

TGNumberEntry *aho = new TGNumberEntry(ƥå , 0.005 , 9 ,kENTRY1 ,  , ͤΥե륿 , ³λ , ³);

TGNumberEntry *aho = new TGNumberEntry(fMain , 0.005 , 9 ,kENTRY1 , TGNumberFormat::kNESRealThree , TGNumberFormat::kNEAAnyNumber , TNumberFormat::kNELLimitMinMax , -1.0 , 1.0);

DBط

ǶlinuxˤɸDBȤPostgreSQLȤΤäƤ롣hippopoȤˤäƤΤǡȤäڤ󤫤ʡ
󥯡->atmarkITϢܵ
ʸ->ŷ