Package diffpy :: Package pdfgui :: Package gui :: Module serverpanel :: Class ServerPanel
[hide private]
[frames] | no frames]

Class ServerPanel

source code

     object --+                
              |                
wx._core.Object --+            
                  |            
wx._core.EvtHandler --+        
                      |        
        wx._core.Window --+    
                          |    
          wx._windows.Panel --+
                              |
                 object --+   |
                          |   |
          pdfpanel.PDFPanel --+
                              |
                             ServerPanel

Instance Methods [hide private]
 
__init__(self, *args, **kwds)
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition, ...
source code
 
__set_properties(self) source code
 
__do_layout(self) source code
 
__customProperties(self)
Set the custom properties of the panel.
source code
 
addServer(self, name)
Add a new server to the servers dictionary.
source code
 
enablePanels(self, on=True)
Enable or disable the panels on the right side.
source code
 
fillList(self)
Fill the serverList with the items in self.servers.
source code
 
fillWidgets(self, index)
Fill the other widgets with their correct values when a new item is selected in the serverList.
source code
 
readConfiguration(self)
Read the 'SERVERn' configuration information.
source code
 
updateConfiguration(self)
Update configuration about the servers information.
source code
 
setSelection(self, index)
This unselects all indexs in the ListCtrl and reselects only the one you want.
source code
 
onNew(self, event)
Create a new server item and give it the default configuration.
source code
 
onDelete(self, event) source code
 
onItemSelected(self, event)
When a server is selected from the list, fill the other widgets so that their values reflect the chosen server configuration.
source code
 
onItemEdited(self, event)
Change the name of an item if it does not conflict with another name.
source code
 
onColClick(self, event)
On a column click delect any selected item.
source code
 
onHost(self, event)
Set the 'host' of the server.
source code
 
onPort(self, event)
Set the 'port' of the server.
source code
 
onPortChecked(self, event)
Update the 'use_default_port' option.
source code
 
onAuthChoice(self, event)
Select 'authentication' type.
source code
 
onUser(self, event)
Set the 'username'
source code
 
onPass(self, event)
Set the 'password'
source code
 
onRSAChecked(self, event)
Set the 'use_default_path' option to use default path.
source code
 
onPath(self, event)
Set the rsa/dsa path, 'path'
source code
 
onSelect(self, event)
Select the 'path' from a file dialog.
source code
 
onRSAPass(self, event)
Set the rsa/dsa password, 'passphrase'
source code
 
onCancel(self, event)
Cancel this addition.
source code
 
onOK(self, event)
Verify the selection.
source code
 
refresh(self)
Read in the configuration data.
source code

Inherited from wx._windows.Panel: Create, SetFocusIgnoringChildren, __repr__

Inherited from wx._core.Window: AcceptsFocus, AcceptsFocusFromKeyboard, AddChild, AdjustForLayoutDirection, AssociateHandle, CacheBestSize, CanSetTransparent, CaptureMouse, Center, CenterOnParent, Centre, CentreOnParent, ClearBackground, ClientToScreen, ClientToScreenXY, Close, ConvertDialogPointToPixels, ConvertDialogSizeToPixels, ConvertPixelPointToDialog, ConvertPixelSizeToDialog, DLG_PNT, DLG_SZE, Destroy, DestroyChildren, Disable, DissociateHandle, DragAcceptFiles, Enable, FindWindowById, 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, SendSizeEvent, 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

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 pdfpanel.PDFPanel: setToolTips

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

Static Methods [hide private]

Inherited from wx._windows.Panel: GetClassDefaultAttributes

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

Properties [hide private]

Inherited from wx._windows.Panel: thisown

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, Point pos=DefaultPosition, 
    Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, 
    String name=PanelNameStr) -> Panel

Overrides: wx._windows.Panel.__init__
(inherited documentation)

addServer(self, name)

source code 
Add a new server to the servers dictionary.

Returns the index of the added server.

fillList(self)

source code 
Fill the serverList with the items in self.servers.

This clears ths list first and then leaves the default server selected,
if it exists.

readConfiguration(self)

source code 
Read the 'SERVERn' configuration information. 

The configuration information is placed in the servers list.  Each
server has its own section with the name 'SERVERn' where 'n' is a
non-negative integer. Each section have the same options; the options
which appear in the servers dictionary defined in addServer above.

updateConfiguration(self)

source code 
Update configuration about the servers information.

This clobbers server information already in the configuration. Each
server is given its own section titled 'SERVERn', where 'n' is the index
of that server in the serverList. Each of these sections is given an
option with the same name and value as its corresponding dictionary
entry in self.servers. It also records the 'DEFAULT_SERVER', the value
of the currently selected item in the tree, under the option 'server'.
If this option is -1, localhost is assumed.

setSelection(self, index)

source code 
This unselects all indexs in the ListCtrl and reselects only the one
you want. If index = -1, all items are deselected.

onCancel(self, event)

source code 
Cancel this addition. Go back to the last panel.

refresh(self)

source code 
Read in the configuration data.

Overrides: pdfpanel.PDFPanel.refresh