Commit Graph

494 Commits

Author SHA1 Message Date
Christopher Michael 468998fca6 Add initial start of code to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84127
2013-02-19 10:55:36 +00:00
Christopher Michael 6cf9624275 Add header function for monitors_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84126
2013-02-19 10:55:33 +00:00
Christopher Michael 5216fb097a Add initial monitor code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84125
2013-02-19 10:55:30 +00:00
Christopher Michael 8a53055d3a Tell randr widget to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84124
2013-02-19 10:55:28 +00:00
Christopher Michael 6521caab40 Add header function for creating new monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84123
2013-02-19 10:55:25 +00:00
Christopher Michael 3fd758facc Cleanup compile warnings and include randr object header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84121
2013-02-19 10:55:20 +00:00
Christopher Michael 6b96e9c961 Add code to handle the layout object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84119
2013-02-19 10:55:14 +00:00
Christopher Michael daa2b49ab9 Create the randr widget in _basic_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84118
2013-02-19 10:55:09 +00:00
Christopher Michael 4dfda15a8d Initial rewrite of the monitor object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84117
2013-02-19 10:55:07 +00:00
Christopher Michael fbb5baea84 Initial rewrite of randr widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84116
2013-02-19 10:55:04 +00:00
Christopher Michael d874b1ed9c Remove old randr code from dialog creation.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84115
2013-02-19 10:55:01 +00:00
Christopher Michael 0410b43549 Remove old randr widget code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84113
2013-02-19 10:54:55 +00:00
Christopher Michael f117b3de1d Add function for setting monitor position text.
Fix some comments.
When the monitor object gets moved, update the position text.

NB: Hopefully this helps a little for people having monitor "black
out" issues after moving things around. At least now you can See what
the position will be.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82887
2013-01-16 13:33:27 +00:00
Christopher Michael 37908f9b73 When searching for the next resolution to snap to, do Not skip
refresh_rate checks (allows resize events which keep the current rate).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82884
2013-01-16 11:56:44 +00:00
Christopher Michael 01eb2c4cc0 Various fixes for some resizing issues as reported by Thanatermesis.
- Don't bother trapping mouse movements outside of the monitor.
 - Simplier test for resizing above/below max/min resolution.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82883
2013-01-16 11:56:36 +00:00
Christopher Michael 39e9f03048 No need to convert frame geometry to virtual...we can just compare
actual canvas geometry when doing collision detection.

Port the previous "JackDanielz" fix (using frame geometry vs using
object geometry) to the actual move function also.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82868
2013-01-16 09:01:30 +00:00
Christopher Michael 4a49bf8b05 When moving monitors around, use the geometry of the monitor frame to
determine collision/intersection for cloning reasons (needed due to
monitor object itself having some padding around the frame which was
causing erroneous intersection calculations).

NB: Calling this one the JackDanielZ fix ;)

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82867
2013-01-16 08:41:48 +00:00
Christopher Michael 44b62de0b6 Add monitor function to return geometry of the actual frame object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82866
2013-01-16 08:41:34 +00:00
Christopher Michael f518182cf8 Use output name first instead of monitor name. Fall back to monitor
name if output has no name.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82863
2013-01-16 08:07:00 +00:00
Christopher Michael 272907949e Pass the new orientation to map remove so we can resize the frame
properly.
When we start a rotate event, record the starting rotation.
When we stop rotating, mung in the starting rotation value.
Just fetch geometry once when we stop rotating.
Update the current orientation After we are done removing the map (on
rotate stop).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82862
2013-01-16 08:06:57 +00:00
Christopher Michael 1cca680d13 When getting the amount of rotation, use the frame geometry (as that
is where the rotation event actually happens), instead of the geometry
of the whole monitor object.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82861
2013-01-16 08:06:54 +00:00
Christopher Michael 2c034a27b9 Add function to remove an applied map (for making bg and text look
proper after rotation).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82860
2013-01-16 08:06:40 +00:00
Mike Blumenkrantz 839a2f3f15 move all conf2 options for opening config dialogs into the owner module
SVN revision: 82727
2013-01-13 13:28:56 +00:00
Christopher Michael 11ab438c80 When we create monitors and are checking for clones, just use x/y
position, not size for comparison.

When we create monitors, assign the proper crtc to the monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82330
2013-01-07 07:39:57 +00:00
Christopher Michael 721d4385a9 Some fixes for Intel cards:
Do not set enabled until after a current mode is set.
Update original size after we set current mode.
Add an original cloned value we can track.
Add code to apply just cloning changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82329
2013-01-07 07:39:54 +00:00
Christopher Michael 4c76f30a57 Fix compile: Use the proper smart data variable.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82328
2013-01-07 07:39:52 +00:00
Christopher Michael 4f572243c1 When we clone/un-clone, also set a Changed on the position so that
Apply will handle new geometry for the monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82327
2013-01-07 07:39:49 +00:00
Christopher Michael 4fadc7bf7f When we initially create the monitors, also set the original cloned
value.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82326
2013-01-07 07:39:47 +00:00
Christopher Michael 12a420c9ab Add support for marking dialog changes if the user unclones a monitor
and does nothing else.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82325
2013-01-07 07:39:45 +00:00
Christopher Michael 98b9bdaf79 Add prototype for cloned_set function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82324
2013-01-07 07:39:42 +00:00
Christopher Michael 3bbf2da0b8 Add a Changed_Clone to enum.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 82323
2013-01-07 07:39:39 +00:00
Mike Blumenkrantz 580b884d41 fix uninitialized var in randr config dialog which potentially broke initial monitor layout
SVN revision: 81593
2012-12-21 21:35:17 +00:00
Maxime Villard 4a52c46268 From: Maxime Villard <rustyBSD@gmx.fr>
Subject: [E-devel] [e][PATCH] Optimizations v2
Date: Fri, 21 Dec 2012 22:17:32 +0100

Hi,
same patch as before: removed useless nullchecks and
switched some free()'s to E_FREE().



