Commit Graph

15338 Commits

Author SHA1 Message Date
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
Massimo Maiurana 68f40db8a5 updating portuguese translations
SVN revision: 81129
2012-12-17 12:31:18 +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
Mike Blumenkrantz 606701ff6c make e_fm2_device_mount_free() EAPI
SVN revision: 81123
2012-12-17 11:34:19 +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
Mike Blumenkrantz b22ac9e803 also automatically show files again if an op fails entirely
SVN revision: 81120
2012-12-17 10:59:10 +00:00
Mike Blumenkrantz 7a3a863ea1 fix Navigate menu to function more appropriately with removable media
ticket #2000


SVN revision: 81119
2012-12-17 10:55:35 +00:00
Mike Blumenkrantz 567121f44f only pass clicked item to menu functions if it's something we can navigate in
SVN revision: 81118
2012-12-17 10:54:52 +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 513bac3b26 Add a "mini monitor" group which we will use to display a cloned
monitor.

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

SVN revision: 81100
2012-12-17 09:20:35 +00:00
Christopher Michael a9cfffdefa Remove all references to cloned state and clone programs.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81099
2012-12-17 09:20:33 +00:00
Christopher Michael fabb16dc8d Remove cloned signals from main monitor.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81098
2012-12-17 09:20:30 +00:00
Christopher Michael 403e0ed2df Add a program to catch "uncloned" state so we can return the monitor
back to it's starting form.

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

SVN revision: 81097
2012-12-17 09:20:25 +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 b12bba6b86 Oops, remove old "mini clone" attempt.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81092
2012-12-17 09:20:01 +00:00
Christopher Michael 7a22a82eb7 Add a "cloned " state for the monitor which turns off the stand, text,
and other things.
Add a clone box to hold any monitors which were dropped.
Add a "drop_zone" to the monitor to indicate we can drop other
monitors here.

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

SVN revision: 81091
2012-12-17 09:19:58 +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