1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-19 20:38:00 +01:00
Commit Graph

28 Commits

Author SHA1 Message Date
Andrew Psaltis
2685a49779 curses/curses_misc.py:
Modified TextDialog to use a listbox as opposed to one long text box
  Aligned the header on the right in Dialog2 by default
curses/wicd-curses.py:
  Removed the traceback if the user presses ctrl+c
  Refactored about_dialog to support the modified TextDialog
  Added a help dialog.  Raise it with "H"
  Refactored some code in the appGUI constructor so that I can recycle update_netlist()
curses/TODO, curses/README, in/man=wicd-curses.8.in:
  Help dialog now active
in/man=wicd-curses.8.in: Removed redundant scipt selector command
2009-01-13 18:13:24 -05:00
Andrew Psaltis
0385fd088e Progress is being made, apparently
curses/curses_misc.py:
  Made Dialog a bit more generic with the new Dialog2, also supports mouse events.
  Included TextDialog and InputDialog as subclasses of Dialog2
curses/netentry_curses.py:
  Changed error() to support Dialog2
  Added support for mouse events
curses/prefs_curses.py:
  Added support for mouse events
curses/wicd-curses.py:
  Added support for wicd's hidden wireless-network functionality
  (Really) finished refactoring for the changes in ComboBox
  Made some transitions a bit more immediate by calling update_ui() manually
  Refactored to about_dialog to support Dialog2
  Added support for mouse events (clicking to select, mostly)
  Added support for retaining current list netlist focus throughout screen updates
  (Hopefully) Added support for handling an instance of 0 available wireless
    networks
in/man=wicd-curses.8.in: Hidden network support is fully functional
man/wicd-client.1: Added a word. (You'll live.)
setup.py: From last commit: Added the python "shebang" to the top of the file
2009-01-11 19:40:29 -05:00
Andrew Psaltis
84cb49a6fc curses/prefs_curses.py:
Finished refactoring to accommodate the ComboBox changes
curses/wicd-curses.py:
  Moved some of the keybinding code around
in/other=WHEREAREMYFILES.in: ADDED.
  File telling the user where the wicd config files are.  Usually symlinked to
    ~/.wicd/WHEREAREMYFILES and installed to the documentation directory
in/scripts=wicd-client.in:
  Make ~/.wicd and link WHEREAREMYFILES if it has not been done so already.
  Start wicd-curses if there is no X server on this console
    (determined by the presence of $DISPLAY), and add a file detailing this
man/wicd-client.1: Added note about wicd-client starting wicd-curses
setup.py: Install WHEREAREMYFILES along with the rest of the documentation
2009-01-11 13:05:01 -05:00
Andrew Psaltis
d1846cb627 curses/curses_misc.py:
Refactored some ComboBox internals
  Renamed show_first to focus in ComboBox
  Added callback support
curses/netentry_curses.py:
  Renamed NetEntryBase to AdvancedSettingsDialog, and WirelessNetEntry to
    WirelessSettingsDialog
  The "WirelessSettingsDialog" is complete. :-)  Raise it by pressing "C" on a wireless
    network.  Much of the code was taken from netentry.py.  The buttons aren't pretty
    like they are in the Preferences Dialog, but they are fully functional.
curses/prefs_curses.py:
  Refactored to accommodate the ComboBox changes
  Added a warning about changing backends
curses/wicd-curses.py:
  Refactored to accommodate changes to the rest of the program
  Added a constantly displayed message saying how to exit the program, other than
    ctrl+c
curses/TODO: Removed a bunch of stuff that is already implemented, added some stuff that
    needs to be implemented
curses/README: Added/clearified some things
2009-01-09 20:42:12 -05:00
Andrew Psaltis
4ab56b1183 Checkpoint in WirelessNetEntry development
curses/curses_misc.py:
  Refactored some DynWrap internals
  Added MaskingEdit, a password edit
  Modified ComboBox to use a DynWrap internally instead of an AttrWrap
curses/netentry_curses.py:
  Added most of the WirelessNetEntry.  It doesn't save information yet, but it does
    load most of it.  Support for viewing the templated network settings is not
    implemented yet.
curses/wicd-curses.py:
  Activated support for the WirelessNetEntry configurator.  The wired one is not
    implemented yet.
2009-01-06 19:02:27 -05:00
Andrew Psaltis
68036d91ac curses/curses_misc.py:
Added DynWrapper, a wrapper class with which we can dynamically change the
    selectability of a widget.
  Removed ToggleEdit, replaced by DynWrapper.
curses/netentry_curses.py: ADDED.  Network entry configurator dialog.
  Has a base class for the common elements of the wired/wireless NetEntries.
curses/prefs_curses.py: Replaced ToggleEdits with DynWrapped Edits.
curses/wicd-curses.py:
  Rebuilt the connect function into the main keyhandler.  I discovered that
    implementing that the way I had previously done it would have made
    displaying the dialogs a bit more difficult
  Added support for running the NetEntry selector