SVN revision: 81592
2012-12-21 21:31:13 +00:00
Mike Blumenkrantz 27896bfae3 stringshare leak--
SVN revision: 81531
2012-12-21 10:15:41 +00:00
Christopher Michael 69cb1822e1 Fix monitor apply settings.
NB: According to a conversation with T_UNIX, we actually do use the
ecore_x randr functions to apply the config.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81377
2012-12-19 15:39:51 +00:00
Christopher Michael 829558db50 Fix randr widget applying settings as per discussion with T_UNIX.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81376
2012-12-19 15:39:47 +00:00
Christopher Michael be20b9d15d Add some debugging for disabled monitors.
If we are trying to add a disabled monitor, check for possible outputs.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81368
2012-12-19 14:21:50 +00:00
Christopher Michael 75981aa321 Set struct field for Enabled/Disabled Before we try to find possible
crtc.
If the monitor's crtc does not have a current_mode (because it was
previously disabled), then grab the last available mode (typically the
largest) and set the crtc current_mode to that.
Add some debugging for Enable/Disable.
Remove code which was trying to use ecore_x calls to re-enable a
monitor.
Use the randr function for trying to enable an output (if previously
disabled).

NB: Enable/Disable Does work, HOWEVER in my testing I have found that
when you re-enable a monitor, you will need to completely back out of
X and restart it in order for the Monitor to show output again. Unsure
if this is an X bug or something in e_randr or someother weirdness....

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81367
2012-12-19 14:21:47 +00:00
Christopher Michael 7829e00b45 Comment out some debugging printfs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81351
2012-12-19 11:04:35 +00:00
Christopher Michael 1d174b11ba Add header for crtc_set function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81350
2012-12-19 11:04:32 +00:00
Christopher Michael 80539b0c9a Fix smart monitor object to handle disabled monitors more gracefully.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81349
2012-12-19 11:04:28 +00:00
Stefan Schmidt b2663a26fa e/conf_randr: Move radio creation into the block that needs it.
Discussed with devilhorns.

SVN revision: 81339
2012-12-19 09:47:40 +00:00
Christopher Michael 16c88a39bd Update UNUSED for basic apply function as we do not need the config
dialog here anymore.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81266
2012-12-18 15:27:59 +00:00
Christopher Michael 394885c2e6 And don't pass the root window to the apply function anymore
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81265
2012-12-18 15:21:00 +00:00
Christopher Michael 58ef1a0190 Remove root window as function parameter for apply function (not used
anymore).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81263
2012-12-18 15:16:49 +00:00
Christopher Michael 1d6ea657a9 Remove root window as a function paramater (not used anymore).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81262
2012-12-18 15:16:44 +00:00
Christopher Michael 6c3a3d14d3 Check if a monitor supports rotation (via different orientations), and
if not then disable the rotate ability on the frame.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81261
2012-12-18 15:16:39 +00:00
Christopher Michael 4709380a02 If we change size on the monitor, be sure to set the current mode.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81256
2012-12-18 14:44:08 +00:00
Christopher Michael 817207bad1 Be more proactive when we create monitors:
If during the process of monitor creation, we reach one that is
  cloned into a parent monitor, but the parent monitor has not been
  created yet, then add it to a deferred list so we can create it (and
  swallow it) into the parent monitor.

Make use of the existing e randr serialization to save/restore settings.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81255
2012-12-18 14:16:12 +00:00
Christopher Michael f40b20b7a9 Be sure to set output policy if we are cloned or not.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81254
2012-12-18 14:15:48 +00:00
Christopher Michael 9e2fb834b9 When telling the monitor to apply changes we should check to see what
actually changed and update things accordingly.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81236
2012-12-18 11:13:49 +00:00
Christopher Michael 649446a72e Add safety check for valid zone. If we do not have one, return current
one.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81227
2012-12-18 09:35:19 +00:00
Cedric BAIL db610957a7 e: seriously, WTF with all this non resizable config setting window, it's insane !
SVN revision: 81199
2012-12-18 03:25:45 +00:00
Christopher Michael 373bd3ce00 Add function for a monitor to apply it's changes.
NB: This is needed because apparently the e_randr serialization code
works DIRECTLY on the E_Randr_Info structures (E_Randr_Output_Info,
etc, etc). Sooo, in order to save and restore a randr config, we need
for the monitor to update those structures First before we tell
e_randr to save things else it will save with incorrect values.

