Commit graph libervia-backend/frontends
Author SHA1 Message Date
Goffi
679e5759bb quick frontend (quick widgets): class' __name__ method is used for classes_map hash because the use of class directly was causing bugs with pyjamas (difficult to find, several MicroblogPanel instances were added only once in Libervia's TabPanel, hash method seemed buggy) 2015-02-06 19:05:51 +01:00
Goffi
f9f86f67a1 quick frontend (quick_widgets): add deleteWidget method 2015-02-06 19:03:13 +01:00
Goffi
31c7776f03 quick frontends (QuickContactList): added isEntityInGroup method 2015-02-06 19:02:10 +01:00
Goffi
588d65132c Quick Frontend (quick_widgets): added on_existing_widget in getOrCreateWidget (see docstring for more infos) + use of constants 2015-02-06 19:01:06 +01:00
souliane
3ee9f140df remove remaining references to Wix 2015-01-24 16:12:50 +01:00
Goffi
8ce5c1862b core, frontends: refactoring to base Libervia on QuickFrontend (big mixed commit):
/!\ not finished, everything is still instable !
    - bridge: DBus bridge has been modified to allow blocking call to be called in the same way as asynchronous calls
    - bridge: calls with a callback and no errback are now possible, default errback log the error
    - constants: removed hack to manage presence without OrderedDict, as an OrderedDict like class has been implemented in Libervia
    - core: getLastResource has been removed and replaced by getMainResource (there is a global better management of resources)
    - various style improvments: use of constants when possible, fixed variable overlaps, import of module instead of direct class import
    - frontends: printInfo and printMessage methods in (Quick)Chat are more generic (use of extra instead of timestamp)
    - frontends: bridge creation and option parsing (command line arguments) are now specified by the frontend in QuickApp __init__
    - frontends: ProfileManager manage a more complete plug sequence (some stuff formerly manage in contact_list have moved to ProfileManager)
    - quick_frontend (quick_widgets): QuickWidgetsManager is now iterable (all widgets are then returned), or can return an iterator on a specific class (return all widgets of this class) with getWidgets
    - frontends: tools.jid can now be used in Pyjamas, with some care
    - frontends (XMLUI): profile is now managed
    - core (memory): big improvment on entities cache management (and specially resource management)
    - core (params/exceptions): added PermissionError
    - various fixes and improvments, check diff for more details
2015-01-24 01:00:29 +01:00
Goffi
f45e55388f Wix removal: Wix is now officially abandonned (a futur desktop frontend will replace it) 2015-01-24 00:15:01 +01:00
Goffi
1b0d6ecc30 quick_frontend, primitivus: moved parts of primitivus's profileManager to quick_frontend 2015-01-24 00:14:58 +01:00
Goffi
e4708c9cbb quick_frontend, primitivus: multi-profiles refactoring part 1 (big commit, sorry :p):
This refactoring allow primitivus to manage correctly several profiles at once, with various other improvments:
    - profile_manager can now plug several profiles at once, requesting password when needed. No more profile plug specific method is used anymore in backend, instead a "validated" key is used in actions
    - Primitivus widget are now based on a common "PrimitivusWidget" classe which mainly manage the decoration so far
    - all widgets are treated in the same way (contactList, Chat, Progress, etc), no more chat_wins specific behaviour
    - widgets are created in a dedicated manager, with facilities to react on new widget creation or other events
    - quick_frontend introduce a new QuickWidget class, which aims to be as generic and flexible as possible. It can manage several targets (jids or something else), and several profiles
    - each widget class return a Hash according to its target. For example if given a target jid and a profile, a widget class return a hash like (target.bare, profile), the same widget will be used for all resources of the same jid
    - better management of CHAT_GROUP mode for Chat widgets
    - some code moved from Primitivus to QuickFrontend, the final goal is to have most non backend code in QuickFrontend, and just graphic code in subclasses
    - no more (un)escapePrivate/PRIVATE_PREFIX
    - contactList improved a lot: entities not in roster and special entities (private MUC conversations) are better managed
    - resources can be displayed in Primitivus, and their status messages
    - profiles are managed in QuickFrontend with dedicated managers


