frontends: XMLUI refactoring + dialogs:
- there are now XMLUIPanel and XMLUIDialog both inheriting from XMLUIBase
- following dialogs are managed:
- MessageDialog
- NoteDialog
- ConfirmDialog
- FileDialog
- XMLUI creation is now made using xmlui.create(...) instead of instanciating directly XMLUI
- classes must be registed in frontends
- "parent" attribute renamed to "_xmlui_parent" to avoid name conflicts with frontends toolkits
This commit is contained in:
parent
38efb8b0bd
commit
b6563c596b
1 changed files with 516 additions and 228 deletions
|
|
@ -24,7 +24,6 @@ from sat_frontends.primitivus.constants import Const as C
|
|||
import wx
|
||||
from sat.core.log import getLogger
|
||||
log = getLogger(__name__)
|
||||
from sat.tools.jid import JID
|
||||
|
||||
|
||||
NO_SELECTION_ENTRY = ' '
|
||||
|
|
@ -147,7 +146,7 @@ class ProfileManager(wx.Panel):
|
|||
return
|
||||
if self.selected_profile:
|
||||
self.profile_name.SetValue(self.selected_profile)
|
||||
self.host.profile = profile_name # FIXME: EXTREMELY DIRTY, needed for sat_frontends.tools.xmlui.XMLUI._xmluiLaunchAction
|
||||
self.host.profile = profile_name # FIXME: EXTREMELY DIRTY, needed for sat_frontends.tools.xmlui.XMLUI.submit
|
||||
self.host.launchAction(C.AUTHENTICATE_PROFILE_ID, {'caller': 'profile_manager'}, profile_key=profile_name)
|
||||
|
||||
def onConnectButton(self, event):
|
||||
|
|
|
|||
Loading…
Reference in a new issue