Package arcjobtool :: Module ArcJobToolWindow :: Class ArcJobToolWindow
[hide private]
[frames] | no frames]

Class ArcJobToolWindow

source code


Main frame class for arcjobtool.

Instance Methods [hide private]
EvtHandler
__init__(self, *args, **kwds)
__init__(self, Window parent, int id=-1, String title=EmptyString, ...
source code
 
__set_properties(self) source code
 
__do_layout(self) source code
 
checkSetup(self)
Check user setup
source code
 
logMsg(self, level, msg)
Wrapper function for sending messages to log.
source code
 
logInfoMsg(self, msg)
Wrapper function for sending info messages to log.
source code
 
logDebugMsg(self, msg)
Wrapper function for sending debug messages to log.
source code
 
logWarningMsg(self, msg)
Wrapper function for sending warning messages to log.
source code
 
logErrorMsg(self, msg)
Wrapper function for sending error messages to log.
source code
 
__setupLogging(self)
Sets up logging for arcjobtool.
source code
 
__changeWorkingDir(self, workingDir) source code
 
__initApp(self)
Application initialisation
source code
 
startProgress(self)
Start progress counter.
source code
 
releaseProgress(self)
Releases a reference to a progress updating thread.
source code
 
write(self, string)
Received the log stream from ARC.
source code
 
__clearGrid(self)
Clear contents of grid.
source code
 
__clearDownloadList(self)
Clear contents of download list
source code
 
__updateGrid(self)
Update grid with job information.
source code
 
__updateStatus(self)
Update status for grid jobs.
source code
 
__setupDefinitionDir(self)
Setup definitions dir $HOME/.arcgui
source code
 
__setupDefinitionList(self)
Sets up the job definition list control.
source code
 
__updateJobDefinitionList(self)
Updates the job definition list control.
source code
 
__deleteSelectedJobDefinition(self)
Deletes the selected job definition from disk.
source code
 
__openSelectedJobDefinition(self)
Open selected job definition.
source code
 
__submitSelectedJobDefinition(self)
Submit selected job definition.
source code
 
__submitMissing(self)
Submit jobs with missing results.
source code
 
__showSelectedJobXrsl(self)
Open selected job definition
source code
 
__showSelectedJobFiles(self)
Open selected job definition
source code
 
__cleanSelectedResults(self)
Open selected job definition
source code
 
__downloadSelectedJobs(self)
Download all finished jobs to specified.
source code
 
__downloadAllJobs(self, silent=True)
Download all finished jobs to definitions.
source code
 
__updateDownloadList(self)
Update grid with job information.
source code
 
__cleanDownloadList(self)
Clean download history
source code
 
onFind(self, event)
Event handler: updating job status.
source code
 
onRetrieve(self, event)
Event handler: Retrieve selected jobs.
source code
 
onDownloadToDefinition(self, event)
Event handler: Download job directly to job definition directory.
source code
 
onKill(self, event)
Event handler: Kill selected jobs.
source code
 
onClean(self, event)
Event handler: Clean selected jobs.
source code
 
onDeleteJobList(self, event)
Event handler: Clean selected jobs.
source code
 
onFileExit(self, event)
Close ArcGUI application
source code
 
onCertProxyInfo(self, event)
Show certificate information window.
source code
 
onCreateProxyCert(self, event)
Create proxy certificate.
source code
 
onClientSettings(self, event)
Show client settings dialog
source code
 
onServicesSettings(self, event)
Show default services dialog
source code
 
onCertInfoClose(self, event)
Handle close notification event from certificate info window.
source code
 
onWindowClose(self, event)
Event method handling window close.
source code
 
onStatusTimer(self, event)
Event method handling timer event for updating job status.
source code
 
onProgressTimer(self, event)
Event method handling timer event for updating statusGauge when a working thread is active.
source code
 
onDownloadTimer(self, event)
Event method handling timer event for automatic downloading of jobs.
source code
 
onUpdateStatusDone(self, event)
Event method called when job status query is finished.
source code
 
onRetrieveJobsDone(self, event)
Event method called when all jobs have been downloaded.
source code
 
onCleanJobsDone(self, event)
Event method called when all jobs have been cleaned.
source code
 
onKillJobsDone(self, event)
Event method called when all jobs have been killed.
source code
 
onSubmitJobDone(self, event)
Event method called when job submit is finished.
source code
 
onProgressUpdate(self, event)
Event method for handling status messages.
source code
 
onLogUpdate(self, event)
Event method for handling log messages.
source code
 
onAbout(self, event)
Event method handling about menu.
source code
 
onNewJobDefinition(self, event)
Create a new job defintion
source code
 
onSubmitJobDefinition(self, event)
Event method: Submit selected job definition.
source code
 
onOpenJobDefinition(self, event)
Event method for opening a job definition.
source code
 
onDeleteJobDefinition(self, event)
Event method for deleting job definition.
source code
 
onJobDefinitionSelected(self, event)
Event method for setting current job definition selection.
source code
 
onJobDefinitionKeyDown(self, event)
Event method for handling keyboard entry in job definition icon view.
source code
 
onJobDefinitionDeselected(self, event)
Event method for handling job definition deselection.
source code
 
onJobDefinitionActivated(self, event)
Event method for handling job definition activation.
source code
 
onShowXrslDescription(self, event)
Event method for displaying the xrsl description for the selected job definition.
source code
 
onActiveJobListDeselected(self, event)
Event method for handling unselecting an item in the active job list.
source code
 
onActiveJobListSelected(self, event)
Event method for handling selecting an item in the active job list.
source code
 
onActiveJobListActivated(self, event)
Event method for handling double click in the active job list.
source code
 
onViewOutputFiles(self, event)
Event method for displaying the output files for a job definition.
source code
 
onCleanResults(self, event) source code
 
onCleanDownloadedJobs(self, event) source code
 
onSubmitMissing(self, event) source code
 
onActiveJobColClick(self, event)
Event method implementing a click on the column header for sorting the active jobs according to column header.
source code
 
onChangeWorkingDir(self, event) source code
 
onJobProperties(self, event) source code
 
onKillThreads(self, event)
Kill running threads
source code
 
getLogLevel(self)
Return the current log level.
source code
 
setLogLevel(self, level)
Set the current log level.
source code
 
onNoteBookPageChanged(self, event)
Handle tab changing.
source code
 
onNoteBookPageChanging(self, event) source code

Inherited from wx._windows.Frame: Command, Create, CreateStatusBar, CreateToolBar, DoGiveHelp, DoMenuUpdates, GetMenuBar, GetStatusBar, GetStatusBarPane, GetToolBar, PopStatusText, ProcessCommand, PushStatusText, SendSizeEvent, SetMenuBar, SetStatusBar, SetStatusBarPane, SetStatusText, SetStatusWidths, SetToolBar

Inherited from wx._windows.TopLevelWindow: CenterOnScreen, CentreOnScreen, EnableCloseButton, GetDefaultItem, GetIcon, GetTitle, GetTmpDefaultItem, Iconize, IsActive, IsAlwaysMaximized, IsFullScreen, IsIconized, IsMaximized, MacGetMetalAppearance, MacGetTopLevelWindowRef, MacGetUnifiedAppearance, MacSetMetalAppearance, Maximize, RequestUserAttention, Restore, SetDefaultItem, SetIcon, SetIcons, SetShape, SetTitle, SetTmpDefaultItem, ShowFullScreen, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, ClientToWindowSize, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, FindWindowByLabel, FindWindowByName, Fit, FitInside, Freeze, GetAcceleratorTable, GetAdjustedBestSize, GetAutoLayout, GetBackgroundColour, GetBackgroundStyle, GetBestFittingSize, GetBestSize, GetBestSizeTuple, GetBestVirtualSize, GetBorder, GetCaret, GetCharHeight, GetCharWidth, GetChildren, GetClientAreaOrigin, GetClientRect, GetClientSize, GetClientSizeTuple, GetConstraints, GetContainingSizer, GetCursor, GetDefaultAttributes, GetDropTarget, GetEffectiveMinSize, GetEventHandler, GetExtraStyle, GetFont, GetForegroundColour, GetFullTextExtent, GetGrandParent, GetGtkWidget, GetHandle, GetHelpText, GetHelpTextAtPoint, GetId, GetLabel, GetLayoutDirection, GetMaxHeight, GetMaxSize, GetMaxWidth, GetMinHeight, GetMinSize, GetMinWidth, GetName, GetParent, GetPosition, GetPositionTuple, GetRect, GetScreenPosition, GetScreenPositionTuple, GetScreenRect, GetScrollPos, GetScrollRange, GetScrollThumb, GetSize, GetSizeTuple, GetSizer, GetTextExtent, GetThemeEnabled, GetToolTip, GetTopLevelParent, GetUpdateClientRect, GetUpdateRegion, GetValidator, GetVirtualSize, GetVirtualSizeTuple, GetWindowBorderSize, GetWindowStyle, GetWindowStyleFlag, GetWindowVariant, HasCapture, HasFlag, HasMultiplePages, HasScrollbar, HasTransparentBackground, Hide, HitTest, HitTestXY, InheritAttributes, InheritsBackgroundColour, InitDialog, InvalidateBestSize, IsBeingDeleted, IsDoubleBuffered, IsEnabled, IsExposed, IsExposedPoint, IsExposedRect, IsFrozen, IsRetained, IsShown, IsShownOnScreen, IsTopLevel, Layout, LineDown, LineUp, Lower, MakeModal, Move, MoveAfterInTabOrder, MoveBeforeInTabOrder, MoveXY, Navigate, PageDown, PageUp, PopEventHandler, PopupMenu, PopupMenuXY, PostCreate, PrepareDC, PushEventHandler, Raise, Refresh, RefreshRect, RegisterHotKey, ReleaseMouse, RemoveChild, RemoveEventHandler, Reparent, ScreenToClient, ScreenToClientXY, ScrollLines, ScrollPages, ScrollWindow, SetAcceleratorTable, SetAutoLayout, SetBackgroundColour, SetBackgroundStyle, SetBestFittingSize, SetCaret, SetClientRect, SetClientSize, SetClientSizeWH, SetConstraints, SetContainingSizer, SetCursor, SetDimensions, SetDoubleBuffered, SetDropTarget, SetEventHandler, SetExtraStyle, SetFocus, SetFocusFromKbd, SetFont, SetForegroundColour, SetHelpText, SetHelpTextForId, SetId, SetInitialSize, SetLabel, SetLayoutDirection, SetMaxSize, SetMinSize, SetName, SetOwnBackgroundColour, SetOwnFont, SetOwnForegroundColour, SetPosition, SetRect, SetScrollPos, SetScrollbar, SetSize, SetSizeHints, SetSizeHintsSz, SetSizeWH, SetSizer, SetSizerAndFit, SetThemeEnabled, SetToolTip, SetToolTipString, SetTransparent, SetValidator, SetVirtualSize, SetVirtualSizeHints, SetVirtualSizeHintsSz, SetVirtualSizeWH, SetWindowStyle, SetWindowStyleFlag, SetWindowVariant, ShouldInheritColours, Show, Thaw, ToggleWindowStyle, TransferDataFromWindow, TransferDataToWindow, UnregisterHotKey, Update, UpdateWindowUI, UseBgCol, Validate, WarpPointer, WindowToClientSize

Inherited from wx._core.EvtHandler: AddPendingEvent, Bind, Connect, Disconnect, GetEvtHandlerEnabled, GetNextHandler, GetPreviousHandler, ProcessEvent, ProcessPendingEvents, SetEvtHandlerEnabled, SetNextHandler, SetPreviousHandler, Unbind

Inherited from wx._core.EvtHandler (private): _setOORInfo

Inherited from wx._core.Object: GetClassName, IsSameAs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wx._windows.Frame: GetClassDefaultAttributes

Inherited from wx._core.Window: FindFocus, GetCapture, NewControlId, NextControlId, PrevControlId

Properties [hide private]
  logLevel
Return the current log level.

Inherited from wx._windows.Frame: MenuBar, StatusBar, StatusBarPane, ToolBar, thisown

Inherited from wx._windows.TopLevelWindow: DefaultItem, Icon, Title, TmpDefaultItem

Inherited from wx._core.Window: AcceleratorTable, AutoLayout, BackgroundColour, BackgroundStyle, BestSize, BestVirtualSize, Border, Caret, CharHeight, CharWidth, Children, ClientAreaOrigin, ClientRect, ClientSize, Constraints, ContainingSizer, Cursor, DefaultAttributes, DropTarget, EffectiveMinSize, Enabled, EventHandler, ExtraStyle, Font, ForegroundColour, GrandParent, GtkWidget, Handle, HelpText, Id, Label, LayoutDirection, MaxHeight, MaxSize, MaxWidth, MinHeight, MinSize, MinWidth, Name, Parent, Position, Rect, ScreenPosition, ScreenRect, Shown, Size, Sizer, ThemeEnabled, ToolTip, TopLevel, TopLevelParent, UpdateClientRect, UpdateRegion, Validator, VirtualSize, WindowStyle, WindowStyleFlag, WindowVariant

Inherited from wx._core.EvtHandler: EvtHandlerEnabled, NextHandler, PreviousHandler

Inherited from wx._core.Object: ClassName

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwds)
(Constructor)