This is work in progress, other frontends are broken. Urwid SàText need to be updated. Most of features of Primitivus should work as before (or in a better way ;))
2014-12-10 19:00:09 +01:00
souliane
5781d78d2b frontends (quick_app): fixes wrong JID construction when processing getPresenceStatuses result 2014-10-18 13:02:41 +02:00
Goffi
4ba87c6050 bridge (frontends side): fixed call of async method in blocking context 2014-10-16 20:18:40 +02:00
souliane
cf106bde77 primitivus: fixes displaying online contacts when "Show offline contacts" is False 2014-10-07 11:45:34 +02:00
souliane
c850615a2d primitivus: implement parameter "Show empty groups" 2014-10-06 13:54:41 +02:00
souliane
e554934f31 primitivus: implement "Show offline contacts" parameter (sync with "DISCONNECTED_HIDE" action key) 2014-10-06 12:44:58 +02:00
souliane
e34a9a77e4 frontends (primitivus): new command :search <pattern> 2014-10-04 10:26:10 +02:00
souliane
767f3d50dc bridge, memory: add "search" attribute to getHistory (filter the results with a unix globbing pattern) 2014-10-04 10:25:32 +02:00
souliane
7a344fcf5d frontends: printInfo and printMessage timestamp attribute defaults to None instead of '' 2014-10-04 10:23:13 +02:00
souliane
4f339272b7 memory: add Parameter "Chat history limit" 2014-09-24 13:49:43 +02:00
souliane
ac59d061f4 memory (params), tools (xml_tools), plugins, frontends: add "int" parameter type with "min" and "max" attributes 2014-10-03 12:27:43 +02:00
Matteo Cypriani
71e29f5c44 misc: fixed some typos 2014-09-15 14:18:25 +02:00
Olly Betts
202ea95767 wix: Avoid setting a bad icon
From 6fb18309a1d971235c0c3d568704fd91809d2d6e Mon Sep 17 00:00:00 2001
The code tries to load an icon from 'icons/crystal/32/tray_icon.xpm'
(relative to self.media_dir), which is part of sat_media, released
independently by upstream and not yet part of Debian.

It then tries to set this invalid icon.  With wxPython 2.8 these
issues get quietly ignored, but wxPython 3.0 reports them.  As a
simple workaround I've just added a check that the icon is valid
before setting it, so now you get a messagebox about the icon file
not being found and then the app starts.

Obviously it would be better to package sat_media so that the icon is
available on the system.
2014-09-09 18:51:35 -04:00
Goffi
3a983b17db frontends (dbus): error is not truncated anymore if it's not a SàT error. 2014-09-08 21:23:21 +02:00
Goffi
befbf322ea primitivus: added a FOCUS_EXTRA key (default: "ctrl f") which can be used to focus a main part:
- ctrl f + 1 (or m) to focus menu
    - ctrl f + 2 (or b) to focus body
    - ctrl f + 3 (or n) to focus notifications bar
    - ctrl f + 4 (or e) to focus edit bar
