non/session-manager/src/NSM_Proxy_UI.fl

119 lines
5.3 KiB
Plaintext

#*******************************************************************************
#* Copyright (C) 2012 Jonathan Moore Liles *
#* *
#* This program is free software; you can redistribute it and/or modify it *
#* under the terms of the GNU General Public License as published by the *
#* Free Software Foundation; either version 2 of the License, or (at your *
#* option) any later version. *
#* *
#* This program is distributed in the hope that it will be useful, but WITHOUT *
#* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or *
#* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for *
#* more details. *
#* *
#* You should have received a copy of the GNU General Public License along *
#* with This program; see the file COPYING. If not,write to the Free Software *
#* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
# data file for the Fltk User Interface Designer (fluid)
version 1.0300
header_name {.H}
code_name {.C}
class NSM_Proxy_UI {open
} {
Function {make_window()} {open
} {
Fl_Window {} {
label {NSM Proxy} open selected
xywh {644 190 635 665} type Double color 47 labelcolor 55 xclass {NSM-Proxy} visible
} {
Fl_Box {} {
label {Command-line options are incompatible with robust session management for a variety of reasons, so the NSM server does not support them directly. This proxy exists to allow programs which require command-line options to be included in an NSM session. Be warned that referring to files outside of the session directory will impair your ability to reliably archive and transport sessions. Patching the program to use NSM natively will result in a better experience.
The program will be started with its current directory being a uniquely named directory under the current session directory. It is recommended that you only refer to files in the current directory.
}
xywh {15 11 610 139} box BORDER_BOX color 41 labelfont 8 labelsize 12 labelcolor 55 align 128
}
Fl_File_Input executable_input {
label {Executable: }
xywh {115 162 495 31}
}
Fl_Input arguments_input {
label {Arguments:}
xywh {110 310 350 28}
}
Fl_Input label_input {
label {Label:}
xywh {110 340 350 28}
}
Fl_Return_Button start_button {
label Start
xywh {535 630 88 25}
}
Fl_Button kill_button {
label Kill
xywh {295 625 80 25} color 72 hide
}
Fl_Choice save_signal_choice {
label {Save Signal:} open
xywh {110 468 170 25} down_box BORDER_BOX
} {
MenuItem {} {
label None
xywh {0 0 40 24}
}
MenuItem {} {
label SIGUSR1
xywh {10 10 40 24}
}
MenuItem {} {
label SIGUSR2
xywh {20 20 40 24}
}
MenuItem {} {
label SIGINT
xywh {30 30 40 24}
}
}
Fl_Box {} {
label {The environment variables $NSM_CLIENT_ID and $NSM_SESSION_NAME will contain the unique client ID (suitable for use as e.g. a JACK client name) and the display name for the session, respectively. The variable $CONFIG_FILE will contain the name of the config file selected above.}
xywh {15 235 610 69} box BORDER_BOX color 41 labelfont 8 labelsize 12 labelcolor 55 align 128
}
Fl_Box {} {
label {Some (very few) programs may respond to a specific Unix signal by somehow saving their state. If 'Save Signal' is set to something other than 'None', then NSM Proxy will deliver the specified signal to the proxied process upon an NSM 'Save' event. Most programs will treat these signals just like SIGTERM and die. You have been warned.}
xywh {15 378 610 79} box BORDER_BOX color 41 labelfont 8 labelsize 12 labelcolor 55 align 128
}
Fl_Choice stop_signal_choice {
label {Stop Signal:} open
xywh {108 592 170 25} down_box BORDER_BOX
} {
MenuItem {} {
label SIGTERM
xywh {10 10 40 24}
}
MenuItem {} {
label SIGINT
xywh {40 40 40 24}
}
MenuItem {} {
label SIGHUP
xywh {50 50 40 24}
}
}
Fl_Box {} {
label {Most programs will shutdown gracefully when sent a SIGTERM or SIGINT signal. It's impossible to know which signal a specific program will respond to. A unhandled signal will simply kill the process, and may cause problems with the audio subsystem (e.g. JACK). Check the program's documentation or source code to determine which signal to use to stop it gracefully.}
xywh {15 502 610 79} box BORDER_BOX color 41 labelfont 8 labelsize 12 labelcolor 55 align 128
}
Fl_File_Input config_file_input {
label {Config File:}
xywh {114 195 406 31}
}
Fl_Button config_file_browse_button {
label Browse
xywh {530 195 85 25}
}
}
}
}