NB: This is the START of save/restore configuration work.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81161
2012-12-17 15:46:55 +00:00
Christopher Michael 66d8162518 Add function prototype for a monitor to apply it's changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81160
2012-12-17 15:46:52 +00:00
Carsten Haitzler 92380c140d nth from eina list returns data. .not list node...
SVN revision: 81153
2012-12-17 15:31:36 +00:00
Christopher Michael 30484c09cf Fix TODO note for recent Enable/Disable commit.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81149
2012-12-17 14:29:02 +00:00
Christopher Michael 507e6a25fb Fetch all current monitor values once (rather than a fetch for each
change).
Add code to apply Disabled/Enabled state.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81140
2012-12-17 13:42:15 +00:00
Christopher Michael 3ba73d30d8 Add function to return current enabled state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81139
2012-12-17 13:42:12 +00:00
Christopher Michael cce210cd53 Make randr dialog not resizable.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81138
2012-12-17 13:42:08 +00:00
Christopher Michael 230a80bc2a Add function prototype for returning enabled state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81137
2012-12-17 13:42:04 +00:00
Christopher Michael 059d1139fe Provide method to compute a proper layout size (needed for case of
blank config).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81135
2012-12-17 12:55:35 +00:00
Christopher Michael 3f84da5d34 If we unclone (from a blank config) than we need to update the current
x/y of the monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81134
2012-12-17 12:55:32 +00:00
Christopher Michael 5016734bc9 Remove comment/todo that does not belong here.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81133
2012-12-17 12:55:29 +00:00
Christopher Michael e49d7dcad2 Remove blank line.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81132
2012-12-17 12:55:27 +00:00
Christopher Michael 54267c8ad8 Remove dead comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81131
2012-12-17 12:55:22 +00:00
Christopher Michael 3c270359ce Delete any cloned monitors when we delete the main one.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81124
2012-12-17 11:35:16 +00:00
Christopher Michael f224102a0b Fix "mini clone" movement when a monitor moves.
Fix "mini clone" movement when a monitor resizes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81122
2012-12-17 11:30:41 +00:00
Christopher Michael 91ddccec87 Fix monitor clone position for the case of "initial blank setup"
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81114
2012-12-17 10:22:01 +00:00
Christopher Michael b55027332b Remove some erroneous printfs.
When we are uncloning, don't use crtc geometry but rather use the
monitors visual position.
When we show, we need to re-apply any existing rotation (in case
monitor is uncloned).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81113
2012-12-17 10:21:57 +00:00
Christopher Michael 9ec140a681 Add code to start working with no previous config and nothing
specified in xorg (ie: blank setup). We will detect (manually) what is
cloned and setup accordingly. (NB: Still needs work).
Add function to find a monitor based on crtc id (used for blank setup
clones).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81111
2012-12-17 09:21:08 +00:00
Christopher Michael fb6c724151 Add some printfs (commented out).
When we unclone a monitor (on initial startup), if it has not been
manually placed yet, use the crtc geometry for position & size.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81110
2012-12-17 09:21:05 +00:00
Christopher Michael 7d6a9cd155 Set randr widget minimum size to proper values.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81109
2012-12-17 09:21:02 +00:00
Christopher Michael a3cf759911 Add function to randr widget to return the best layout size.
Modify widget creation to use randr layout size function:
  NB: Needed because we cannot rely on E_RANDR_12->current_size to
provide us with something usable.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81108
2012-12-17 09:20:59 +00:00
Christopher Michael 99d170a6a9 Comment out some debugging printfs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81107
2012-12-17 09:20:56 +00:00
Christopher Michael fa0264ef5c Add function to return the list of monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81106
2012-12-17 09:20:53 +00:00
Christopher Michael 2a4d3cb73e Add smart callback hook for monitor changed.
Add functions to return randr widget changed state.
Add function to randr widget so we can apply changes.
Add single randr_changed_set function (reduce duplicated code).
Use E_INSIDE to determine cloning.
Remove some printfs.
Call randr_changed_set where needed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81105
2012-12-17 09:20:49 +00:00
Christopher Michael 6e1b9916f3 Add prototypes for randr_changed_get and randr_changes_apply functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81104
2012-12-17 09:20:46 +00:00
Christopher Michael 0b31476241 Add prototypes for smart monitor functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81103
2012-12-17 09:20:44 +00:00
Christopher Michael b0d6204b83 Add a clone object (mini to represent this monitor).
Record monitor's current geometry when move starts (so if we unclone
we can restore the position).

Port Raster's mouse pointer changes to new dialog :)

Fix refresh_rate fill function to take the monitor object (needed so
we can raise changed signal).

Add functions for getting the "current" information from the monitor
object (Used during apply).

Fix up swallowing and unswallowing of clones so that they restore
to the original position (before cloning).

Fix up smart move & resize function to not apply map if not visible.

Use a single "map_apply" function (reduce duplicated code).

Hook into radio changed (refresh rate) so we can send the changed
signal.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81102
2012-12-17 09:20:41 +00:00
Christopher Michael 6e7b845965 Hook into the randr widget "changed" event.
Call the randr widget apply function to handle applying changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81101
2012-12-17 09:20:38 +00:00
Christopher Michael 551b576a4b Don't set mouse pointer to "move" if this is a cloned monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81096
2012-12-17 09:20:17 +00:00
Christopher Michael 690fe7a419 Ignore mouse events on cloned monitors.
Ignore resize events on cloned monitors.
Ignore rotate events on cloned monitors.
Don't set the moving flag if this monitor is cloned.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81095
2012-12-17 09:20:13 +00:00
Christopher Michael a23ebcd608 Introduce new RandR dialog which fixes issues that the past one had.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81094
2012-12-17 09:20:07 +00:00
Christopher Michael 8ca8923989 Introduce new randr dialog which fixes issues that the past one had.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81093
2012-12-17 09:20:04 +00:00
Christopher Michael 710b996818 Add code to limit resize not go below minimum resolution.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81090
2012-12-17 09:19:55 +00:00
Christopher Michael d603306b70 Add code to limit resize to the maximum resolution.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81089
2012-12-17 09:19:52 +00:00
Christopher Michael 45c77f4f64 Update comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81088
2012-12-17 09:19:49 +00:00
Christopher Michael c1aab4d679 Add code to get the 'current' refresh rate on monitor setup.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81087
2012-12-17 09:19:46 +00:00
Christopher Michael e0fd5aee63 Fix resize start and stop signals to pass the object also.
Add preliminary function for handling resize.
Add functions to set resizing flag on start & stop.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81086
2012-12-17 09:19:44 +00:00
Christopher Michael 395b19b28e Add basic infrastructure for resize start/stop signals.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81085
2012-12-17 09:19:41 +00:00
Christopher Michael 33bc78ad1f Fix some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81084
2012-12-17 09:19:38 +00:00
Christopher Michael fa99b6d3f0 Remove debug printf.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81083
2012-12-17 09:19:36 +00:00
Christopher Michael e0ebab8576 Implement filling the refresh list.
Fix a todo for common modes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81082
2012-12-17 09:19:33 +00:00
Christopher Michael 5e48a93502 Add a field in the monitor structure to store the canvas.
Add refresh rate object to monitor structure
Add refresh rate field to store the current rate.
Add start of refresh_rate fill function.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81081
2012-12-17 09:19:30 +00:00
Christopher Michael 5c76922851 Remove 'hack' to setting rotation cursor.
Implement e_pointer way of setting it.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81080
2012-12-17 09:19:27 +00:00
Christopher Michael f18f5572aa Add function prototypes to header(s) where missing.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81079
2012-12-17 09:19:25 +00:00
Christopher Michael 467da0c1a5 Add some debugging (will be removed after testing).
Add function to handle packing a monitor into the layout.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81078
2012-12-17 09:19:22 +00:00
Christopher Michael 13eb1a0321 Add flags in new monitor structure for enabled, moving, resizing, rotating.
Add field(s) in the smart data structure to store the layout widget reference along with layout geometry and size.
Add code to set the monitor name.
Add code to set the resolution name.
Add code to set enabled/disabled state.
Add code to handle when the layout widget gets moved so we can update the recorded geometry.
Add livethumb background preview.
Add edje signal callbacks for resize, rotate, and indicator.
On monitor deletion, remove the bg_update_handler, and free the list of modes.
Add code to handle manual user moving of monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81077
2012-12-17 09:19:19 +00:00
Christopher Michael 9bdafc8d2d Move dialog resizable set call to the basic_create function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81076
2012-12-17 09:19:16 +00:00
Christopher Michael 1fce126fe4 Start of new randr dialog & monitor widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81075
2012-12-17 09:19:13 +00:00
Christopher Michael ca89888917 Use consistent internal naming for randr dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81074
2012-12-17 09:19:10 +00:00
Christopher Michael c5d7fb5a2e Add header file for RandR dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81073
2012-12-17 09:19:07 +00:00
Christopher Michael da45a71d87 Add new module files with e_modapi functions needed for module creation.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81072
2012-12-17 09:19:05 +00:00
Christopher Michael 3b74f38de2 Remove old randr code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81071
2012-12-17 09:18:59 +00:00
Carsten Haitzler d77fca2234 also all the pointer push/pops are going to be bad in that they mess
with the manager pointer... that is bad - at most mess with your own
win pointer.. push and pop that. fix... and use plus pointer for power
led button so it doesnt look like the hand ptr for dragging. :)