in/man=wicd-curses.8.in, curses/README:
  Modified to say that the NetEntry dialog is now a WIP (Raise it with 'C')
setup.py:
  Install netentry_curses.py if we are installing the rest of the curses client
  Install the man page only if we want to install the rest of the man pages and
    the curses client
2009-01-04 20:33:31 -05:00
Andrew Psaltis
5b8417e8a8 curses/curses_misc.py:
meta+left/right now sets focus back to whereever you were in the list.
curses/wicd-curses.py:
  Made a custom combobox for the wired networks.  The one during the last commit was actually the wireless list.
  (Hopefully) made the wired network show up when it is actually active.
  Removed appGUI.call_connect and appGUI.connect.  They are no longer needed.
in/man=wicd-curses.8.in: ADDED.  wicd-curses(8) man page
setup.py: Install the above man page if we are installing the rest of the curses client
2009-01-03 22:57:41 -05:00
Andrew Psaltis
0b0f3e0968 curses/curses_misc.py:
meta+right or meta+left now move the selected tab right and left respectively.  Focus goes back to the tabs, though.
  Fixed a bug in ComboBox where show_first does nothing
  Restored get_selected to its original state
curses/prefs_curses.py:
  Moved the automatic reconnect category to "General Settings"
  Made the backend selector actually select the selected backend at first
  Reset the button statuses each time we load the settings
  meta+enter now saves+closes the preferences dialog
curses/wicd-curses.py:
  Turned the wired list into a list of custom SelTexts, so that they can do the connecting/script-choosing/configuring/etc, instead of the dialog itself
  Offset the version in the about dialog a little less
  Recycle the old preferences dialog instead of making a new one if we run it more than once
