25#ifndef _SO_QT_MATERIAL_PALETTE_
26#define _SO_QT_MATERIAL_PALETTE_
27#include <Inventor/Qt/OivQtCompat.h>
28#include <Inventor/SbBasic.h>
29#include <Inventor/misc/SoCallbackList.h>
30#include <Inventor/Qt/SoQtComponent.h>
32#include <Inventor/STL/map>
69# include <sys/param.h>
70# if defined MAXPATHLEN
71# define MAX_PATH MAXPATHLEN
92 QWidget *parent = NULL,
93 const char *name = NULL,
94 SbBool buildInsideParent = TRUE);
109 void *userData = NULL);
111 void *userData = NULL);
136 void makePaletteMenuList(QMenuBar* menuBar);
149 virtual SbString getDefaultWidgetName()
const;
150 virtual SbString getDefaultTitle()
const;
151 virtual SbString getDefaultIconTitle()
const;
158 unsigned long nCurrEditId ;
167 QPointer<QWidget> mgrWidget;
177 static void staticSelectionCB(
void *userData,
SoPath *path);
178 void selectionCB(
SoPath * path);
182 SoSeparator *makeRow(
SoNode * SO_UNUSED_PARAM(aShape),
long * SO_UNUSED_PARAM(nodeCnt),
SbBool SO_UNUSED_PARAM(reset) = FALSE);
183 char currentMaterialPath[MAX_PATH];
185 void setMaterialDir(
const SbString& dirPath);
187 void changeMaterialPath( QAction*
id );
189 QPointer<QScrollBar> m_hScrollBar;
190 QPointer<QLabel> m_hStatusText;
191 QPointer<QLabel> m_hPaletteName;
193 void adjustVScrollInfo(
long rows);
201 QWidget* *menuItemsList;
206 void copyMaterial(
SoMaterial *mat1,
int index1,
213 static void materialListCB(
void *,
const SoMaterial *);
217 void menuPick(QWidget*,
int,
void *);
221 QWidget* buildWidget(QWidget *parent);
222 QMenuBar* buildPulldownMenu(QWidget *parent);
225 void constructorCommon(
SbBool buildNow);
228 QPointer<QMenu> palette;
230 std::map<int, QAction*> m_paletteMenuIdsMap;
231 QDialog * materialPath;
238 void slot_palette( QAction*
id );
239 void slot_scroll_view(
int);
240 void browsePalletteBaseDir();
252{ callbackList->
addCallback((SoCallbackListCB *) f, userData); }
257{ callbackList->
removeCallback((SoCallbackListCB *) f, userData); }
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 SoQtMaterialPaletteCB(void *userData, const SoMaterial *mtl)
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.