SVN revision: 81019
2012-12-15 13:30:13 +00:00
Carsten Haitzler 1f7c977b79 ummm randr.. why do pointer differently for rotate.. when e_poitner
already does it? fix - use e_pointer.



SVN revision: 81018
2012-12-15 13:18:10 +00:00
Mike Blumenkrantz e1c9e8e529 randr dialog resizable
SVN revision: 80152
2012-12-04 13:00:47 +00:00
Mike Blumenkrantz 68e6b07cd7 all dialogs are no longer resizable
SVN revision: 80032
2012-12-03 09:24:12 +00:00
Mike Blumenkrantz c6a9c34e7f giant header overhaul which removes all the stupid one line function prototype headers and e_mod_main.h headers that contain nothing but unnecessary module api prototypes
SVN revision: 79908
2012-11-30 14:38:34 +00:00
Mike Blumenkrantz d9792a7777 improve randr rotate snapping calculations
SVN revision: 79815
2012-11-29 06:59:29 +00:00
Mike Blumenkrantz 82ab56808b fix randr config registry name, fixes reopen on restart
SVN revision: 79809
2012-11-29 05:40:35 +00:00
Massimo Maiurana 8314c3b95c updating various translations
SVN revision: 79519
2012-11-21 19:45:32 +00:00
Christopher Michael e5a6beaa9e Also show refresh rate in the popup menu.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 79450
2012-11-19 13:19:06 +00:00
Massimo Maiurana eac882bdcd updating portuguese and italian translations
SVN revision: 79335
2012-11-15 10:49:47 +00:00
Mike Blumenkrantz e5903f4740 add support for and use eina_list_last_data_get
SVN revision: 79144
2012-11-12 10:05:09 +00:00
Carsten Haitzler f534e30089 put lucas's makefiles back.. but what do you do to make it not break
between builds from older vs newer makefile setup?



SVN revision: 79024
2012-11-09 14:49:05 +00:00
Carsten Haitzler 5fa813e1cc lucas... u're going to hate me... but i'm reverting this whole lot of
module build chnages because its fundamentally broken. it DOES NOT
PRODUCE .SO FILES. just .la and .a files. the only reason u dont
notice is.. you ALREADY had .so's installed. i just got in from the
airport... synced and updated.. rebuilt and was met with all modules
not loading... literally - no .so's are installed int he module dirs.
try rm -rf the instaleld module tree.

regardless... this has to be reverted be3cause it's a major break. the
idea is right/nice. the implementation is causing... problems.



SVN revision: 79015
2012-11-09 10:45:35 +00:00
Lucas De Marchi 0000e87ffc e/modules: delete old Makefile.am's
SVN revision: 78983
2012-11-07 21:50:53 +00:00
Lucas De Marchi 92eee9068a e: use AM_CPPFLAGS instead of INCLUDES
Get rid of warnings like below with recent automake (1.11 and newer):
src/bin/Makefile.am:6: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/bin/Makefile.am: installing './depcomp'
src/modules/access/Makefile.am:11: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')



