Skip to content

Commit

Permalink
Finalised transition from SaveImage to ExportImage. Tweaked icons.qrc…
Browse files Browse the repository at this point in the history
… to remove duplicate icons.
  • Loading branch information
trisyoungs committed Aug 1, 2015
1 parent 64056e8 commit 71b3e64
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 25 deletions.
5 changes: 0 additions & 5 deletions TODO2
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,7 @@ Implement optional startup 'guide' or 'wizard' that will disable all controls on
Remove dialog pointers (use instances instead).
Fix callbacks for atom picking etc.
Octahedral Growing doesn't work.

In AtenWindow::on_actionFileSaveImage_triggered convert options to proper QDialog.
o Change SaveImageDialog to check for empty image filename, and disable OK button accordingly.
Fix image saving - in particular scaling & offset when saving large image (what role will/did ViewLayout play?)
Snapshot option, copying current view or image save details directly to clipboard

Clear selected measurements on panel popup clears all measurements.
Recent files list - enable load on double-click, settings not loaded/saved properly?
TMenuButton - after (long-) click to show popup, allow popup to be hidden with no actions if the button is clicked on again. Tricky - might have to store pointer to previous popup and check this in the pressed() function of the button.
Expand Down
6 changes: 3 additions & 3 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SET(gui_MOC_HDRS
command.h
disorderoptions.h
disorderwizard.h
exportimage.h
ffeditor.h
glyphs.h
layoutlist.h
Expand Down Expand Up @@ -66,7 +67,6 @@ SET(gui_MOC_HDRS
pores.h
prefs.h
progress.h
saveimage.h
scriptmovie.h
selectfilter.h
selectpattern.h
Expand Down Expand Up @@ -101,6 +101,7 @@ SET(gui_UIS
command.ui
disorderoptions.ui
disorderwizard.ui
exportimage.ui
ffeditor.ui
glyphs.ui
loadmodel.ui
Expand Down Expand Up @@ -151,7 +152,6 @@ SET(gui_UIS
pores.ui
prefs.ui
progress.ui
saveimage.ui
scriptmovie.ui
selectfilter.ui
selectpattern.ui
Expand All @@ -175,6 +175,7 @@ set(gui_SRCS
command_funcs.cpp
disorderoptions_funcs.cpp
disorderwizard_funcs.cpp
exportimage_funcs.cpp
ffeditor_funcs.cpp
glyphs_funcs.cpp
layoutlist.cpp
Expand Down Expand Up @@ -245,7 +246,6 @@ set(gui_SRCS
pores_funcs.cpp
prefs_funcs.cpp
progress_funcs.cpp
saveimage_funcs.cpp
scriptmovie_funcs.cpp
selectfilter_funcs.cpp
selectpattern_funcs.cpp
Expand Down
8 changes: 4 additions & 4 deletions src/gui/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ clean-local:

libtreegui_a_SOURCES = treegui.ui treegui_funcs.cpp

libgui_a_SOURCES = icons.qrc saveimage.ui ffeditor.ui loadmodel.ui prefs.ui progress.ui selectfilter.ui selectpattern.ui selectvariable.ui mainwindow.ui
libgui_a_SOURCES = icons.qrc exportimage.ui ffeditor.ui loadmodel.ui prefs.ui progress.ui selectfilter.ui selectpattern.ui selectvariable.ui mainwindow.ui

libgui_a_SOURCES += popupbuildaddh.ui popupbuildfragments.ui popupbuildgrow.ui popupbuildrebond.ui popupbuildtransmute.ui popupcellangles.ui popupcelllengths.ui popupcellmatrix.ui popupcellmiller.ui popupcellreplicate.ui popupcellscale.ui popupcellspacegroup.ui popupcolour.ui popupelementcommon.ui popupelementtable.ui popupfileaten.ui popupfileopen.ui popupfilesave.ui popupforcefieldsassign.ui popupforcefieldsminimise.ui popupforcefieldstest.ui popupgridmatrix.ui popupgridorigin.ui popupgridshift.ui popupgridstyle.ui popupmeasureangle.ui popupmeasureclear.ui popupmeasuredistance.ui popupmeasuretorsion.ui popuptransformangle.ui popuptransformcentre.ui popuptransformconvert.ui popuptransformdistance.ui popuptransformflip.ui popuptransformrotate.ui popuptransformmultiply.ui popuptransformreposition.ui popuptransformshift.ui popuptransformtorsion.ui popuptransformtranslate.ui popupviewcolourscheme.ui popupviewreset.ui popupviewstyle.ui

libgui_a_SOURCES += popupbuildaddh_funcs.cpp popupbuildfragments_funcs.cpp popupbuildgrow_funcs.cpp popupbuildrebond_funcs.cpp popupbuildtransmute_funcs.cpp popupcellangles_funcs.cpp popupcelllengths_funcs.cpp popupcellmatrix_funcs.cpp popupcellmiller_funcs.cpp popupcellreplicate_funcs.cpp popupcellscale_funcs.cpp popupcellspacegroup_funcs.cpp popupcolour_funcs.cpp popupelementcommon_funcs.cpp popupelementtable_funcs.cpp popupfileaten_funcs.cpp popupfileopen_funcs.cpp popupfilesave_funcs.cpp popupforcefieldsassign_funcs.cpp popupforcefieldsminimise_funcs.cpp popupforcefieldstest_funcs.cpp popupgridmatrix_funcs.cpp popupgridorigin_funcs.cpp popupgridshift_funcs.cpp popupgridstyle_funcs.cpp popupmeasureangle_funcs.cpp popupmeasureclear_funcs.cpp popupmeasuredistance_funcs.cpp popupmeasuretorsion_funcs.cpp popuptransformangle_funcs.cpp popuptransformcentre_funcs.cpp popuptransformconvert_funcs.cpp popuptransformdistance_funcs.cpp popuptransformflip_funcs.cpp popuptransformmultiply_funcs.cpp popuptransformreposition_funcs.cpp popuptransformrotate_funcs.cpp popuptransformshift_funcs.cpp popuptransformtorsion_funcs.cpp popuptransformtranslate_funcs.cpp popupviewcolourscheme_funcs.cpp popupviewreset_funcs.cpp popupviewstyle_funcs.cpp

libgui_a_SOURCES += command.ui disorderoptions.ui disorderwizard.ui glyphs.ui pores.ui scriptmovie.ui vibrations.ui viewbasis.ui vieweigenvector.ui zmatrix.ui

libgui_a_SOURCES += command_funcs.cpp disorderoptions_funcs.cpp disorderwizard_funcs.cpp glyphs_funcs.cpp pores_funcs.cpp saveimage_funcs.cpp scriptmovie_funcs.cpp vibrations_funcs.cpp viewbasis_funcs.cpp vieweigenvector_funcs.cpp zmatrix_funcs.cpp
libgui_a_SOURCES += command_funcs.cpp disorderoptions_funcs.cpp disorderwizard_funcs.cpp glyphs_funcs.cpp pores_funcs.cpp scriptmovie_funcs.cpp vibrations_funcs.cpp viewbasis_funcs.cpp vieweigenvector_funcs.cpp zmatrix_funcs.cpp

libgui_a_SOURCES += ffeditor_funcs.cpp layoutlist.cpp loadmodel_funcs.cpp mainwindow_atoms.cpp mainwindow_context.cpp mainwindow_funcs.cpp mainwindow_image.cpp mainwindow_messages.cpp mainwindow_models.cpp mainwindow_panel_build.cpp mainwindow_panel_calculate.cpp mainwindow_panel_cell.cpp mainwindow_panel_forcefields.cpp mainwindow_panel_grids.cpp mainwindow_panel_home.cpp mainwindow_panel_select.cpp mainwindow_panel_selection.cpp mainwindow_panel_trajectory.cpp mainwindow_panel_transform.cpp mainwindow_quickcommand.cpp mainwindow_update.cpp prefs_funcs.cpp progress_funcs.cpp selectfilter_funcs.cpp selectpattern_funcs.cpp selectvariable_funcs.cpp settings.cpp
libgui_a_SOURCES += exportimage_funcs.cpp ffeditor_funcs.cpp layoutlist.cpp loadmodel_funcs.cpp mainwindow_atoms.cpp mainwindow_context.cpp mainwindow_funcs.cpp mainwindow_image.cpp mainwindow_messages.cpp mainwindow_models.cpp mainwindow_panel_build.cpp mainwindow_panel_calculate.cpp mainwindow_panel_cell.cpp mainwindow_panel_forcefields.cpp mainwindow_panel_grids.cpp mainwindow_panel_home.cpp mainwindow_panel_select.cpp mainwindow_panel_selection.cpp mainwindow_panel_trajectory.cpp mainwindow_panel_transform.cpp mainwindow_quickcommand.cpp mainwindow_update.cpp prefs_funcs.cpp progress_funcs.cpp selectfilter_funcs.cpp selectpattern_funcs.cpp selectvariable_funcs.cpp settings.cpp
libgui_a_SOURCES += mainmenuactions.cpp

libgui_a_SOURCES += tcolourframe.hui tcolourwheel.hui tdoublespindelegate.hui texponentialspin.hui tintegerspindelegate.hui tmenubutton.hui tprocess.hui tprompt.hui ttablewidget.hui ttabwidget.hui ttreewidget.hui viewer.hui
libgui_a_SOURCES += viewer_funcs.cpp viewer_key.cpp viewer_model.cpp viewer_mouse.cpp viewer_offscreen.cpp viewer_scene.cpp viewer_user.cpp viewer_useractions.cpp tdoublespindelegate_funcs.cpp tcolourframe_funcs.cpp tcolourwheel_funcs.cpp texponentialspin_funcs.cpp textratreewidgetitem_funcs.cpp tintegerspindelegate_funcs.cpp tmenubutton_funcs.cpp tprocess_funcs.cpp tprompt_funcs.cpp ttabwidget_funcs.cpp

libgui_a_SOURCES += useractions.cpp

noinst_HEADERS = command.h disorderoptions.h disorderwizard.h ffeditor.h glyphs.h layoutlist.h loadmodel.h mainwindow.h popupbuildaddh.h popupbuildfragments.h popupbuildgrow.h popupbuildrebond.h popupbuildtransmute.h popupcellangles.h popupcelllengths.h popupcellmatrix.h popupcellmiller.h popupcellreplicate.h popupcellscale.h popupcellspacegroup.h popupcolour.h popupelementcommon.h popupelementtable.h popupfileaten.h popupfileopen.h popupfilesave.h popupforcefieldsassign.h popupforcefieldsminimise.h popupforcefieldstest.h popupgridmatrix.h popupgridorigin.h popupgridshift.h popupgridstyle.h popupmeasureangle.h popupmeasureclear.h popupmeasuredistance.h popupmeasuretorsion.h popuptransformangle.h popuptransformcentre.h popuptransformconvert.h popuptransformdistance.h popuptransformflip.h popuptransformmultiply.h popuptransformreposition.h popuptransformrotate.h popuptransformshift.h popuptransformtorsion.h popuptransformtranslate.h popupviewcolourscheme.h popupviewreset.h popupviewstyle.h pores.h prefs.h progress.h saveimage.h scriptmovie.h selectfilter.h selectpattern.h selectvariable.h textratreewidgetitem.h treegui.h useractions.h vibrations.h viewbasis.h vieweigenvector.h zmatrix.h
noinst_HEADERS = command.h disorderoptions.h disorderwizard.h exportimage.h ffeditor.h glyphs.h layoutlist.h loadmodel.h mainwindow.h popupbuildaddh.h popupbuildfragments.h popupbuildgrow.h popupbuildrebond.h popupbuildtransmute.h popupcellangles.h popupcelllengths.h popupcellmatrix.h popupcellmiller.h popupcellreplicate.h popupcellscale.h popupcellspacegroup.h popupcolour.h popupelementcommon.h popupelementtable.h popupfileaten.h popupfileopen.h popupfilesave.h popupforcefieldsassign.h popupforcefieldsminimise.h popupforcefieldstest.h popupgridmatrix.h popupgridorigin.h popupgridshift.h popupgridstyle.h popupmeasureangle.h popupmeasureclear.h popupmeasuredistance.h popupmeasuretorsion.h popuptransformangle.h popuptransformcentre.h popuptransformconvert.h popuptransformdistance.h popuptransformflip.h popuptransformmultiply.h popuptransformreposition.h popuptransformrotate.h popuptransformshift.h popuptransformtorsion.h popuptransformtranslate.h popupviewcolourscheme.h popupviewreset.h popupviewstyle.h pores.h prefs.h progress.h scriptmovie.h selectfilter.h selectpattern.h selectvariable.h textratreewidgetitem.h treegui.h useractions.h vibrations.h viewbasis.h vieweigenvector.h zmatrix.h

INCLUDES = -I$(top_srcdir)/src -I../ -I./ @ATEN_CFLAGS@
6 changes: 3 additions & 3 deletions src/gui/exportimage.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*** Save Image Dialog
*** src/gui/saveimage.h
*** Export Image Dialog
*** src/gui/exportimage.h
Copyright T. Youngs 2013-2015
This file is part of Aten.
Expand All @@ -22,7 +22,7 @@
#ifndef ATEN_ATENEXPORTIMAGE_H
#define ATEN_ATENEXPORTIMAGE_H

#include "gui/ui_saveimage.h"
#include "gui/ui_exportimage.h"
#include <QDialog>
#include <QDir>

Expand Down
6 changes: 3 additions & 3 deletions src/gui/exportimage_funcs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*** Save Image Dialog
*** src/gui/saveimage_funcs.cpp
*** Export Image Dialog
*** src/gui/exportimage_funcs.cpp
Copyright T. Youngs 2013-2015
This file is part of Aten.
Expand All @@ -19,7 +19,7 @@
along with Aten. If not, see <http://www.gnu.org/licenses/>.
*/

#include "gui/saveimage.h"
#include "gui/exportimage.h"
#include "gui/mainwindow.h"
#include <main/aten.h>
#include <QtWidgets/QFileDialog>
Expand Down
5 changes: 0 additions & 5 deletions src/gui/icons.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@
<file>icons/file_saveas.svg</file>
<file>icons/file_saveimage.svg</file>
</qresource>
<qresource prefix="/forcefield">
<file>icons/forcefield_energy.svg</file>
<file>icons/forcefield_forces.svg</file>
<file>icons/forcefield_minimise.svg</file>
</qresource>
<qresource prefix="/model">
<file>icons/model_next.svg</file>
<file>icons/model_prev.svg</file>
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "gui/ui_mainwindow.h"
#include "gui/ui_prefs.h"
#include "gui/useractions.h"
#include "gui/saveimage.h"
#include "gui/exportimage.h"
#include "templates/reflist.h"
#include "base/glyph.h"
#include "base/namespace.h"
Expand Down
2 changes: 1 addition & 1 deletion src/gui/mainwindow_panel_home.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "main/aten.h"
#include "gui/selectfilter.h"
#include "gui/loadmodel.h"
#include "gui/saveimage.h"
#include "gui/exportimage.h"
#include "model/undostate.h"
#include <QFileDialog>

Expand Down

0 comments on commit 71b3e64

Please sign in to comment.