source code 

__init__(self, Window parent, int id=-1, String title=EmptyString, 
    Point pos=DefaultPosition, Size size=DefaultSize, 
    long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame

Returns: EvtHandler
Overrides: object.__init__
(inherited documentation)

checkSetup(self)

source code 

Check user setup

Checks for existing configuration files, certificate directories. If it is the first time configuration files are created. If a proxy certificate not available or expired one is created.

startProgress(self)

source code 

Start progress counter.

Increases a counter to be able to stop progress update when no threads are running. The function will show the status text and satus gauge controls.

releaseProgress(self)

source code 

Releases a reference to a progress updating thread.

When the progress counter i 0 the progress timer is stopped and the status and gauge controls are hidden.

write(self, string)

source code 

Received the log stream from ARC.

Sends an event to the Window, so that it can be updated correctly.

__setupDefinitionList(self)

source code 

Sets up the job definition list control.

Loads items and images into the list control.

onWindowClose(self, event)

source code 

Event method handling window close. Ask user if configuration should be saved.

onStatusTimer(self, event)

source code 

Event method handling timer event for updating job status. Starts a UpdateStatusThread.

onAbout(self, event)

source code 

Event method handling about menu. Shows splash window.

onNewJobDefinition(self, event)

source code 

Create a new job defintion

Parses installed plugins and asks the users for which job definition to create.

onKillThreads(self, event)

source code 

Kill running threads

Only _really_ affects retrieveJobsThread...


Property Details [hide private]

logLevel

Return the current log level.

Get Method:
getLogLevel(self) - Return the current log level.
Set Method:
setLogLevel(self, level) - Set the current log level.