00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 static const char help_msg[]=
00018 " \n"
00019 " NAME: \n"
00020 " \n"
00021 " gwavmerger \n"
00022 " \n"
00023 " DESCRIPTION: \n"
00024 " \n"
00025 " gwavmerger GUI interactively plays and merges two sequences of WAV files \n"
00026 " into one file (or optionally into CD tracks). \n"
00027 " \n"
00028 " USAGE: \n"
00029 " \n"
00030 " shell> gwavmerger [OPTIONS] \n"
00031 " \n"
00032 " OPTIONS: \n"
00033 " \n"
00034 " --gtk-options STRING - GTK+ command-line arguments \n"
00035 " --wavjoin_options STRING - wavjoin utility command-line arguments \n"
00036 " \n"
00037 " -d, --log-stdout - Write debug to standard output \n"
00038 " -l, --log-level - Noise level (0:silent - 5:max) \n"
00039 " -D, --log-file NAME - Write debug to NAME file \n"
00040 " -z, --log-size NUM - Maximum size debug file can reach (dfl: is 10Mb) \n"
00041 " \n"
00042 " -h, --help - Print this message \n"
00043 " -v, --version - Print version number \n"
00044 " \n"
00045 " LOG_LEVEL OPTIONS: \n"
00046 " \n"
00047 " 0: silence \n"
00048 " 1: APP + ERRORS \n"
00049 " 2: TRACE + ERRORS \n"
00050 " 3: APP + TRACE + ERRORS \n"
00051 " 4: APP + FORK + ERRORS \n"
00052 " 5: ALL \n"
00053 " \n"
00054 " For the list of 'wavjoin' options, see 'wavjoin --help' \n"
00055 " \n"
00056 " Options you can pass with --gtk-options STRING : \n"
00057 " \n"
00058 " GNOME options \n"
00059 " --disable-sound Disable sound server usage \n"
00060 " --enable-sound Enable sound server usage \n"
00061 " --espeaker=HOSTNAME:PORT Host:port on which the sound server to use is \n"
00062 " running \n"
00063 " \n"
00064 " GTK options \n"
00065 " --gdk-debug=FLAGS Gdk debugging flags to set \n"
00066 " --gdk-no-debug=FLAGS Gdk debugging flags to unset \n"
00067 " --display=DISPLAY X display to use \n"
00068 " --sync Make X calls synchronous \n"
00069 " --no-xshm Don't use X shared memory extension \n"
00070 " --name=NAME Program name as used by the window manager \n"
00071 " --class=CLASS Program class as used by the window manager \n"
00072 " --gxid_host=HOST \n"
00073 " --gxid_port=PORT \n"
00074 " --xim-preedit=STYLE \n"
00075 " --xim-status=STYLE \n"
00076 " --gtk-debug=FLAGS Gtk+ debugging flags to set \n"
00077 " --gtk-no-debug=FLAGS Gtk+ debugging flags to unset \n"
00078 " --g-fatal-warnings Make all warnings fatal \n"
00079 " --gtk-module=MODULE Load an additional Gtk module \n"
00080 " \n"
00081 " GNOME GUI options \n"
00082 " --disable-crash-dialog \n"
00083 " \n"
00084 " NOTE: Defalut values for all settable options are specified in \n"
00085 " the configuration file ~/.gnome/gwavmerger, [Options] section. \n"
00086 " \n";
00087
00088
00089 #ifdef HAVE_CONFIG_H
00090 # include "config.h"
00091 #endif
00092
00093 #include "gWavMerger-main.h"
00094 #include "gWavMerger.h"
00095
00096 int
00097 main (int argc, char* argv[])
00098 {
00099 int patch_level = 0;
00100
00101 gWavMerger& server = *gWavMerger::getInstance ();
00102
00103 server.set_version (VERSION, patch_level);
00104 server.set_author ("Vladislav Grinchenko");
00105 server.set_flags (ASSA::GenServer::RMLOG);
00106
00107 server.init (&argc, argv, help_msg);
00108
00109 server.initServer ();
00110 server.processServer ();
00111
00112 return server.get_exit_value ();
00113 }