SVN revision: 78720
2012-10-31 20:40:40 +00:00
Massimo Maiurana 6f4591eed2 updating russian translation
SVN revision: 78648
2012-10-30 12:10:17 +00:00
Christopher Michael 222c3326fd E Randr: Don't show outputs which are not connected.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78388
2012-10-24 06:28:01 +00:00
Christopher Michael 00fb03ce4c E (RandR): Remove unused function & prototype.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78188
2012-10-18 13:00:48 +00:00
Christopher Michael 461c733145 E (RandR): Use a "normal" resolution (640x480) not (640x640).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78187
2012-10-18 12:59:44 +00:00
Christopher Michael 4a09315601 E (RandR): Better monitor movement/snapping.
NB: Still not 100%. There are some corner cases where things fall
through :( If someone wants to jump in and help finish this off, that
would be great :) It's very close to being done.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 78186
2012-10-18 12:59:32 +00:00
Carsten Haitzler c824b1a1e1 fix segv's in randr dialog. :)
SVN revision: 77943
2012-10-13 03:18:58 +00:00
Christopher Michael cd0ad11fa8 E (RandR): After we have applied the changes for a monitor, tell it to
'reset'.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77891
2012-10-11 14:29:20 +00:00
Christopher Michael 44a95f2797 E (RandR): Add function to 'reset' a monitor's changes. This is used
after any user modifications have been applied so that we an reset the
'original' values to the 'currently applied' values. This helps to
keep the Apply button in sync.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77890
2012-10-11 14:29:17 +00:00
Christopher Michael c063ed25ac E (RandR): Add function prototype to reset monitor changes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77889
2012-10-11 14:29:13 +00:00
Christopher Michael 39bb5b2bbd E (RandR): Skip monitor during apply if no changes were made.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77888
2012-10-11 14:29:10 +00:00
Christopher Michael 79339fb431 E (RandR): Remove dead code lines.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77887
2012-10-11 14:29:07 +00:00
Christopher Michael 1756c3de92 E (RandR): Remove dead comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77886
2012-10-11 14:29:04 +00:00
Christopher Michael e0bb649b07 E (RandR): Reduce potential variable usage in geometry_get function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77885
2012-10-11 14:29:01 +00:00
Christopher Michael 931a9f4d05 E (RandR): Remove dead code line.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77884
2012-10-11 14:28:58 +00:00
Christopher Michael 24d5040564 E (RandR): If we have a crtc when getting monitor geometry, then use
that for width & height.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77883
2012-10-11 14:28:51 +00:00
Christopher Michael 62644089e9 E (RandR): Setup defaults before we assign output & crtc.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77882
2012-10-11 13:51:39 +00:00
Christopher Michael c9edc0c734 E (RandR): If the monitor does not have a CRTC because it was
disabled, try to find an available one so that we can re-enable the
monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77881
2012-10-11 13:51:33 +00:00
Christopher Michael bc3d8d18e2 E (RandR): Fix case where a disabled monitor would show up with no
mode, or size.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77879
2012-10-11 13:01:04 +00:00
Christopher Michael 888e820aca E (RandR): Remove dead debug code. Reenable crtc check to avoid
potential segv.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77877
2012-10-11 12:49:47 +00:00
Christopher Michael 33952ef188 E (RandR): Remove dead debug code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77876
2012-10-11 12:49:44 +00:00
Christopher Michael 6e89ed1e0c E (RandR): Rework Applying the randr settings. Now we will only need
to apply what has changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77874
2012-10-11 12:42:40 +00:00
Christopher Michael c59e752325 E (RandR): Add function to get if randr widget changed.
Rework the "changed" code so that now Apply will enable/disable
correctly based on what changes are in the monitors.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77873
2012-10-11 12:42:37 +00:00
Christopher Michael f7ee5261b9 E (RandR): Add function prototype to get if randr widget changed.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77872
2012-10-11 12:42:34 +00:00
Christopher Michael 71eeb7c458 E (RandR): Whitespace removal.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77871
2012-10-11 12:42:31 +00:00
Christopher Michael e005f0d4bf E (RandR): Add some internal functions to reduce duplicated code
(background set, modes_fill, etc.
Add structure to smart_data so we can store original values and
current values. This allows us to selectively apply changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77870
2012-10-11 12:42:29 +00:00
Christopher Michael 21bf9173f5 E (RandR): Add function prototype to get any changes from the monitor.
Add enum so that we can keep track of exactly what has changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77869
2012-10-11 12:42:26 +00:00
Christopher Michael f4cc7d989d E (RandR): Use monitor function to get proper output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77868
2012-10-11 12:42:23 +00:00
Christopher Michael 23fb072172 E (RandR): Add function to retrieve monitor's output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77867
2012-10-11 12:42:20 +00:00
Christopher Michael 2ab321cf3b E (RandR): Add function prototype to retrieve monitor's output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77866
2012-10-11 12:42:00 +00:00
Christopher Michael 01edd96d74 E (RandR): Fix issue where disabled monitors would not show up
correctly.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77761
2012-10-10 12:59:56 +00:00
Christopher Michael dbc528c0f9 E (RandR): Create monitors based on outputs, not crtcs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77760
2012-10-10 12:59:53 +00:00
Christopher Michael 18432a087c E (RandR): Add checks for current_mode being valid.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77747
2012-10-10 10:31:17 +00:00
Christopher Michael 9fa4848a0e E (RandR): Don't segfault if no current_mode is set for a monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77746
2012-10-10 10:29:09 +00:00
Christopher Michael 596d53e06a E (RandR): Limit size of livethumb to be the maximum canvas size of
the monitor object. (should reduce memory footprint for randr dialog).

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77744
2012-10-10 10:23:33 +00:00
Christopher Michael fed73888f6 E (RandR): Make sure we have hTotal and vTotal from the mode before
trying to calculate refresh rate.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77743
2012-10-10 10:10:25 +00:00
Christopher Michael 5d376283c9 E (RandR): Ooops, remove unused variable.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77726
2012-10-10 08:46:07 +00:00
Christopher Michael 3db9434a48 E (RandR): When we search for a resolution, if we did not find one
which matched the existing refresh rate, then search again but do not
take refresh rate into account.

NB: Should fix Raster's "resolution not changing" problem.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77724
2012-10-10 08:45:00 +00:00
Christopher Michael 236117cd86 E (RandR): Do not 'snap' monitors on rotation. It changes the position
of them in the layout and thus causes problems when we Apply these
changes.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77720
2012-10-10 08:14:20 +00:00
Christopher Michael cc188bee3a E (RandR): Check if a monitor has been changed before doing an Apply.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77715
2012-10-10 07:55:13 +00:00
Christopher Michael 136cc5035a E (RandR): Add function & prototype to return if a monitor has been
changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77714
2012-10-10 07:55:11 +00:00
Christopher Michael 5347a339b3 E (RandR): Actually, let's readd the changed flag so we can skip a
monitor during Apply if it has not changed.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77713
2012-10-10 07:55:08 +00:00
Christopher Michael 8b5d261d50 E (RandR): Remove dead code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77712
2012-10-10 07:55:06 +00:00
Christopher Michael b10d7e3c9a E (RandR): Remove dead code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77711
2012-10-10 07:55:03 +00:00
Christopher Michael 98a5532b44 E (RandR): Support applying enable/disable of a monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77710
2012-10-10 07:55:00 +00:00
Christopher Michael c646c7de26 E (RandR): Add function to return monitor's connected state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77709
2012-10-10 07:54:57 +00:00
Christopher Michael f2d5c58121 E (RandR): Add function prototype for getting monitor's connected state.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77708
2012-10-10 07:54:48 +00:00
Christopher Michael 8ff992b7a7 E (RandR): Remove _fill_data function (not needed). Implement Applying
of any changes to monitors.

NB: Be careful ... this will actually apply any changes now. Tested
here and appears to work ok, but YOU HAVE BEEN WARNED !!! If you apply
something and it turns your monitor into a paperweight, don't cry to me.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77693
2012-10-10 06:20:41 +00:00
Christopher Michael 40e42c4d28 E (RandR): Add function prototypes for getting position, orientation,
and mode from monitor.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77692
2012-10-10 06:20:39 +00:00
Christopher Michael 1f1640f77b E (RandR): Add function prototype to randr widget so we can retrieve
list of monitors.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77691
2012-10-10 06:20:37 +00:00
Christopher Michael 47977be1ca E (RandR): Use output->monitor first to get resolutions (if it exists), then
fallback to output->crtc common modes if needed.

No need to drop duplicate resolutions anymore, in fact we should list
them due to different refresh rates.

Add functions to smart monitor object for getting position,
orientation, and mode info.

When searching for a resolution within snapping fuzziness, also try to
find one which matches the current refresh rate.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77690
2012-10-10 06:20:33 +00:00
Christopher Michael 24127f1a01 Set randr widget to changed when we receive the proper signals,
regardless if monitor matches or not.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77643
2012-10-09 12:19:39 +00:00
Christopher Michael 23e171b7b7 Actually, use the real rate value from the mode. This allows similar
modes with the same rate to correctly select the proper radio.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77642
2012-10-09 12:15:09 +00:00
Christopher Michael 51fa6fc413 Add method to list/select refresh rates.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77639
2012-10-09 11:55:40 +00:00
Christopher Michael 86eb503248 Fix RandR dialog icon.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77638
2012-10-09 11:55:37 +00:00
Mike McCormack 6b4b4f0ae1 e: Fix unused variable warnings
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 77588
2012-10-08 20:55:43 +00:00
Christopher Michael 6cca89c83f Make on/off indicator toggling also send a changed event to the RandR
widget.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77570
2012-10-08 09:13:30 +00:00
Christopher Michael 38d31cf0c0 Make config dialog listen on "changed" signal from RandR smart object
to enable Apply button.

NB: Cannot use basic->check_changed here as the Monitor smart objects
do the changing, but the Randr smart object never does. Since
"check_changed" only listens on the main dialog widget (randr smart
object in this case), then the "check_changed" of dialog_view would
not work in this case.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77569
2012-10-08 08:39:46 +00:00
Christopher Michael 1405f6f949 Remove 'changed' flag for monitor smart object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77568
2012-10-08 08:39:43 +00:00
Christopher Michael c2521cbaaf Make RandR smart object support 'changed' so that the Apply button in
the config dialog can function properly.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77567
2012-10-08 08:39:39 +00:00
Christopher Michael 2dcd1bc3ba Make RandR dialog function as a Config Dialog.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77565
2012-10-08 07:56:18 +00:00
Christopher Michael 5ca309e0ad Remove dead code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 77438
2012-10-04 13:14:33 +00:00
Mike McCormack 5b4a058e44 e: Fix warning
e_smart_monitor.c:1036:29: warning: ‘mode’ may be used uninitialized in this function

Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 77427
2012-10-04 11:47:43 +00:00
Christopher Michael 0f5cd63f5a E (RandR): Add function to return if a specific monitor is moving. Add
function to "reposition" a monitor when move is finished. Implement
basic monitor moving (still has some issues tho).



SVN revision: 77367
2012-10-03 12:03:00 +00:00
Christopher Michael 4b9e05d0fc E (RandR): Update __UNUSED__ function parameters.
SVN revision: 77316
2012-10-02 12:25:36 +00:00
Christopher Michael 146ee272a4 E (RandR): Implement common layout_adjust function. Used when we
resize or rotate a given monitor so that the position of any adjacent
monitors gets updated. Currently works when resizing or rotating.



SVN revision: 77315
2012-10-02 12:24:35 +00:00
Christopher Michael 778c584fc8 E (RandR): Scrollframe swallows the layout so don't use
smart_member_add.



SVN revision: 77314
2012-10-02 12:16:55 +00:00
Mike McCormack ee8f7529bc e: Fix warnings
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 77304
2012-10-02 11:21:17 +00:00
Christopher Michael 6e3110b57b E (RandR): Fix corner cases for rotation not working. Fix rotation &
resize snapping. Oh, and implement a new feature: Resizing a monitor
While it is rotated in a different position ;)

