<validator id="PartSet_SketchEntityValidator" parameters="Sketch"/>
</multi_selector>
<toolbox id="CreationMethod">
- <box id="BySizes" title="By sizes" icon=":icons/dimension_up.png">
+ <box id="BySizes" title="By sizes" icon=":icons/dimension_up_32x32.png">
<groupbox>
<doublevalue
id="to_size"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
tooltip="Create or edit a sketch">
</sketch_launcher>
<toolbox id="CreationMethod">
- <box id="BySizes" title="By sizes" icon=":icons/dimension_up.png">
+ <box id="BySizes" title="By sizes" icon=":icons/dimension_up_32x32.png">
<groupbox>
<doublevalue
id="to_size"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
tooltip="Create or edit a sketch">
</sketch_launcher>
<toolbox id="CreationMethod">
- <box id="BySizes" title="By sizes" icon=":icons/dimension_up.png">
+ <box id="BySizes" title="By sizes" icon=":icons/dimension_up_32x32.png">
<groupbox>
<doublevalue
id="to_size"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
</doublevalue>
</groupbox>
</box>
- <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted.png">
+ <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
<groupbox title="To">
<shape_selector id="to_object"
icon=":icons/plane_inverted.png"
int ModuleBase_PagedContainer::addPage(ModuleBase_PageBase* thePage,
const QString& theName, const QString& theCaseId,
- const QIcon& theIcon )
+ const QPixmap& theIcon )
{
if (!myPages.count()) {
setDefaultValue(theCaseId.toStdString());
virtual int addPage( ModuleBase_PageBase* theWidget,
const QString& theName,
const QString& theCaseId,
- const QIcon& theIcon );
+ const QPixmap& theIcon );
// ModuleBase_ModelWidget
virtual QList<QWidget*> getControls() const;
{
}
-void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const QIcon& theIcon )
+void ModuleBase_ToolBox::addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon )
{
int anOldCount = myStack->count();
QToolButton* aButton = new QToolButton( myButtonsFrame );
aButton->setCheckable( true );
aButton->setIcon( theIcon );
+ aButton->setIconSize( theIcon.size() );
aButton->setToolTip( theName );
myButtonsGroup->addButton( aButton, anOldCount );
myButtonsLayout->insertWidget( anOldCount, aButton );
ModuleBase_ToolBox( QWidget* theParent );
virtual ~ModuleBase_ToolBox();
- void addItem( QWidget* thePage, const QString& theName, const QIcon& theIcon );
+ void addItem( QWidget* thePage, const QString& theName, const QPixmap& theIcon );
int count() const;
int currentIndex() const;
void setCurrentIndex( const int );
ModuleBase_PagedContainer* aContainer = qobject_cast<ModuleBase_PagedContainer*>(aWidget);
QString anIconPath = qs( myWidgetApi->getProperty( CONTAINER_PAGE_ICON ) );
- QIcon anIcon( anIconPath );
+ QPixmap anIcon( anIconPath );
aContainer->addPage( aPage, aPageName, aCaseId, anIcon );
}
} while (myWidgetApi->toNextWidget());
int ModuleBase_WidgetSwitch::addPage(ModuleBase_PageBase* thePage, const QString& theName,
const QString& theCaseId,
- const QIcon& theIcon )
+ const QPixmap& theIcon )
{
int aSuperCount = ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
myCombo->addItem(theName);
virtual int addPage( ModuleBase_PageBase* theWidget,
const QString& theName,
const QString& theCaseId,
- const QIcon& theIcon );
+ const QPixmap& theIcon );
protected:
virtual int currentPageIndex() const;
int ModuleBase_WidgetToolbox::addPage(ModuleBase_PageBase* thePage,
const QString& theName,
const QString& theCaseId,
- const QIcon& theIcon )
+ const QPixmap& theIcon )
{
ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
virtual int addPage( ModuleBase_PageBase* theWidget,
const QString& theName,
const QString& theCaseId,
- const QIcon& theIcon );
+ const QPixmap& theIcon );
protected:
/// Implements ModuleBase_PagedContainer
<file>icons/point.png</file>
<file>icons/plane.png</file>
<file>icons/plane_inverted.png</file>
+ <file>icons/plane_inverted_32x32.png</file>
<file>icons/axis.png</file>
<file>icons/duplicate.png</file>
<file>icons/remove.png</file>
<file>icons/sketch.png</file>
<file>icons/hand_point.png</file>
<file>icons/dimension_up.png</file>
+ <file>icons/dimension_up_32x32.png</file>
<file>icons/dimension_down.png</file>
<file>icons/dimension_v.png</file>
<file>icons/radius.png</file>