Commit Graph

220 Commits

Author SHA1 Message Date
Chris Michael fdd0788581 remove dead comment
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-16 10:17:25 -05:00
Chris Michael bea867665f clear grid on scroll
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-16 10:16:27 -05:00
Andy Williams ece1313bc1 Don't write a string into an unknown length of buffer.
Change contract of _server_name_get to take the const char and return a newly allocated string
2014-12-14 19:23:40 +00:00
Chris Michael eb055ef1bf start on appending text to the grid (version 2) ;)
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-12 15:09:42 -05:00
Chris Michael 5b06da057e comment out debug messages
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-12 15:08:20 -05:00
Chris Michael f1ab6b82e2 use an eina_binbuf to store channel text (the theory is that we will
write the text to the actual grid in an idler maybe)...

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-11 14:48:01 -05:00
Chris Michael 5ccfbc70e8 add ability to send messages to the proper channels
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-11 14:14:34 -05:00
Chris Michael f063c61121 Add ability to resolv server actual name (from IP address). This is
going to be used so we can send messages to specific channels, but the
messages come in with the actual server name (ie: not irc.freenode.net
but the Actual name), so we need to resolv the IP address from
ecore_con into a real server name.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-11 14:12:42 -05:00
Chris Michael ef33c33479 fix compile error about missing attribute field
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-11 10:58:58 -05:00
Chris Michael d9bc981bfa add utility functions for supporting double-width
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-09 15:34:21 -05:00
Chris Michael 0f1eb8c49a add 'colors' files to build order
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-09 15:33:07 -05:00
Chris Michael 363345c26b fix formatting
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:28:51 -05:00
Vincent Torri ae6d4d6a55 Windows: fix compilation of the binary
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:28:14 -05:00
Vincent Torri cfa71f1b55 Windows: first part : compilation of the library
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:27:35 -05:00
Vincent Torri dd3d10f7b2 autotools: fix copy/paste
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:27:01 -05:00
Vincent Torri 433227fa92 autotools: use proper layout for configure.ac, reorganise a bit .am and .pc files
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:26:41 -05:00
Vincent Torri 7e4d2fb36c autotools: remove dlopen check (unused) and -lm in .pc
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-08 10:24:59 -05:00
Chris Michael 692f58c421 start on grid cell allocation so we can get to displaying text ;)
NB: unfinished yet

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-05 16:04:27 -05:00
Chris Michael bc848afcdc Implement scrollbar saving based on Terminology scrollback using LZ4
compression

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-05 15:04:16 -05:00
Chris Michael 7746ec04bd add lz4 compression code for scrollback
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-05 14:42:59 -05:00
Chris Michael 36fcc3cb21 add lx4 compression to Makefile
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-05 14:42:46 -05:00
Chris Michael 8b457455ec Add grid_save files to build order
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-03 15:44:41 -05:00
Chris Michael 8604c79ab5 Fix compilation errors
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-03 15:44:41 -05:00
Chris Michael f8d4573fa1 Move grid structure to header file, add function calls to register a
grid for saving.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-03 15:44:41 -05:00
Chris Michael 287d80370e Start on scrollback compression code (grid_save).
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-03 15:44:41 -05:00
Andy Williams 11ffa432eb Fix the way we send usernames - should address issues with password warnings from servers 2014-12-02 22:04:30 -06:00
Chris Michael d2451bbb9a replace hard-coded "express" name with PACKAGE_NAME
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 16:39:41 -05:00
Chris Michael c1f6d6e7ad disable opacity slider if translucent gets turned off
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 15:27:54 -05:00
Chris Michael 0db9795f21 Fix resizing of grid and window.
Fix issue of size_hint_change causing grid to get larger

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 15:10:54 -05:00
Chris Michael e87014fab2 cleanup channel objects on delete
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 13:48:43 -05:00
Chris Michael e8a015db81 add function to set the grid window so we can do smart callbacks for
selection

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 13:31:41 -05:00
Chris Michael 573bf99ef4 disable creating test channel
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 12:49:06 -05:00
Chris Michael 9e4c78eb47 add hooks to save missing network config values
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 12:38:43 -05:00
Chris Michael 82ac30d8cb add support for setting window opacity
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 12:28:24 -05:00
Chris Michael 3101a2f410 add support for setting window opacity in General options
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 12:28:07 -05:00
Chris Michael 15c47412f8 add support for setting window opacity in config
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-02 12:27:55 -05:00
Chris Michael 4ba8df80e8 hook callbacks to save config when nickname or username is changed
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:35:48 -05:00
Chris Michael 35eb26c5f6 don't crash if user nickname is not set
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:35:27 -05:00
Chris Michael 86d7b94706 Use WEIGHT_SET and ALIGN_SET macros
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:21:12 -05:00
Chris Michael 99aee29f57 add macro for ALIGN_SET
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 11:21:03 -05:00
Chris Michael 414c8ec675 express: Trap for channel size being to small so we can enforce a
minimum window size that makes sense.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 10:47:57 -05:00
Chris Michael 2dbbdaf0a3 express: Create dummy tab for testing
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-12-01 10:41:28 -05:00
Chris Michael b2c045a1d8 Start processing network callbacks (this is prep for showing txt).
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:32:08 +00:00
Chris Michael b4099082d9 Add function declarations for server_motd and other messages
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:31:46 +00:00
Chris Michael a8c76761e6 Add begnings of channel_text_append
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:31:26 +00:00
Chris Michael 8df5efe032 Add function declaration for appending text to channels.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:31:01 +00:00
Chris Michael 6080340b9b Add _window_channel_find function.
Centralize window_channel_destroy code to use window_channel_find.
Add callbacks for server & channel messages.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:30:01 +00:00
Chris Michael 238e87cbe5 Add function declaration for finding a channel by name
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:29:46 +00:00
Chris Michael 461ce36642 Cleanup network data processing code.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:28:48 +00:00
Chris Michael 423b34b3e0 Use a buffer to save server data from ecore_con:
NB: Needed due to ecore_con sending partial messages sometimes, so now
we can just accumulate them until the message is complete, then parse
it.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-20 17:27:25 +00:00
Chris Michael a00740b30e Actually create/destroy Channel tabs when a server gets connected/disconnected.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 14:40:03 +00:00
Chris Michael 8d846d373e Make _selector_destroy a local function (does not need to be exposed).
Centralize window channel creation.
Add function to show options toolbar.
Add functions to create/destroy channels based on network.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 14:38:44 +00:00
Chris Michael 6c5b7deac4 Add function declarations for creating/destroying channels based on
network.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 14:38:17 +00:00
Chris Michael cf4bf9fdce Remove dead line
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 14:04:14 +00:00
Chris Michael 45eae315a1 Create an idler to handle connecting to networks after the window is
shown.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 12:05:08 +00:00
Chris Michael 01d3350980 Add callbacks to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 12:04:49 +00:00
Chris Michael eb4733c6a9 Quiet done network data process
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 12:04:24 +00:00
Chris Michael edbddea696 Add callbacks file
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 12:04:02 +00:00
Chris Michael 7ba0d6d295 Remove dead commented code
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 11:38:10 +00:00
Chris Michael b9a63f145d Big giant "rework" commit to redo the UI code (faster, easier to
manage).

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-19 11:11:32 +00:00
Chris Michael 83aec7d775 Fix selection of standard fonts on load
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-16 17:24:21 +00:00
Chris Michael 00791b0793 Add an idler after the window is shown.
Connect to configured networks when idle.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:46:26 +00:00
Chris Michael 83a0f0fa19 Add server name to options frame.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:46:08 +00:00
Chris Michael b80b35ff0b Add express gui log domain color
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:45:44 +00:00
Chris Michael 3e706e125c Add callback to free server hash data.
Add callbacks for ecore_con server events.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:45:01 +00:00
Chris Michael dd47b83e11 Add server file to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:44:42 +00:00
Chris Michael a25045d33d Add server file to library
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:44:29 +00:00
Chris Michael ce415c787f Add some more API functions for server.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:44:08 +00:00
Chris Michael ccd72f1ed1 Make Express_Server structure private.
Add internal functions to send user, nick, etc to server.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 15:43:10 +00:00
Chris Michael 3603f243f7 Only accept numbers on the port entry for server options
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-14 08:51:12 +00:00
Chris Michael 3b04a53b7a Add some comments
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 16:31:10 +00:00
Chris Michael ce5d4f4769 Create a blank, Empty Channel if nothing has been configured yet.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 16:28:28 +00:00
Chris Michael 5ffeea7a4e Create channels based on actual configuration now :)
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 16:24:48 +00:00
Chris Michael f51cf8f4b0 Hook frame delete so we don't leak allocated Font structures.
When we load Fonts, we allocate a Font structure and store it into a
list, so when we delete the Font options, we should be freeing that
memory.

