[4] | 1 | /*--------------------------------------------------------------------------*/ |
---|
| 2 | /* Volume Rendering Application */ |
---|
| 3 | /* Copyright (C) 2006-2007 Nicholas Schwarz */ |
---|
| 4 | /* */ |
---|
| 5 | /* This software is free software; you can redistribute it and/or modify it */ |
---|
| 6 | /* under the terms of the GNU Lesser General Public License as published by */ |
---|
| 7 | /* the Free Software Foundation; either Version 2.1 of the License, or */ |
---|
| 8 | /* (at your option) any later version. */ |
---|
| 9 | /* */ |
---|
| 10 | /* This software is distributed in the hope that it will be useful, but */ |
---|
| 11 | /* WITHOUT ANY WARRANTY; without even the implied warranty of */ |
---|
| 12 | /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser */ |
---|
| 13 | /* General Public License for more details. */ |
---|
| 14 | /* */ |
---|
| 15 | /* You should have received a copy of the GNU Lesser Public License along */ |
---|
| 16 | /* with this library; if not, write to the Free Software Foundation, Inc., */ |
---|
| 17 | /* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
---|
| 18 | /*--------------------------------------------------------------------------*/ |
---|
| 19 | |
---|
| 20 | #ifndef FL_LAMBDA_H |
---|
| 21 | #define FL_LAMBDA_H |
---|
| 22 | |
---|
| 23 | /*--------------------------------------------------------------------------*/ |
---|
| 24 | |
---|
| 25 | #include <FL/Fl.H> |
---|
| 26 | #include <FL/Fl_Button.H> |
---|
| 27 | #include <FL/Fl_Double_Window.H> |
---|
| 28 | #include <FL/Fl_Input.H> |
---|
| 29 | #include <FL/Fl_Return_Button.H> |
---|
| 30 | #include <stdio.h> |
---|
| 31 | #include <stdlib.h> |
---|
| 32 | #include <string.h> |
---|
| 33 | |
---|
| 34 | /*--------------------------------------------------------------------------*/ |
---|
| 35 | |
---|
| 36 | class Fl_Lambda : public Fl_Double_Window { |
---|
| 37 | |
---|
| 38 | public: |
---|
| 39 | |
---|
| 40 | // Constructor |
---|
| 41 | Fl_Lambda(int x, int y, int w, int h, const char* l = 0); |
---|
| 42 | |
---|
| 43 | // Destructor |
---|
| 44 | ~Fl_Lambda(); |
---|
| 45 | |
---|
| 46 | // Get port |
---|
| 47 | int GetPort(); |
---|
| 48 | |
---|
| 49 | // Set cancel button callback |
---|
| 50 | void SetCancelButtonCallback(Fl_Callback* cb, void* v); |
---|
| 51 | |
---|
| 52 | // Set listen button callback |
---|
| 53 | void SetListenButtonCallback(Fl_Callback* cb, void* v); |
---|
| 54 | |
---|
| 55 | private: |
---|
| 56 | |
---|
| 57 | // Cancel button |
---|
| 58 | Fl_Button* _cancelButton; |
---|
| 59 | |
---|
| 60 | // Listen button |
---|
| 61 | Fl_Return_Button* _listenButton; |
---|
| 62 | |
---|
| 63 | // Port input field |
---|
| 64 | Fl_Input* _portInput; |
---|
| 65 | |
---|
| 66 | }; |
---|
| 67 | |
---|
| 68 | /*--------------------------------------------------------------------------*/ |
---|
| 69 | |
---|
| 70 | #endif |
---|
| 71 | |
---|
| 72 | /*--------------------------------------------------------------------------*/ |
---|