imageviewer updates

- new zoom icons
- resetview option
- properly track pushbutton checked state
- add preferences options for selecting background and box color
This commit is contained in:
Axel Kohlmeyer
2023-08-15 02:21:05 -04:00
parent dedddee70a
commit 0c7f56e881
8 changed files with 85 additions and 26 deletions

View File

@ -39,7 +39,7 @@ int LammpsWrapper::extract_setting(const char *keyword)
#if defined(LAMMPS_GUI_USE_PLUGIN)
val = ((liblammpsplugin_t *)plugin_handle)->extract_setting(lammps_handle, keyword);
#else
val = lammps_extract_setting(lammps_handle, keyword);
val = lammps_extract_setting(lammps_handle, keyword);
#endif
}
return val;
@ -52,7 +52,7 @@ int LammpsWrapper::id_count(const char *keyword)
#if defined(LAMMPS_GUI_USE_PLUGIN)
val = ((liblammpsplugin_t *)plugin_handle)->id_count(lammps_handle, keyword);
#else
val = lammps_id_count(lammps_handle, keyword);
val = lammps_id_count(lammps_handle, keyword);
#endif
}
return val;
@ -65,7 +65,7 @@ int LammpsWrapper::id_name(const char *keyword, int idx, char *buf, int len)
#if defined(LAMMPS_GUI_USE_PLUGIN)
val = ((liblammpsplugin_t *)plugin_handle)->id_name(lammps_handle, keyword, idx, buf, len);
#else
val = lammps_id_name(lammps_handle, keyword, idx, buf, len);
val = lammps_id_name(lammps_handle, keyword, idx, buf, len);
#endif
}
return val;
@ -78,7 +78,7 @@ double LammpsWrapper::get_thermo(const char *keyword)
#if defined(LAMMPS_GUI_USE_PLUGIN)
val = ((liblammpsplugin_t *)plugin_handle)->get_thermo(lammps_handle, keyword);
#else
val = lammps_get_thermo(lammps_handle, keyword);
val = lammps_get_thermo(lammps_handle, keyword);
#endif
}
return val;
@ -91,7 +91,7 @@ void *LammpsWrapper::last_thermo(const char *keyword, int index)
#if defined(LAMMPS_GUI_USE_PLUGIN)
ptr = ((liblammpsplugin_t *)plugin_handle)->last_thermo(lammps_handle, keyword, index);
#else
ptr = lammps_last_thermo(lammps_handle, keyword, index);
ptr = lammps_last_thermo(lammps_handle, keyword, index);
#endif
}
return ptr;
@ -104,7 +104,7 @@ bool LammpsWrapper::is_running()
#if defined(LAMMPS_GUI_USE_PLUGIN)
val = ((liblammpsplugin_t *)plugin_handle)->is_running(lammps_handle);
#else
val = lammps_is_running(lammps_handle);
val = lammps_is_running(lammps_handle);
#endif
}
return val != 0;