# Path: layout_editor.py
# class WinLayout(GladeSupport, WahCade):
#     def __init__(self, glade_filename, window_name, config_opts, config_args):
#     def on_winMain_delete_event(self, *args):
#     def on_winMain_key_press(self, widget, event, *args):
#     def on_winMain_size_allocate(self, widget, allocation):
#     def on_mnuFOpen_activate(self, *args):
#     def on_mnuFOpenCPV_activate(self, *args):
#     def on_mnuFOpenHist_activate(self, *args):
#     def on_mnuFSave_activate(self, *args):
#     def on_mnuFSaveAs_activate(self, *args):
#     def on_mnuFSaveCPVAs_activate(self, *args):
#     def on_mnuFSaveHistAs_activate(self, *args):
#     def on_mnuFQuit_activate(self, *args):
#     def on_mnuESelectAllVisible_activate(self, *args):
#     def on_mnuESelectAll_activate(self, *args):
#     def on_cboLayout_changed(self, cbo, *args):
#     def on_rbWindow_toggled(self, widget, *args):
#     def on_mnuVItemProps_activate(self, *args):
#     def on_mnuVScreenProps_activate(self, *args):
#     def on_mnuVOnTop_toggled(self, widget, *args):
#     def on_mnuVFullScreen_toggled(self, widget, *args):
#     def on_mnuHAbout_activate(self, *args):
#     def on_evb_pressed(self, widget, event, *args):
#     def on_evb_drag_begin(self, widget, context):
#     def on_evb_drag_data_get(self, widget, context, selection, target_type, event_time):
#     def on_fixd_drag_motion(self, widget, drag_context, x, y, timestamp):
#     def on_fixd_drag_data_received(self, widget, context, x, y, selection, target_type, time):
#     def on_evb_expose_event(self, evb, event):
#     def on_fixd_expose_event(self, fixed, event):
#     def _make_label(self, widget_name):
#     def open_layout_dialog(self, default_filename, dlg_title, load_function):
#     def save_layout_dialog(self, default_filename, dlg_title, save_function):
#     def select_widget(self, widget):
#     def deselect_widgets(self, leave_selected):
#     def set_layout_altered(self, widget):
#     def load_layout_file(self, layout_filename):
#     def save_layout_file(self, layout_filename=None):
#     def init_cpviewer_widgets(self):
#     def load_cpviewer_file(self, cpviewer_file):
#     def indent_cpviewer_file(self, elem, level=0):
#     def save_cpviewer_file(self, cpviewer_filename=None):
#     def load_histview_file(self, histview_filename):
#     def save_histview_file(self, histview_filename=None):
#     def set_window_title(self):


import sys
import exception
            import psyco
from optparse import OptionParser
from layout_editor import WinLayout, gtk
from constants import *
# 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] [wahcade_layout_file] [cpviewer_layout_file]"
    parser = OptionParser(usage=usage, version='%s %s "%s"' % ("%prog", VERSION, VERSION_NAME))
    parser.add_option("-u", "--use-app-config",
                        action="store_true",
                        dest="use_app_config",
                        default=False,
                        help=_("Use application config location (i.e. wahcade/config instead of the default ~/.wahcade)"))
    parser.add_option("-d", "--debug",
                        action="store_true",
                        dest="debug",
                        default=False,
                        help=_("Set debug mode (disables psyco)"))
    #get options & arguments

# Path: layout_editor.py
# class WinLayout(GladeSupport, WahCade):
#     def __init__(self, glade_filename, window_name, config_opts, config_args):
#     def on_winMain_delete_event(self, *args):
#     def on_winMain_key_press(self, widget, event, *args):
#     def on_winMain_size_allocate(self, widget, allocation):
#     def on_mnuFOpen_activate(self, *args):
#     def on_mnuFOpenCPV_activate(self, *args):
#     def on_mnuFOpenHist_activate(self, *args):
#     def on_mnuFSave_activate(self, *args):
#     def on_mnuFSaveAs_activate(self, *args):
#     def on_mnuFSaveCPVAs_activate(self, *args):
#     def on_mnuFSaveHistAs_activate(self, *args):
#     def on_mnuFQuit_activate(self, *args):
#     def on_mnuESelectAllVisible_activate(self, *args):
#     def on_mnuESelectAll_activate(self, *args):
#     def on_cboLayout_changed(self, cbo, *args):
#     def on_rbWindow_toggled(self, widget, *args):
#     def on_mnuVItemProps_activate(self, *args):
#     def on_mnuVScreenProps_activate(self, *args):
#     def on_mnuVOnTop_toggled(self, widget, *args):
#     def on_mnuVFullScreen_toggled(self, widget, *args):
#     def on_mnuHAbout_activate(self, *args):
#     def on_evb_pressed(self, widget, event, *args):
#     def on_evb_drag_begin(self, widget, context):
#     def on_evb_drag_data_get(self, widget, context, selection, target_type, event_time):
#     def on_fixd_drag_motion(self, widget, drag_context, x, y, timestamp):
#     def on_fixd_drag_data_received(self, widget, context, x, y, selection, target_type, time):
#     def on_evb_expose_event(self, evb, event):
#     def on_fixd_expose_event(self, fixed, event):
#     def _make_label(self, widget_name):
#     def open_layout_dialog(self, default_filename, dlg_title, load_function):
#     def save_layout_dialog(self, default_filename, dlg_title, save_function):
#     def select_widget(self, widget):
#     def deselect_widgets(self, leave_selected):
#     def set_layout_altered(self, widget):
#     def load_layout_file(self, layout_filename):
#     def save_layout_file(self, layout_filename=None):
#     def init_cpviewer_widgets(self):
#     def load_cpviewer_file(self, cpviewer_file):
#     def indent_cpviewer_file(self, elem, level=0):
#     def save_cpviewer_file(self, cpviewer_filename=None):
#     def load_histview_file(self, histview_filename):
#     def save_histview_file(self, histview_filename=None):
#     def set_window_title(self):


# Path: wahcade-layout-editor.py
import sys
import exception
            import psyco
from optparse import OptionParser
from layout_editor import WinLayout, gtk
from constants import *

# 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] [wahcade_layout_file] [cpviewer_layout_file]"
    parser = OptionParser(usage=usage, version='%s %s "%s"' % ("%prog", VERSION, VERSION_NAME))
    parser.add_option("-u", "--use-app-config",
                        action="store_true",
                        dest="use_app_config",
                        default=False,
                        help=_("Use application config location (i.e. wahcade/config instead of the default ~/.wahcade)"))
    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()