NB: Next thing is actual Movement snapping, then on to saving config ;)



SVN revision: 77303
2012-10-02 11:20:12 +00:00
Christopher Michael d6e1350427 E (RandR): And get the proper mode based on rotation also so that
resize limiting functions propertly.



SVN revision: 77294
2012-10-02 08:58:16 +00:00
Christopher Michael d445520629 E (RandR): When we are finished resizing, we need to get geometry
based on the current rotation so we can find the proper mode.



SVN revision: 77292
2012-10-02 08:51:50 +00:00
Christopher Michael 3b7b05abf0 E (RandR): Populate the map using 'full' so that we account for any
existing rotation of the monitor object.



SVN revision: 77288
2012-10-02 08:47:34 +00:00
Christopher Michael 8d84c6e9cc E (RandR): Remove start_rotation from structure (not needed). Remove
some unused variables.



SVN revision: 77287
2012-10-02 08:40:14 +00:00
Christopher Michael 0ab246155d E (RandR): Use e_layout_child_geometry_get for rotate snap.
SVN revision: 77275
2012-10-01 14:22:51 +00:00
Christopher Michael 4f02f86438 E (Randr): Delete the menu on object deletion.
SVN revision: 77274
2012-10-01 14:19:52 +00:00
Christopher Michael d905aa1cc9 E (RandR): Use e_layout_child_geometry_get so that e_layout is kept in
sync.



