# Path: wc_setup.py
# class DlgAddEmu(GladeSupport, WahCade):
# class DlgKeyPress(GladeSupport, WahCade):
# class WinSetup(GladeSupport, WahCade):
#     def __init__(self, glade_filename, window_name, WinSetup):
#     def on_btnCancel_clicked(self, *args):
#     def on_btnOk_clicked(self, *args):
#     def __init__(self, glade_filename, window_name, tvw_path, key_changed_cb, joystick):
#     def on_cboMouse_changed(self, *args):
#     def on_cboJoystick_changed(self, *args):
#     def on_btnClear_clicked(self, *args):
#     def on_btnCancel_clicked(self, *args):
#     def on_cboJoystick_key_press_event(self, widget, event, *args):
#     def on_txeKey_key_press_event(self, widget, event, *args):
#     def __init__(self, glade_filename, window_name, config_opts, config_args):
#     def on_winSetup_delete_event(self, *args):
#     def on_Setup_changed(self, widget, *args):
#     def on_mnuFSave_activate(self, *args):
#     def on_mnuFReset_activate(self, *args):
#     def on_mnuFResetFilters_activate(self, *args):
#     def on_mnuFQuit_activate(self, *args):
#     def on_mnuHAbout_activate(self, *args):
#     def on_tvwKeys_row_activated(self, widget, path, column):
#     def on_tvwKeys_change(self, path, mw_keys, keyname):
#     def on_cboEmu_changed(self, *args):
#     def on_txeEmuTitle_changed(self, widget, *args):
#     def on_cboEmuLists_changed(self, *args):
#     def on_txeEmuListTitle_changed(self, widget, *args):
#     def on_btnWCOpenLayoutDir_clicked(self, widget, *args):
#     def on_btnWCMovieIntroOpen_clicked(self, widget, *args):
#     def on_btnWCMovieExitOpen_clicked(self, widget, *args):
#     def on_btnWCOpenMusicDir_clicked(self, widget, *args):
#     def on_btnEmuAdd_clicked(self, *args):
#     def on_btnEmuRemove_clicked(self, *args):
#     def on_btnEmuListNew_clicked(self, *args):
#     def on_btnEmuListDelete_clicked(self, *args):
#     def on_btnEmuListFilter_clicked(self, *args):
#     def on_btnEmuListEdit_clicked(self, *args):
#     def on_btnEmuExeOpen_clicked(self, widget, *args):
#     def on_btnEmuRomDir_clicked(self, widget, *args):
#     def on_btnEmuNMSOpen_clicked(self, widget, *args):
#     def on_btnEmuScrMovieDir_clicked(self, widget, *args):
#     def on_btnEmuScrExternal_clicked(self, widget, *args):
#     def on_btnEmuArt_clicked(self, widget, *args):
#     def on_btnEmuMovieDir_clicked(self, widget, *args):
#     def on_btnEmuExtApp_clicked(self, widget, *args):
#     def on_btnMameXMLFile_clicked(self, widget, *args):
#     def on_btnMameCatver_clicked(self, widget, *args):
#     def on_btnHstDatFile_clicked(self, widget, *args):
#     def on_btnHstLayout_clicked(self, widget, *args):
#     def on_btnCPVIni_clicked(self, widget, *args):
#     def on_btnCPVLayout_clicked(self, widget, *args):
#     def on_btnMameXMLGen_clicked(self, widget, *args):
#     def set_layout_dir(self, new_dir):
#     def wait_for_mame_listxml(self):
#     def save_setups(self, show_dialog=True):
#     def load_settings(self, default_emu=None):
#     def load_emulator_settings(self, ini_name, emu_ini, default_list=0):
#     def load_emulator_list_settings(self, emu_list_idx, emu_list_ini):
#     def save_wahcade_settings(self):
#     def save_emulator_settings(self):
#     def save_emulator_list_settings(self):
#     def create_new_emulator_files(self, template_ini_name, dest_ini_name):
#     def populate_keys(self):
#     def open_file_dialog(self, default_filename, dlg_title, load_function):
#     def open_dir_dialog(self, default_dir, dlg_title, dlg_cb):
#     def save_layout_dialog(self, default_filename, dlg_title, save_function):
#     def remove_filespec(self, *filespec):


import sys
import exception
            import psyco
from optparse import OptionParser
from wc_setup import WinSetup, gtk
from constants import *
# (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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
assert(sys.version_info) >= (2, 4, 0), 'python >= 2.4 required'

_ = gettext.gettext

if __name__ == "__main__":
    #set to unicode encoding
    try:
        sys.setappdefaultencoding('utf-8')
    except AttributeError:
        pass
    #define options
    usage = "usage: %prog [options]"
    parser = OptionParser(usage=usage, version='%s %s "%s"' % ("%prog", VERSION, VERSION_NAME))
    parser.add_option("-d", "--debug",
                        action="store_true",
                        dest="debug",
                        default=False,
                        help="Set debug mode (disables psyco)")
    #get options & arguments

