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
|
//------------------------------------------------------------------------
// WINDOW : Main application window
//------------------------------------------------------------------------
//
// GL-Node Viewer (C) 2004-2007 Andrew Apted
//
// 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.
//
//------------------------------------------------------------------------
#ifndef __NODEVIEW_WINDOW_H__
#define __NODEVIEW_WINDOW_H__
#define MAIN_BG_COLOR fl_gray_ramp(FL_NUM_GRAY * 9 / 24)
class Guix_MainWin : public Fl_Double_Window
{
public:
Guix_MainWin(const char *title);
virtual ~Guix_MainWin();
// main child widgets
#ifdef MACOSX
Fl_Sys_Menu_Bar *menu_bar;
#else
Fl_Menu_Bar *menu_bar;
#endif
W_Grid *grid;
W_Info *info;
// user closed the window
bool want_quit;
// routine to capture the current main window state into the
// guix_preferences_t structure.
//
void WritePrefs();
protected:
// initial window size, read after the window manager has had a
// chance to move the window somewhere else. If the window is still
// there when CaptureState() is called, we don't need to update the
// coords in the cookie file.
//
int init_x, init_y, init_w, init_h;
};
extern Guix_MainWin * guix_win;
void WindowSmallDelay(void);
#endif /* __NODEVIEW_WINDOW_H__ */
|