1 /* 2 * Copyright 2012-2017, Adrien Destugues, pulkomandy@pulkomandy.tk 3 * Distributed under the terms of the MIT licence. 4 */ 5 6 7 #include <Window.h> 8 9 10 class BFilePanel; 11 class BMenu; 12 class BStatusBar; 13 class TermView; 14 15 16 class SerialWindow: public BWindow 17 { 18 public: 19 SerialWindow(); 20 ~SerialWindow(); 21 22 void MenusBeginning(); 23 void MessageReceived(BMessage* message); 24 25 26 private: 27 TermView* fTermView; 28 29 BMenu* fConnectionMenu; 30 BMenu* fDatabitsMenu; 31 BMenu* fStopbitsMenu; 32 BMenu* fParityMenu; 33 BMenu* fFlowcontrolMenu; 34 BMenu* fBaudrateMenu; 35 BMenu* fLineTerminatorMenu; 36 BMenu* fFileMenu; 37 BFilePanel* fLogFilePanel; 38 BFilePanel* fSendFilePanel; 39 BStatusBar* fStatusBar; 40 41 static const int kBaudrates[]; 42 static const int kBaudrateConstants[]; 43 static const char* kWindowTitle; 44 }; 45