/*--------------------------------------------------------------------------*/ /* Volume Rendering Application */ /* Copyright (C) 2006-2007 Nicholas Schwarz */ /* */ /* This software is free software; you can redistribute it and/or modify it */ /* under the terms of the GNU Lesser General Public License as published by */ /* the Free Software Foundation; either Version 2.1 of the License, or */ /* (at your option) any later version. */ /* */ /* This software is distributed in the hope that it will be useful, but */ /* WITHOUT ANY WARRANTY; without even the implied warranty of */ /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser */ /* General Public License for more details. */ /* */ /* You should have received a copy of the GNU Lesser Public License along */ /* with this library; if not, write to the Free Software Foundation, Inc., */ /* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /*--------------------------------------------------------------------------*/ #ifndef FL_LAMBDA_H #define FL_LAMBDA_H /*--------------------------------------------------------------------------*/ #include #include #include #include #include #include #include #include /*--------------------------------------------------------------------------*/ class Fl_Lambda : public Fl_Double_Window { public: // Constructor Fl_Lambda(int x, int y, int w, int h, const char* l = 0); // Destructor ~Fl_Lambda(); // Get port int GetPort(); // Set cancel button callback void SetCancelButtonCallback(Fl_Callback* cb, void* v); // Set listen button callback void SetListenButtonCallback(Fl_Callback* cb, void* v); private: // Cancel button Fl_Button* _cancelButton; // Listen button Fl_Return_Button* _listenButton; // Port input field Fl_Input* _portInput; }; /*--------------------------------------------------------------------------*/ #endif /*--------------------------------------------------------------------------*/