2009-01-02 22:12:58 -05:00
Andrew Psaltis
8ed394abf3 curses/*.py: updated copyrights to include 2009
curses/wicd-curses.py: Fixed missing comma in the About Dialog text
2009-01-01 00:36:08 -05:00
Andrew Psaltis
f0466be6b8 curses/curses_misc.py:
Added a Dialog class, mostly borrowed from a urwid example
curses/prefs_curses.py:
  Added the DNS domain to the dialog, as was done in the GTK UI
curses/wicd-curses.py:
  Added a semi-pretty about dialog.
curses/README: Activating about dialog is done by "A"
2009-01-01 00:30:53 -05:00
Andrew Psaltis
64741b032a curses/curses_misc.py:
Added a get_edit_text function to ToggleEdit.
  Changed the get_selected function in ComboBox to return the index only.
curses/prefs_curses.py:
  Completed the load+save functions of the UI
  Buttons are now functional.  Only selecting the OK button will save the data for now.
curses/wicd-curses.py:
  Added support for the "Always Show Wired Interface" config option
  Completed support for the preferences dialog
curses/TODO,README: Preferences dialog is done. :-)
2008-12-30 23:10:18 -05:00
Andrew Psaltis
5fd6cca50b Yet another checkpoint in building the Preferences Dialog up to completion. Some of the code isn't used yet, but this should all be done relatively soon.
curses/curses_misc.py:
  Added a function in the ToggleEdit to set its text to something
  Changed the name of ComboText to ComboBox
  Provided the ability to generate the initial parts of a ComboBox w/o needing the screen.
  Added ComboBoxException, a simple derived exception for the ComboBox.  Used it to die of the user never called build_combobox()
curses/prefs_curses.py:
  Changed the names of some of the widgets.
  Adjusted the code to use the modified ComboBox widget
curses/wicd-curses.py:
  Adjusted the code to use the modified ComboBox widget
2008-12-30 21:27:41 -05:00
Andrew Psaltis
2db3b3e60d Checkpoint in getting the Preferences dialog functional. There's still some tweaking left to do.
curses/curses_misc.py: Changed the internal layout of the widgets to allow me to stick buttons on the bottom.
curses/prefs_curses.py: Added rudimentary Dbus support to the dialog.
Started getting the config settings to save to wicd.
Added buttons (which don't do anything yet).
The PrefOverlay has been renamed to PrefsDialog.  The PrefsDialog widget is wrapped around a TabColumns widget.
Added a main entry point into the file to allow for somewhat easier testing.  It can now be called indepentently of wicd-curses, if needed.
curses/wicd-curses.py: Undid a change that caused the ESC key to disconnect from the current network, in addition to its current function.
2008-12-29 22:04:40 -05:00
Andrew Psaltis
98a1a74c49 curses/wicd-curses.py: Fixed a problem where any use of the wired network combo box would prevent connecting to wired networks.
Added some semblance of a "working" indicator while connecting, a simple |,/,-,\,|,/,...
2008-12-28 11:36:41 -05:00
Andrew Psaltis
689d31b098 curses/curses_misc.py: Added a tabbed interface widget for use in the preferences dialog.
curses/prefs_curses.py: Converted the code to use the tabbed interface found in curses_misc.py.  The dialog now fills up the terminal, but it still does nothing.
curses/wicd-curses.py: Turned the "list" wired section of the interface to a combo box.
2008-12-27 22:35:58 -05:00
Andrew Psaltis
0d4811b129 curses/curses_misc.py: ADDED. Various urwid classes that I use throughout the program.
curses/prefs_curses.py: Frontend is complete.  However, it is still missing buttons and the ability to save information.  Removed code that is now in curses_misc.py.
curses/wicd-curses.py: Removed code that is now in curses_misc.py.  Tweaked the visuals a little bit.
curses/README: Preferences configuration is a WIP now.
curses/TODO: A combo box has been implemented in curses_misc.py, so that part has been removed.  Also added a part about making a man page.
2008-12-27 00:18:03 -05:00
Andrew Psaltis
780a05cef3 curses/prefs_curses.py: ADDED. A basic global preferences dialog. Has a tabbed interface. It is missing things such as buttons, external program controls, advanced settings, and the ability to save information. :-)
curses/wicd-curses.py: Some code cleanup, replaced the language mess with the GUI list in misc, and added support for running the Preferences dialog with 'P'.
curses/README: Added the keybindings to bring up the preferences dialog.
2008-12-26 13:48:26 -05:00
Andrew Psaltis
fb96a229bb Merged with the 1.6 sources (r227), and
curses/wicd-curses.py: modified the program so that it can run off of the experimental API.
Cleaned up some of the code.
2008-12-23 21:24:49 -05:00
Andrew Psaltis
b1475ce12c Big one this time. Hopefully I got everything.
curses/wicd.curses.py:
Added the full language component from wicd.misc into the file.
Added support for connecting to networks :-).
Added statusbar-updating support during connections.
Fixed a problem where an exception found before the UI is on-screen will cause another exception in wrap_exceptions.
Turned the footer into a ListBox, so that I can add more than more stuff to it more easily.
Rearranged the order of strings in the wireless connection part of the UI.
Added a bunch of keymappings to support all of the new functionality.
Made the UI updating function into an idle function, to better support the new functionality (and it eats up less CPU, too).
Some minor code cleanup throughout.
curses/README: Updated to correspond with new features
curses/TODO: Removed connection support from the TODO, added a few other things.
2008-12-20 16:32:19 -05:00
Andrew Psaltis
f80c04c98d curses/wicd-curses.py: Redesigned the internal list so that the wired network information is always at the top, no matter the number of wireless networks present. 2008-12-19 12:34:03 -05:00
Andrew Psaltis
c7e63acbfd curses/wicd-curses.py: Moved the primary entry point to outside of the appGUI class, added some comments to improve code readability 2008-12-18 22:55:20 -05:00
Andrew Psaltis
76fcc3e7c6 curses/wicd-curses.py: Removed a lot of redundant code related to focus on the main ListBox widget. Set focus=True in the frame's rendering function
made everything so much easier.
2008-12-18 16:39:24 -05:00
Andrew Psaltis
a72b99ad59 curses/wicd-curses.py: fixed a bug (missing 'self.') in dbus_scan_finished 2008-12-18 00:07:00 -05:00
Andrew Psaltis
868469ef90 curses/wicd-curses.py: Added code to restore the console on all errors, and then print them, including KeyboardInterrupts.
curses/TODO: Removed the above from TODO
2008-12-17 11:27:09 -05:00
Andrew Psaltis
d23af83371 curses/wicd-curses.py: Colorized the network we're currently connected to.
That network is now updated every time that wicd tells us that the "status" has changed.
Network connection status is now updated every 2 seconds, instead of every 0.5.
2008-12-15 17:50:00 -05:00
Andrew Psaltis
d8ae040ae6 curses/wicd-curses.py: Cleaned up code for the Net/ListElements. Added '>' to mark to currently selected network. Set gen_network_list() to output signal quality in units specified in the config. 2008-12-14 01:04:23 -05:00
Andrew Psaltis
64fd3940d6 curses/wicd-curses.py: Add gobject.MainLoop support, and enable the D-Bus function connections (It works!). Various comments/code cleanup done.
curses/README: f5 refreshes the netlist now
curses/TODO: Added a bunch of features to implement, and removed one of them.
2008-12-13 16:06:11 -05:00
Andrew Psaltis
23297b3f7e Let there be light!
curses/wicd-curses.py: ADDED (new (very incomplete) curses UI)
curses/README: ADDED (Simple README. Hope it says enough for the moment)
curses/TODO: ADDED (Simple, incomplete, TODO list)
2008-12-13 13:29:07 -05:00