SVN revision: 77270
2012-10-01 13:29:16 +00:00
Christopher Michael 16524abd60 E (RandR): Use e_layout_child_resize when doing rotation so that if
you try a Move after a Rotation is set, the move will actually move
the with a proper rotation now.



SVN revision: 77269
2012-10-01 13:19:43 +00:00
Christopher Michael 715048c75e E (RandR): Fix some weird rotation bug where the monitor would Jump to
a previous rotation when you started a rotate operation. Also, Fix up
a couple of functions to be more accurate (in terms of their name &
purpose).



SVN revision: 77267
2012-10-01 12:33:06 +00:00
Christopher Michael 0ae612a055 E (RandR): Don't need the "snapped" field in this structure anymore.
SVN revision: 77266
2012-10-01 11:43:41 +00:00
Christopher Michael 54984d38ef E (RandR): Reimplement "resizing other monitors" when a specific
monitor gets resized, so that we update the visual layout
appropriately. Also, do not raise "monitor_moved" callback for every
little move, rather wait until the move is finished and raise the
callback once.

NB: The "monitor_moved" callback frequency may change in the future.




SVN revision: 77265
2012-10-01 11:37:41 +00:00
Christopher Michael 12e76211d4 E (RandR): For now, do not raise "resized" signal with every movement,
just raise it once when it snaps to the closest resolution.

NB: This may change in the future but for now, let's keep the number
of callbacks down.



SVN revision: 77263
2012-10-01 10:33:32 +00:00
Christopher Michael 271a21df59 E (RandR): Add callbacks in randr widget for monitor_rotated and
monitor_moved. Add del hook for when monitor gets deleted so we can
cleanup callbacks. Fix monitor smart object to build.



SVN revision: 77261
2012-10-01 10:27:39 +00:00
Christopher Michael 7d6f95bc01 E (RandR): Raise callback signals for monitor_moved and
monitor_rotated so we can adjust positions in the randr widget.



SVN revision: 77260
2012-10-01 10:21:26 +00:00
Christopher Michael 37802a1b09 E (RandR): Fix monitor resize function to use e_layout_child_resize.
Implement basic monitor moving.

NB: This does not Snap yet, or move the other monitor(s).



SVN revision: 77256
2012-10-01 08:56:38 +00:00
Christopher Michael bc8f6e526a E (RandR): Make resolution popup menu actually set the object
resolution when selected.



SVN revision: 77247
2012-10-01 08:02:35 +00:00
Christopher Michael 640c9d67b3 E (RandR): Add 'moving' flag to smart_data. Fix some function calls to
not pass data (is not needed for those). Fix thumb_mouse_down to use
'obj' for changing pointer. Add 'move' function skeleton(s).




SVN revision: 77246
2012-10-01 07:42:47 +00:00
Christopher Michael 01db2abf19 E (RandR): Update mouse pointer when over the thumbnail to indicate
move is possible.

NB: Preparation for monitor moving.



SVN revision: 77243
2012-10-01 07:32:57 +00:00
Christopher Michael b4d2b87079 E (RandR): Cleanup some comments (nothing functional).
SVN revision: 77240
2012-10-01 07:17:43 +00:00
Christopher Michael f1ec38f0ae E (RandR): Add popup menu to display available resolutions (for TAsn).
SVN revision: 77239
2012-10-01 07:04:21 +00:00
Christopher Michael 65c331369b E (RandR): When we finish rotation, update monitor frame position.
SVN revision: 77205
2012-09-28 14:05:51 +00:00
Christopher Michael 4e9dd83e44 E (RandR): Fix corner case where rotation was done by user for a full
360 degrees and snapping was incorrect.



SVN revision: 77204
2012-09-28 12:43:43 +00:00
Christopher Michael 2b59153982 E (RandR): Don't "smart_member_add" the stand and frame...we want them
to be swallowed and be part of the base object.



SVN revision: 77202
2012-09-28 12:17:29 +00:00
Christopher Michael d5dcd71d83 E (RandR): Implement Rotation snapping. Remove Evas_Map as part of the
Smart_Data structure. Use an Evas_Map for rotation as the old man
suggested ;)

NB: This will snap to the closest Rotation (within a 45 degree
threshold), after the user has finished rotating.



SVN revision: 77201
2012-09-28 12:10:31 +00:00
Christopher Michael 3d62a1ccad E (RandR): Set resolution text on load, and also set the resolution to
the "potential" snapping resolution as the user resizes.



SVN revision: 77194
2012-09-28 09:49:24 +00:00
Christopher Michael adc5e6064c E (RandR): Allow toggle of output on/off (visually).
NB: This just implements on/off of monitor state "visually". No actual
changes applied via ecore_x_randr yet.



SVN revision: 77186
2012-09-28 09:06:08 +00:00
Christopher Michael de780ba00d E (RandR): Since we only need one map now (thanks old man), we can
remove the array, and fix the map cleanup also.



SVN revision: 77181
2012-09-28 07:53:25 +00:00
Carsten Haitzler 0a766a74ea fix up randr smart monitor code so livethumb is swallowed RIGHT so map
applies. :)



