1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105
|
// Interface part of WManager
//
// Copyright (C) 1999 M. Tessmer
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#ifndef Interface_H
#define Interface_H
// SYSTEM INCLUDES ////////////////////////////////////////////////////////////
// PROJECT INCLUDES ///////////////////////////////////////////////////////////
// LOCAL INCLUDES /////////////////////////////////////////////////////////////
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl_Browser.H>
//: WManager interface class
// This class implements the interface of wmanager.
class Interface {
public:
//: Constructor
Interface();
//: Destructor
~Interface();
//: Initialize the interface
void
Init();
//: Add one item to Hold_Browser widget
//
//! param: name - Window manager name
//! param: path - Path to executable
void
AddToBrowser(const char* name,
const char* path);
//: Enter the Fltk run loop
//
//! param: argc - No. of arguments
//! param: argv - Array of arguments
void
Run(int argc,
char** argv);
private:
Fl_Window* _WMWindow;
Fl_Button* _ExitButton;
Fl_Button* _StartButton;
Fl_Button* _AboutButton;
Fl_Browser* _ListBrowser;
inline void
_ExitButtonCb_i(Fl_Button*,
void*);
static void
_ExitButtonCb(Fl_Button*,
void*);
inline void
_StartButtonCb_i(Fl_Button*,
void*);
static void
_StartButtonCb(Fl_Button*,
void*);
inline void
_AboutButtonCb_i(Fl_Button*,
void*);
static void
_AboutButtonCb(Fl_Button*,
void*);
inline void
_ListBrowserCb_i(Fl_Browser*,
void*);
static void
_ListBrowserCb(Fl_Browser*,
void*);
};
#endif // Interface_H
|