00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2019 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * RCS INFORMATION: 00011 * 00012 * $RCSfile: frame_selector.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.12 $ $Date: 2019/01/17 21:21:03 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * Fltk dialogs for selecting/deleting ranges of frames 00019 ***************************************************************************/ 00020 00021 #ifndef FRAME_SELECTOR_H 00022 #define FRAME_SELECTOR_H 00023 00024 // Pop up a modal Fltk dialog box to select a range of frames. Return 0 00025 // if cancelled, or 1 on success. On success, the parameters first, last, 00026 // and stride will be filled in with the values the user selected. 00027 // If max is unknown, use -1 to set no limit. 00028 // Set first, last, and stride to the desired initial values. 00029 extern int frame_selector(const char *wintitle, const char *moleculename, 00030 int maxframe, int *first, int *last, int *stride); 00031 00032 // A frame selector with a different appearance and text. 00033 int frame_delete_selector (const char *moleculename, int maxframe, int *first, int *last, int *stride); 00034 00035 #endif