001 #include "FMExitButton.h"
002
003 #include <TGButton.h>
004
005 FMExitButton::FMExitButton(TGTransientFrame* fMain, TGVerticalFrame* fToolFrame)
006 {
007 m_fMain = fMain;
008
009 TGHorizontalFrame *fExitButtonFrame = new TGHorizontalFrame(fToolFrame,0,0, kHorizontalFrame);
010 TGTextButton* fExitButton = new TGTextButton(fExitButtonFrame, "E&xit");
011 fExitButtonFrame->AddFrame(fExitButton, new TGLayoutHints(kLHintsCenterX | kLHintsExpandX, 2, 2, 2, 2));
012 fExitButton->Connect("Clicked()", "FMExitButton", this, "OnExit()");
013
014 fToolFrame->AddFrame(fExitButtonFrame, new TGLayoutHints(kLHintsLeft | kLHintsBottom | kLHintsExpandX));
015 }
016
017 FMExitButton::~FMExitButton(void)
018 {
019 }
020
021 void FMExitButton::OnExit() {
022
023 m_fMain->SendCloseMessage();
024 }
| Due to the LXR bug, the updates fail sometimes to remove references to deleted files. The Saturday's full rebuilds fix these problems |
|
This page was automatically generated by the
LXR engine.
|
|