25#ifndef _SO_QT_MATERIAL_PALETTE_
26#define _SO_QT_MATERIAL_PALETTE_
32#include <Inventor/STL/map>
68# include <sys/param.h>
69# if defined MAXPATHLEN
70# define MAX_PATH MAXPATHLEN
91 QWidget *parent = NULL,
92 const char *name = NULL,
108 void *userData = NULL);
110 void *userData = NULL);
135 void makePaletteMenuList(QMenuBar* menuBar);
148 virtual SbString getDefaultWidgetName()
const;
149 virtual SbString getDefaultTitle()
const;
150 virtual SbString getDefaultIconTitle()
const;
157 unsigned long nCurrEditId ;
166 QPointer<QWidget> mgrWidget;
176 static void staticSelectionCB(
void *userData,
SoPath *path);
177 void selectionCB(
SoPath * path);
184 void setMaterialDir(
const SbString& dirPath);
186 void changeMaterialPath( QAction*
id );
188 QPointer<QScrollBar> m_hScrollBar;
189 QPointer<QLabel> m_hStatusText;
190 QPointer<QLabel> m_hPaletteName;
192 void adjustVScrollInfo(
long rows);
200 QWidget* *menuItemsList;
205 void copyMaterial(
SoMaterial *mat1,
int index1,
212 static void materialListCB(
void *,
const SoMaterial *);
216 void menuPick(QWidget*,
int,
void *);
220 QWidget* buildWidget(QWidget *parent);
221 QMenuBar* buildPulldownMenu(QWidget *parent);
224 void constructorCommon(
SbBool buildNow);
227 QPointer<QMenu> palette;
229 std::map<int, QAction*> m_paletteMenuIdsMap;
230 QDialog * materialPath;
237 void slot_palette( QAction*
id );
238 void slot_scroll_view(
int);
239 void browsePalletteBaseDir();
#define TRUE
Possible value of SbBool.
#define FALSE
Possible value of SbBool.
void SoQtMaterialPaletteCB(void *userData, const SoMaterial *mtl)
Class for smart character strings.
Node that defines an object's base color.
Base class for all nodes, paths, and engines.
Manages a list of callbacks and associated data.
void addCallback(SoCallbackListCB *f, void *userData=NULL)
Adds a function to the list of callback functions.
void removeCallback(SoCallbackListCB *f, void *userData=NULL)
Removes a function from the list of callback functions.
Node representing a directional light source.
Node which invokes callbacks for events.
Multiple-value field containing any number of RGB colors stored as three floats.
Surface material definition node.
Abstract base class for all database nodes.
Sensor class that can be attached to Open Inventor nodes.
Orthographic camera node.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component which ...
void location2Event(SoEventCallback *node)
virtual void hide()
This hides the component.
SoQtMaterialPalette(QWidget *parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE)
void removeMaterialChangedCallback(SoQtMaterialPaletteCB *f, void *userData=NULL)
void setPaletteBaseDir(const SbString newBaseDir)
virtual void show()
This shows the component.
void addMaterialChangedCallback(SoQtMaterialPaletteCB *f, void *userData=NULL)
static void staticLocation2EventCB(void *userData, SoEventCallback *node)
void attach(SoMaterial *material, int index=0)
SoNONUNICODE void setPaletteBaseDir(const char *newBaseDir)
const SoMaterial & getMaterial() const
void setMaterial(const SoMaterial &mtl)
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Viewer component...
Manages a list of selected objects.
Abstract base class for Open Inventor sensors.
Group node that saves and restores traversal state.
void SoCallbackListCB(void *userData, void *callbackData)