mirror of https://github.com/CGAL/cgal
Nice icons
This commit is contained in:
parent
3d664482a5
commit
8f4055ce9c
|
|
@ -220,6 +220,7 @@ public Q_SLOTS:
|
|||
dock_widget->prevButton->setEnabled(false);
|
||||
dock_widget->nextButton->setEnabled(false);
|
||||
dock_widget->stopButton->setEnabled(false);
|
||||
dock_widget->frameSlider->setEnabled(false);
|
||||
initial_points.clear();
|
||||
initial_points.shrink_to_fit();
|
||||
});
|
||||
|
|
@ -242,18 +243,12 @@ public Q_SLOTS:
|
|||
dock_widget->prevButton->setEnabled(true);
|
||||
dock_widget->nextButton->setEnabled(true);
|
||||
dock_widget->stopButton->setEnabled(true);
|
||||
dock_widget->frameSlider->setEnabled(true);
|
||||
if(!info.exists())
|
||||
{
|
||||
QMessageBox::warning(mw, "Error","File does not exist.");
|
||||
return;
|
||||
}
|
||||
if(info.baseName() != sm_item->name())
|
||||
{
|
||||
QMessageBox::warning(mw, "Wrong Name",
|
||||
QString("The frame file must have the same name as the mesh file.(%1.trjs)")
|
||||
.arg(sm_item->name()));
|
||||
return;
|
||||
}
|
||||
|
||||
if(!dock_widget->isVisible()) { dock_widget->show(); }
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>444</width>
|
||||
<height>150</height>
|
||||
<width>202</width>
|
||||
<height>151</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
|
|
@ -97,36 +97,86 @@
|
|||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="startButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Polyhedron_3.qrc">
|
||||
<normaloff>:/cgal/icons/resources/play.jpeg</normaloff>:/cgal/icons/resources/play.jpeg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="stopButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Stop</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Polyhedron_3.qrc">
|
||||
<normaloff>:/cgal/icons/resources/pause.jpeg</normaloff>:/cgal/icons/resources/pause.jpeg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="prevButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Prev</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Polyhedron_3.qrc">
|
||||
<normaloff>:/cgal/icons/resources/left_arrow.png</normaloff>:/cgal/icons/resources/left_arrow.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="nextButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Next</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Polyhedron_3.qrc">
|
||||
<normaloff>:/cgal/icons/resources/right_arrow.png</normaloff>:/cgal/icons/resources/right_arrow.png</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="resetButton">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Reset</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../Polyhedron_3.qrc">
|
||||
<normaloff>:/cgal/icons/resources/reset.jpg</normaloff>:/cgal/icons/resources/reset.jpg</iconset>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
@ -135,6 +185,9 @@
|
|||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<resources>
|
||||
<include location="../../Polyhedron_3.qrc"/>
|
||||
<include location="../../Polyhedron_3.qrc"/>
|
||||
</resources>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,9 @@
|
|||
<file>resources/help_button.png</file>
|
||||
<file>resources/exit.png</file>
|
||||
<file>resources/menu.png</file>
|
||||
<file>resources/play.jpeg</file>
|
||||
<file>resources/pause.jpeg</file>
|
||||
<file>resources/reset.jpg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/cgal/Polyhedron_3">
|
||||
<file alias="about.html">resources/about.html</file>
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in New Issue