2014-09-08 19:19:32 +02:00
Goffi
171f1677d2 Primitivus (xmlui): fixed window closing on save params + removed now unused onConfigureRoom in Chat 2014-09-08 18:32:36 +02:00
Goffi
9d070c01fd Primitivus: fixed cancel button for status change 2014-09-08 18:15:15 +02:00
Goffi
ab8bc3cddd Primitivus: fixed focus in ContactList:
current behavious is temporary and will need to be rethinked a bit: if FOCUS_SWITCH is pressed, the focus change on top widget, if FOCUS_UP/DOWN is pressed, focus will throught contact list.
2014-09-08 18:14:51 +02:00
Goffi
4b53275a9a Primitivus: main_widget is now in its own class (PrimitivusTopWidget), menu and notification bar (un)hidding is cleaner 2014-09-08 15:50:51 +02:00
Goffi
9a04bc6d32 Primitivus (file transfer): an error popup is shown when bad unicode is used in path, and an info popup is show to indicate that the file request has been sent 2014-09-08 15:50:51 +02:00
Goffi
a1b79a7296 primitivus (profile manager): added FOCUS_UP and FOCUS_DOWN management 2014-09-08 15:50:49 +02:00
Goffi
67af90d334 primitivus: added REFRESH_SCREEN key to global namespace 2014-09-06 17:34:26 +02:00
Goffi
17b1f461db primivitus: info messages now use "info_msg" attribute (yellow) 2014-09-05 19:29:30 +02:00
Goffi
b41bda0a18 frontends: use of new "info" type in newMessage 2014-09-05 19:29:30 +02:00
Goffi
8544b5868a primitivus: added disable_mouse config option /!\ minimal Urwid version is now 1.2.0 2014-09-04 20:30:57 +02:00
Goffi
5b2e887317 primitivus: fixed forgotten keys 2014-09-04 20:24:41 +02:00
Goffi
30ff971087 primitivus: forgot to rename _historyCb method 2014-09-04 19:40:43 +02:00
Goffi
c39333cd3f primitivus: SIGINT is now ignored, APP_QUIT key/menu or :quit command must be used to quit Primitivus 2014-09-04 19:05:57 +02:00
Goffi
49f7ebc67c primitivus: profile manager now handle APP_QUIT key 2014-09-04 19:05:57 +02:00
Goffi
747cc31583 primitivus: moved history method definition out of keypress 2014-09-04 19:05:57 +02:00
Goffi
c019542729 primitivus: key can be changed in config:
- new config module manage configuration
    - if any configuration error happen, config parsing is stopped, and a popup appear + a log error
    - key can be changed with key_[action_name] = [shortcut]
    - early popup (popup happening before main widget is built, e.g. in profile manager) are managed
2014-09-04 19:05:57 +02:00
Goffi
c45ba71f2a primitivus: use of new keys modules from Urwid SàText 2014-09-04 19:05:57 +02:00
souliane
0443149ef8 sat_frontends (tools): force JID's node and domain to lower-case:
- this changeset should go with a modification of PRIVATE_PREFIX, but the change has been already (accidentally) pushed with the previous changeset
2014-08-26 13:33:12 +02:00
souliane
987cfbf89d move sat.tools.jid to sat_frontends.tools.jid 2014-08-26 12:52:46 +02:00
Goffi
706782eeb1 primivitus: fixed jid escaping for dynamic menus in one2one chat 2014-08-25 21:32:23 +02:00
souliane
7afc9b83fa primitivus (chat): fixes the messages display when opening a new chat window 2014-08-24 18:39:32 +02:00
souliane
3cee372b02 quick_frontend, primitivus: add primitivus command ":history [limit]" (default value for limit is 50) 2014-08-23 20:26:04 +02:00
souliane
4d6d762aa8 primitivus: improve the check to alert for new message 2014-08-24 18:23:55 +02:00
souliane
e72f7d728c primitivus: prevent a notification flood when displaying the history 2014-08-22 12:31:55 +02:00
souliane
261d5296d4 primitivus: change behavior of commands ":presence" and ":status" :
- ":presence " and ":status " open a dialog (like if you type it without the trailing space)
    - you need to type ":presence online" to directly reset your presence (was done with ":presence " before)
    - there's no more way to directly set an empty status (you now do it via the dialog)
2014-08-23 20:11:37 +02:00
souliane
162b310cd7 quick_frontend: fixes an issue with the profile in the signal handler 2014-08-21 22:46:57 +02:00
Goffi
38c4e128ad frontends: dialog don't crash anymore is no submit_id is given (submit does nothing in this case) 2014-08-20 21:16:14 +02:00