# Path: wc_setup.py
# class DlgAddEmu(GladeSupport, WahCade):
# class DlgKeyPress(GladeSupport, WahCade):
# class WinSetup(GladeSupport, WahCade):
#     def __init__(self, glade_filename, window_name, WinSetup):
#     def on_btnCancel_clicked(self, *args):
#     def on_btnOk_clicked(self, *args):
#     def __init__(self, glade_filename, window_name, tvw_path, key_changed_cb, joystick):
#     def on_cboMouse_changed(self, *args):
#     def on_cboJoystick_changed(self, *args):
#     def on_btnClear_clicked(self, *args):
#     def on_btnCancel_clicked(self, *args):
#     def on_cboJoystick_key_press_event(self, widget, event, *args):
#     def on_txeKey_key_press_event(self, widget, event, *args):
#     def __init__(self, glade_filename, window_name, config_opts, config_args):
#     def on_winSetup_delete_event(self, *args):
#     def on_Setup_changed(self, widget, *args):
#     def on_mnuFSave_activate(self, *args):
#     def on_mnuFReset_activate(self, *args):
#     def on_mnuFResetFilters_activate(self, *args):
#     def on_mnuFQuit_activate(self, *args):
#     def on_mnuHAbout_activate(self, *args):
#     def on_tvwKeys_row_activated(self, widget, path, column):
#     def on_tvwKeys_change(self, path, mw_keys, keyname):
#     def on_cboEmu_changed(self, *args):
#     def on_txeEmuTitle_changed(self, widget, *args):
#     def on_cboEmuLists_changed(self, *args):
#     def on_txeEmuListTitle_changed(self, widget, *args):
#     def on_btnWCOpenLayoutDir_clicked(self, widget, *args):
#     def on_btnWCMovieIntroOpen_clicked(self, widget, *args):
#     def on_btnWCMovieExitOpen_clicked(self, widget, *args):
#     def on_btnWCOpenMusicDir_clicked(self, widget, *args):
#     def on_btnEmuAdd_clicked(self, *args):
#     def on_btnEmuRemove_clicked(self, *args):
#     def on_btnEmuListNew_clicked(self, *args):
#     def on_btnEmuListDelete_clicked(self, *args):
#     def on_btnEmuListFilter_clicked(self, *args):
#     def on_btnEmuListEdit_clicked(self, *args):
#     def on_btnEmuExeOpen_clicked(self, widget, *args):
#     def on_btnEmuRomDir_clicked(self, widget, *args):
#     def on_btnEmuNMSOpen_clicked(self, widget, *args):
#     def on_btnEmuScrMovieDir_clicked(self, widget, *args):
#     def on_btnEmuScrExternal_clicked(self, widget, *args):
#     def on_btnEmuArt_clicked(self, widget, *args):
#     def on_btnEmuMovieDir_clicked(self, widget, *args):
#     def on_btnEmuExtApp_clicked(self, widget, *args):
#     def on_btnMameXMLFile_clicked(self, widget, *args):
#     def on_btnMameCatver_clicked(self, widget, *args):
#     def on_btnHstDatFile_clicked(self, widget, *args):
#     def on_btnHstLayout_clicked(self, widget, *args):
#     def on_btnCPVIni_clicked(self, widget, *args):
#     def on_btnCPVLayout_clicked(self, widget, *args):
#     def on_btnMameXMLGen_clicked(self, widget, *args):
#     def set_layout_dir(self, new_dir):
#     def wait_for_mame_listxml(self):
#     def save_setups(self, show_dialog=True):
#     def load_settings(self, default_emu=None):
#     def load_emulator_settings(self, ini_name, emu_ini, default_list=0):
#     def load_emulator_list_settings(self, emu_list_idx, emu_list_ini):
#     def save_wahcade_settings(self):
#     def save_emulator_settings(self):
#     def save_emulator_list_settings(self):
#     def create_new_emulator_files(self, template_ini_name, dest_ini_name):
#     def populate_keys(self):
#     def open_file_dialog(self, default_filename, dlg_title, load_function):
#     def open_dir_dialog(self, default_dir, dlg_title, dlg_cb):
#     def save_layout_dialog(self, default_filename, dlg_title, save_function):
#     def remove_filespec(self, *filespec):


# Path: wahcade-setup.py
import sys
import exception
            import psyco
from optparse import OptionParser
from wc_setup import WinSetup, gtk
from constants import *

# (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 Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
assert(sys.version_info) >= (2, 4, 0), 'python >= 2.4 required'

_ = gettext.gettext

if __name__ == "__main__":
    #set to unicode encoding
    try:
        sys.setappdefaultencoding('utf-8')
    except AttributeError:
        pass
    #define options
    usage = "usage: %prog [options]"
    parser = OptionParser(usage=usage, version='%s %s "%s"' % ("%prog", VERSION, VERSION_NAME))
    parser.add_option("-d", "--debug",
                        action="store_true",
                        dest="debug",
                        default=False,
                        help="Set debug mode (disables psyco)")
    #get options & arguments

    options, args = parser.parse_args()