## ------------------------------------------------------------------------
## iSiLK - A python-based graphical user interface for SiLK
## ------------------------------------------------------------------------
## Copyright (c) 2007-2008 Carnegie Mellon University. All Rights Reserved.
## ------------------------------------------------------------------------
## Authors: Andrew Kompanek (ajk@cert.org)
## ------------------------------------------------------------------------
## GNU General Public License (GPL) Rights pursuant to Version 2, June 1991
## Government Purpose License Rights (GPLR) pursuant to DFARS 252.225-7013
## ------------------------------------------------------------------------
## See the LICENSE file included in this distribution
## ------------------------------------------------------------------------

# State of a result / result processing

ISILK_APP_VERSION = "<Unknown Version>"
try:
    ISILK_APP_VERSION = open("VERSION").readline()
except:
    pass

(   DELETED,
    UNINITIALIZED,
    PRE_PROCESSING,
    RUNNING,
    POST_PROCESSING,
    AVAILABLE_REMOTE,
    COPYING,
    LOADING,
    AVAILABLE_LOCAL) = range(-1,8)
    
    
''' Base class for any analysis result displayable within the problem
    set explorer.  Availability of data: a data set is always in one 
    of 7 states.  Data type is one of four types. '''

locations = ["No data", "Running fglob...", "Running rwfilter..",
               "Running post-processing",
               "Remote", "Copying file...", "Local"]
               
CLIPBOARD_FORMAT_DEFAULT = 0
CLIPBOARD_FORMAT_TEXT_TABLE = 1
CLIPBOARD_FORMAT_LATEX_TABLE = 2

# Global menu items
ID_NO_COMMAND = 99
ID_NEW_PROBLEMSET = 100
ID_OPEN_PROBLEMSET = 101
ID_SAVE_PROBLEMSET = 102
ID_SAVEALL = 103
ID_QUERY_BUILDER = 104
ID_IMPORT_RESULT = 106
ID_CLOSE_WINDOW = 107
ID_SHOW_INFO = 108
ID_OPEN_EXCEL = 109
ID_IMPORT_QUERY_RESULT=110
ID_SHOW_FILES = 111
ID_VIEW_OPTIONS = 112
ID_CLEANUP = 113
ID_VIEW_SHOW_LIBRARY = 114
ID_VIEW_SHOW_COMMAND_LOG = 115
ID_SAVE_AS = 116
ID_EXPORT_AS_SCRIPT = 150
ID_EXPORT_AS_TOOL = 150
ID_EDIT_COPY_RECS_AS_TEXT = 180
ID_EDIT_COPY_RECS_AS_LATEX = 181
ID_WINDOW_MINIMIZE = 201
ID_WINDOW_ZOOM = 202
ID_WINDOW_SHOW_DATASETS = 203
ID_WINDOW_SHOW_QUERY_BUILDER = 204
ID_WINDOW_SHOW_COMMAND_LOG = 205
ID_ANALYSIS_REFINE=301
ID_ANALYSIS_SPLIT=302
ID_ANALYSIS_COUNT=303
ID_ANALYSIS_TREND=304
ID_ANALYSIS_MERGE=305
ID_ANALYSIS_SET=306
ID_ANALYSIS_SET_TOOL=307
ID_ANALYSIS_SET_BUILD=308
ID_ANALYSIS_RERUN=309
ID_ANALYSIS_SAVE_IN_LIBRARY=315
ID_ANALYSIS_MANAGE_SET_LIBRARY=316
ID_ANALYSIS_MANAGE_CUSTOM_TOOLS=317
ID_ANALYSIS_SELECT_CUSTOM_TOOL=318
ID_ANALYSIS_SMART_GRAPH=320
ID_ANALYSIS_SHELL_TOOL=321
ID_ANALYSIS_ADD_SET_TO_LIBRARY=322
ID_HELP_SILK_HOME = 900
ID_HELP_SILK = 901
ID_ABOUT = 902
ID_SSH_SETTINGS = 903
ID_HELP_RWFILTER = 904
ID_HELP_RWUNIQ= 905
ID_HELP_RWCOUNT = 906
ID_HELP_RWSET = 907
ID_HELP_RWSETBUILD = 908
ID_HELP_RWSETTOOL = 909
ID_HELP_ISILK_HOME = 910
ID_ANALYSIS_CUSTOM=1000
ID_POPUP_RESOLVE_HOSTNAMES = 1999
ID_POPUP_DRILLDOWN_SIP = 1998
ID_POPUP_DRILLDOWN_DIP = 701
ID_POPUP_DRILLDOWN_SPORT = 702
ID_POPUP_DRILLDOWN_DPORT = 703
ID_POPUP_DRILLDOWN_PROTO = 704
ID_POPUP_DRILLDOWN_SIP_AND_DIP = 705
ID_POPUP_DRILLDOWN_SIP_AND_SPORT = 706
ID_POPUP_DRILLDOWN_DIP_AND_DPORT = 707
ID_POPUP_DRILLDOWN_SENSOR = 719
ID_POPUP_QUERY_SIP = 720
ID_POPUP_QUERY_DIP = 721
ID_POPUP_QUERY_SPORT = 722
ID_POPUP_QUERY_DPORT = 723
ID_POPUP_QUERY_PROTO = 724
ID_POPUP_QUERY_SIP_AND_DIP = 725
ID_POPUP_QUERY_SIP_AND_SPORT = 726
ID_POPUP_QUERY_DIP_AND_DPORT = 727
ID_POPUP_QUERY_SENSOR = 799
ID_DELETE_RESULT=800
ID_RENAME_RESULT=801
ID_LIBRARY_RENAME_ANALYSIS=802
ID_LIBRARY_DELETE_ANALYSIS=803