SVN revision: 77180
2012-09-28 07:44:44 +00:00
Christopher Michael e67f42cd0a E (RandR): Implement snapping.
NB: Allow free-form resizing. When the user is done resizing, the
monitor object will "snap" to the closest resolution based on the
object size.



SVN revision: 77179
2012-09-28 07:11:46 +00:00
Christopher Michael 50f569ff5e E (randr): We can actually optimize the searches a bit (given that the
list of modes is stored smallest to largest) based on if we are
shrinking or growing.



SVN revision: 77149
2012-09-27 10:19:34 +00:00
Christopher Michael 33ccce29fd E (randr): Implement some snap 'fuziness' for finding the next smaller
or larger resolution during a resize.



SVN revision: 77148
2012-09-27 10:14:58 +00:00
Christopher Michael 5d1a85b837 E Randr: Ooops, fix compile.
SVN revision: 77145
2012-09-27 09:44:17 +00:00
Christopher Michael 28eac48e9c E: Add start of new RandR dialog.
NB: IT IS NOT COMPLETE, DOES NOT APPLY SETTINGS, AND STILL NEEDS LOTS
OF WORK. Don't bother reporting bugs for it just yet, until it is
fully functional. Just adding it to svn in the hopes (hahahaha) that
others may want to jump in and help speed things along.



SVN revision: 77140
2012-09-27 09:22:05 +00:00
Mike Blumenkrantz 13a512c65a use pre-compiled randr edj, it's stupid that we recompile this every time when we ship every other module's theme as a binary
SVN revision: 76279
2012-09-07 06:54:13 +00:00
Massimo Maiurana c7b6d84347 updating portuguese and italian translations
SVN revision: 75634
2012-08-23 18:08:44 +00:00
Massimo Maiurana 96bef27c6f updating portuguese and italian translations
SVN revision: 75576
2012-08-22 21:51:00 +00:00
Chidambar Zinnoury f45d356c62 e: some more plural and times lovin'.
SVN revision: 73874
2012-07-15 11:39:50 +00:00
Massimo Maiurana f45c7dadfc updating italian translations
SVN revision: 73057
2012-06-29 21:55:37 +00:00
Leif Middelschulte 2c30c70a12 Use "changed" smart cb instead of mouse down.
SVN revision: 73011
2012-06-28 13:47:48 +00:00
Leif Middelschulte 04acb74d8b Revert "Merge branch 'randr'"
This reverts commit 5cd36c5dcb45ac48a1dc062fed5ac0d29c79efe3, reversing
changes made to 3bd4846cc3663a2488a47ed581045295fb322944.

SVN revision: 73009
2012-06-28 13:44:26 +00:00
Leif Middelschulte f939b664d7 Merge branch 'randr'
SVN revision: 73008
2012-06-28 13:35:19 +00:00
Leif Middelschulte 71a7ffc0c1 Use smart cb of radio button
SVN revision: 71567
2012-05-30 19:17:10 +00:00
Leif Middelschulte bdb66274c0 e_randr: Show "ask position" dialog, if ASK policy is used.
SVN revision: 71566
2012-05-30 19:16:58 +00:00
Cedric BAIL c2a29811d5 e: massiv warning cleanup !
SVN revision: 70756
2012-05-04 09:38:52 +00:00
Cedric BAIL e5cf6ffe36 e: prevent segv when their were no previous config.
SVN revision: 70682
2012-05-03 03:52:03 +00:00
Leif Middelschulte 481b027763 Remove unused variable.
SVN revision: 70506
2012-04-26 10:22:43 +00:00
Leif Middelschulte 6d323b3f39 Fix position calculation of dummy.
SVN revision: 70505
2012-04-26 10:22:38 +00:00
Leif Middelschulte c0752cccb5 Remove Evas_Object as reference from conf_randr. Use data structure instead.
SVN revision: 70504
2012-04-26 10:22:31 +00:00
Leif Middelschulte 11c41d6912 reflect rotation in the dialog
SVN revision: 70158
2012-04-12 18:31:23 +00:00
Leif Middelschulte aa1c81ad03 Reflect changed resolution in dialog.
SVN revision: 70157
2012-04-12 18:31:17 +00:00
Leif Middelschulte be22edaa3f Add (not yet working) sec. check;Fix res. list.
SVN revision: 70016
2012-04-11 15:08:09 +00:00
Leif Middelschulte 2ac207aead fix overseen mistake
SVN revision: 69996
2012-04-10 10:58:18 +00:00
Leif Middelschulte 0daf53273c Selecting resolutions for mulitple monitors before applying should work now.
SVN revision: 69994
2012-04-10 09:20:54 +00:00
Leif Middelschulte f7259f1064 Use ilist smart callbacks, which don't seem to work either
SVN revision: 69981
2012-04-09 20:45:20 +00:00
Leif Middelschulte 0f59be779c Fix possible segv
SVN revision: 69980
2012-04-09 20:45:15 +00:00
Leif Middelschulte 83932df5ad make placement work with e_layout and fix other issues.
SVN revision: 69937
2012-04-05 22:21:29 +00:00
Leif Middelschulte 40fc3efd1f Select (previous) mode simplier.
SVN revision: 69307
2012-03-13 19:58:02 +00:00
Leif Middelschulte 3cf0bf72fb warnings--
SVN revision: 69305
2012-03-13 19:57:53 +00:00
Leif Middelschulte 71d0297574 Use modes' names for the list.
SVN revision: 69304
2012-03-13 19:57:37 +00:00
Leif Middelschulte a88493233b Make conf_randr subwidgets work with e_layout.
SVN revision: 69269
2012-03-12 22:38:00 +00:00
Leif Middelschulte 348afe4972 minor tweeks to conf_randr.
SVN revision: 69268
2012-03-12 22:37:55 +00:00
Sebastian Dransfeld 05bf07450c e: formatting
SVN revision: 69055
2012-03-08 11:37:54 +00:00