NB: Someone May want to port this to Terminology.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 15:57:57 +00:00
Chris Michael 48523fab64 No need for 'data' in the server add callback.
'base' is unused in options_servers function.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:51:48 +00:00
Chris Michael 54af688de4 Add channel options hook
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:51:21 +00:00
Chris Michael 63cb46bf00 Add channel options to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:51:07 +00:00
Chris Michael 0c5ab80753 Add channel options file
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:50:57 +00:00
Chris Michael 65cb20bd6b Add function declaration for channels option
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:50:41 +00:00
Chris Michael f466aa1838 Use the "changed,user" signal for text entries
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:38:40 +00:00
Chris Michael 86b3ff4735 Add hook for server option.
Adjust hide timer

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:38:14 +00:00
Chris Michael e189efd361 Add server options to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:37:56 +00:00
Chris Michael b0715803b0 Add servers option file
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:37:46 +00:00
Chris Michael dd018af0aa Add function declaration for servers option
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 14:37:30 +00:00
Chris Michael 749772ad9e Reorganize some code
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 13:17:17 +00:00
Chris Michael 6e726d2e8b Remove unused variable
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:55:19 +00:00
Chris Michael 67d9315dc4 Make network option table not expand height.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:55:04 +00:00
Chris Michael 558919dc93 When adding/editing a network, just toggle the "network options toolbar"
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:46:39 +00:00
Chris Michael 5db484d3be Toggle "network options toolbar" off when we dismiss main options toolbar.
Code cleanup (remove extra static variable).

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:45:32 +00:00
Chris Michael b7dd837fb7 Add tools file to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:45:03 +00:00
Chris Michael 728675b4b1 Add file for building Network options "toolbar"
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:44:41 +00:00
Chris Michael 7c49b80376 Add function declaration for "tools" option
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 12:44:23 +00:00
Chris Michael 7ab95751f9 Add network options for autoconnect, ssl, and proxy
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 05:25:12 +00:00
Chris Michael 1959f4e16f Add code for Add/Remove/Edit of networks
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael d1d378ab06 Rework size/align on some widgets
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael a18b1e7fb5 Select toolbar item after adding it
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael 3d1d953e87 Add network options to build order
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael 21bb366e42 Add function declaration for network options
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael 48efe1d04d Start on network edit dialog
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-13 04:07:45 +00:00
Chris Michael e74060f01a Add code for network selection to enable buttons.
Start on network deletion code.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
2014-01-11 12:22:52 +00:00