Forked from
gmsh / gmsh
11204 commits behind the upstream repository.
-
Christophe Geuzaine authoredChristophe Geuzaine authored
optionWindow.cpp 148.27 KiB
// Gmsh - Copyright (C) 1997-2013 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>.
#include "GmshConfig.h"
#if !defined(HAVE_NO_STDINT_H)
#include <stdint.h>
#elif defined(HAVE_NO_INTPTR_T)
typedef unsigned long intptr_t;
#endif
#include <string.h>
#include <FL/Fl.H>
#include <FL/Fl_Tabs.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Color_Chooser.H>
#include <FL/fl_ask.H>
#include "GmshDefines.h"
#include "GmshMessage.h"
#include "FlGui.h"
#include "optionWindow.h"
#include "gamepadWindow.h"
#include "graphicWindow.h"
#include "openglWindow.h"
#include "paletteWindow.h"
#include "extraDialogs.h"
#include "drawContext.h"
#include "Options.h"
#include "GModel.h"
#include "MElement.h"
#include "PView.h"
#include "PViewData.h"
#include "PViewOptions.h"
#include "OS.h"
#include "Context.h"
#include "StringUtils.h"
#if defined(HAVE_ONELAB)
#include "gmshLocalNetworkClient.h"
#endif
extern StringXColor GeneralOptions_Color[] ;
extern StringXColor GeometryOptions_Color[] ;
extern StringXColor MeshOptions_Color[] ;
extern StringXColor SolverOptions_Color[] ;
extern StringXColor PostProcessingOptions_Color[] ;
extern StringXColor ViewOptions_Color[] ;
extern StringXColor PrintOptions_Color[] ;
class engineeringValueInput : public Fl_Value_Input
{
public:
engineeringValueInput(int x, int y, int w, int h, const char *l=0) :
Fl_Value_Input(x, y, w, h, l) {}
virtual int format(char *buffer){ return sprintf(buffer, "%g", value()); }
};
static Fl_Menu_Item menu_point_display[] = {
{"Color dot", 0, 0, 0},
{"3D sphere", 0, 0, 0},
{0}
};
static Fl_Menu_Item menu_point_display_post[] = {
{"Color dot", 0, 0, 0},
{"3D sphere", 0, 0, 0},
{"Scaled dot", 0, 0, 0},
{"Scaled sphere", 0, 0, 0},
{0}
};