platform/upstream/enlightenment.git
11 years agoAdd poll_interval field to config.
Christopher Michael [Tue, 19 Feb 2013 11:01:02 +0000 (11:01 +0000)]
Add poll_interval field to config.

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

11 years agoWhen we get randr events, check for actual config differences.
Christopher Michael [Tue, 19 Feb 2013 11:00:59 +0000 (11:00 +0000)]
When we get randr events, check for actual config differences.

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

11 years agoAdd restore checkbox to dialog.
Christopher Michael [Tue, 19 Feb 2013 11:00:56 +0000 (11:00 +0000)]
Add restore checkbox to dialog.

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

11 years agoAdd connected flag for outputs, and add a restore config option.
Christopher Michael [Tue, 19 Feb 2013 11:00:53 +0000 (11:00 +0000)]
Add connected flag for outputs, and add a restore config option.

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

11 years agoWhen we get an output changed event, check for matching crtc id and
Christopher Michael [Tue, 19 Feb 2013 11:00:23 +0000 (11:00 +0000)]
When we get an output changed event, check for matching crtc id and
also set changed flag if anything in the crtc has changed.

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

11 years agoAdd some comments.
Christopher Michael [Tue, 19 Feb 2013 11:00:09 +0000 (11:00 +0000)]
Add some comments.

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

11 years agoAdd missing function prototypes.
Christopher Michael [Tue, 19 Feb 2013 11:00:00 +0000 (11:00 +0000)]
Add missing function prototypes.

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

11 years agoHandle apply of monitor changes to X.
Christopher Michael [Tue, 19 Feb 2013 10:59:58 +0000 (10:59 +0000)]
Handle apply of monitor changes to X.
Reduce position text set calls and just do it on smart_move.
Add a changes_apply function.
Add code to record changes to a monitor.

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

11 years agoAdd randr_changed function.
Christopher Michael [Tue, 19 Feb 2013 10:59:55 +0000 (10:59 +0000)]
Add randr_changed function.
Add function to apply changes.
Add callback hook for monitor(s) changed.

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

11 years agoAdd hook for randr widget changed.
Christopher Michael [Tue, 19 Feb 2013 10:59:52 +0000 (10:59 +0000)]
Add hook for randr widget changed.

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

11 years agoSimplify changed enum.
Christopher Michael [Tue, 19 Feb 2013 10:59:49 +0000 (10:59 +0000)]
Simplify changed enum.

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

11 years agoStart on monitor Changes.
Christopher Michael [Tue, 19 Feb 2013 10:59:47 +0000 (10:59 +0000)]
Start on monitor Changes.

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

11 years agoAdd code to handle when cloning monitors so that the size, mode and
Christopher Michael [Tue, 19 Feb 2013 10:59:44 +0000 (10:59 +0000)]
Add code to handle when cloning monitors so that the size, mode and
orient of each will match (NB: This is required by XRandR in order for
cloning to be successful).

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

11 years agoUpdate some comments.
Christopher Michael [Tue, 19 Feb 2013 10:59:41 +0000 (10:59 +0000)]
Update some comments.
Add code to create any clones on initial startup.
Add function to find a monitor object based on crtc.

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

11 years agoAdd the clone object as a smart member for monitor.
Christopher Michael [Tue, 19 Feb 2013 10:59:38 +0000 (10:59 +0000)]
Add the clone object as a smart member for monitor.
Add some comments.
Update position and resolution text when we unclone.
Repack the monitor into the grid when we unclone.
Set virtual thumb size correctly.
Emit disabled signal (if needed) when we unclone.
Also record x/y coordinates when doing move/resize/rotate.

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

11 years agoFix cloning box to now be over the indicator event rect.
Christopher Michael [Tue, 19 Feb 2013 10:59:36 +0000 (10:59 +0000)]
Fix cloning box to now be over the indicator event rect.

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

11 years agoAdd function prototype for monitor clone set.
Christopher Michael [Tue, 19 Feb 2013 10:59:33 +0000 (10:59 +0000)]
Add function prototype for monitor clone set.

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

11 years agoAdd cloning support for monitor.
Christopher Michael [Tue, 19 Feb 2013 10:59:30 +0000 (10:59 +0000)]
Add cloning support for monitor.
Tie in code for indicator toggle (enable/disable).
Add function to return a monitor's crtc id (used in randr widget).

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

11 years agoAdd support for an outputs clones in e_randr and e_randr config.
Christopher Michael [Tue, 19 Feb 2013 10:59:28 +0000 (10:59 +0000)]
Add support for an outputs clones in e_randr and e_randr config.

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

11 years agoColor the clip of the frame when monitor is disabled to provide more
Christopher Michael [Tue, 19 Feb 2013 10:59:25 +0000 (10:59 +0000)]
Color the clip of the frame when monitor is disabled to provide more
visual indication.

NB: Someone may want to tweak the color used here ;)

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

11 years agoRename monitor name style
Christopher Michael [Tue, 19 Feb 2013 10:59:23 +0000 (10:59 +0000)]
Rename monitor name style

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

11 years agoSimplify the monitor rotation code and make sure new positions are
Christopher Michael [Tue, 19 Feb 2013 10:59:20 +0000 (10:59 +0000)]
Simplify the monitor rotation code and make sure new positions are
within grid virtual space.

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

11 years agoCorrectly calculate disabled monitor position(s).
Christopher Michael [Tue, 19 Feb 2013 10:59:17 +0000 (10:59 +0000)]
Correctly calculate disabled monitor position(s).

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

11 years agoRemove useless mod_dir variable (and associated code).
Christopher Michael [Tue, 19 Feb 2013 10:59:15 +0000 (10:59 +0000)]
Remove useless mod_dir variable (and associated code).

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

11 years agoRemove useless defines and variables.
Christopher Michael [Tue, 19 Feb 2013 10:59:11 +0000 (10:59 +0000)]
Remove useless defines and variables.

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

11 years agoRemove unused variable and some dead printfs.
Christopher Michael [Tue, 19 Feb 2013 10:59:08 +0000 (10:59 +0000)]
Remove unused variable and some dead printfs.

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

11 years agoWhen calculating virtual size, also account for 'possible' outputs.
Christopher Michael [Tue, 19 Feb 2013 10:59:06 +0000 (10:59 +0000)]
When calculating virtual size, also account for 'possible' outputs.
When we are creating the monitors, account for 'possible' outputs also.

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

11 years agoActually, allow move/resize/rotate for disabled monitors so things can
Christopher Michael [Tue, 19 Feb 2013 10:59:03 +0000 (10:59 +0000)]
Actually, allow move/resize/rotate for disabled monitors so things can
be adjusted (NB: Will not actually mattery on Apply anyway).

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

11 years agoSet current size and position text when we set current values.
Christopher Michael [Tue, 19 Feb 2013 10:59:00 +0000 (10:59 +0000)]
Set current size and position text when we set current values.
Add function for setting current geometry.
If a monitor is disabled, do not allow rotate, resize, move events.
Fix resize start/stop functions to use current geometry.

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

11 years agoAdd function prototype for setting current geometry.
Christopher Michael [Tue, 19 Feb 2013 10:58:57 +0000 (10:58 +0000)]
Add function prototype for setting current geometry.
Rename function prototype for grid virtual size set.

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

11 years agoFix move_stop to use current geometry.
Christopher Michael [Tue, 19 Feb 2013 10:58:54 +0000 (10:58 +0000)]
Fix move_stop to use current geometry.

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

11 years agoHandle setting monitor to enabled/disabled based on crtc mode.
Christopher Michael [Tue, 19 Feb 2013 10:58:51 +0000 (10:58 +0000)]
Handle setting monitor to enabled/disabled based on crtc mode.

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

11 years agoWhen calculating virtual size, we only need to fetch
Christopher Michael [Tue, 19 Feb 2013 10:58:48 +0000 (10:58 +0000)]
When calculating virtual size, we only need to fetch
"screen_current_size_get" if both vw & vh are 0.

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

11 years agoAdd 'current' field values so we can use these durring apply for
Christopher Michael [Tue, 19 Feb 2013 10:58:45 +0000 (10:58 +0000)]
Add 'current' field values so we can use these durring apply for
comparison to old values.
Fix move, resize, rotate code to use "current" values.

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

11 years agoAdd code to handle manual monitor movement.
Christopher Michael [Tue, 19 Feb 2013 10:58:42 +0000 (10:58 +0000)]
Add code to handle manual monitor movement.
Fix up coordinate functions to not need doubles.
Update monitor position text when moving.
Fix up rotation code to allow rotating when mouse is outside the frame
(thank you Daniel) ;)

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

11 years agoFix grid offset
Christopher Michael [Tue, 19 Feb 2013 10:58:39 +0000 (10:58 +0000)]
Fix grid offset

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

11 years agoAdd in refresh_rate code for filling refresh rate list and listening
Christopher Michael [Tue, 19 Feb 2013 10:58:36 +0000 (10:58 +0000)]
Add in refresh_rate code for filling refresh rate list and listening
for changes.
Break map_apply function into frame_map_apply and thumb_map_apply for
rotating just the wallpaper.
Fix resize code to work with a rotated monitor.

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

11 years agoUse ecore_x_randr_crtc_info_free function to free returned crtc_info.
Christopher Michael [Tue, 19 Feb 2013 10:58:33 +0000 (10:58 +0000)]
Use ecore_x_randr_crtc_info_free function to free returned crtc_info.
When comparing refresh rates for mode searches, cast to int.

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

11 years agoReduce variable usage
Christopher Michael [Tue, 19 Feb 2013 10:58:31 +0000 (10:58 +0000)]
Reduce variable usage

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

11 years agoFix comment.
Christopher Michael [Tue, 19 Feb 2013 10:58:28 +0000 (10:58 +0000)]
Fix comment.
Remove orientation comparison.

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

11 years agoAdd ROTATE_FUZZ amount.
Christopher Michael [Tue, 19 Feb 2013 10:58:25 +0000 (10:58 +0000)]
Add ROTATE_FUZZ amount.
Add inline function to get orientation based on rotation amount.
Add function to apply an evas_map for rotation.
If we are rotating, we don't need to set livethumb size.
When we start rotating, set initial rotation amount to 0.
When rotation stops, update the map and monitor position where needed.
Apply map during rotation.

NB: This commit also adds a debugging red rectangle behind the
monitor. This will be removed when debugging is complete

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

11 years agoAdd current rotation to smart_data structure.
Christopher Michael [Tue, 19 Feb 2013 10:58:22 +0000 (10:58 +0000)]
Add current rotation to smart_data structure.
Fill in current rotation on crtc set.
Update current rotation when we get a rotation event.

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

11 years agoAdd inline function to return the degree of rotation based on
Christopher Michael [Tue, 19 Feb 2013 10:58:19 +0000 (10:58 +0000)]
Add inline function to return the degree of rotation based on
orientation.

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

11 years agoRemove Big Fat Fixme warning as it's fixed now :)
Christopher Michael [Tue, 19 Feb 2013 10:58:16 +0000 (10:58 +0000)]
Remove Big Fat Fixme warning as it's fixed now :)

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

11 years agoAdd code to check EFL version.
Christopher Michael [Tue, 19 Feb 2013 10:58:13 +0000 (10:58 +0000)]
Add code to check EFL version.
If we are using a newer version, then we can use the new
ecore_x_randr_crtc_info_get() function which will save us a lot of X
round-trips.

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

11 years agoAdd current mode and refresh rate to crtc field.
Christopher Michael [Tue, 19 Feb 2013 10:58:10 +0000 (10:58 +0000)]
Add current mode and refresh rate to crtc field.
Add function prototype for getting a mode refresh rate.
Add Big Fat FIXME for crtc_set function.
Get the crtc current mode & refresh rate when crtc is set.
Simplify monitor_mode_find function.
Add function for getting a mode refresh rate.
Start on rotation event code.

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

11 years agoAdd function to get the amount of rotation from a mouse event.
Christopher Michael [Tue, 19 Feb 2013 10:58:06 +0000 (10:58 +0000)]
Add function to get the amount of rotation from a mouse event.
Simplify mouse movement check in resize_event and add some better
comments.

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

11 years agoTurn 'crtc' field into a structure (mainly for making code easier to
Christopher Michael [Tue, 19 Feb 2013 10:58:04 +0000 (10:58 +0000)]
Turn 'crtc' field into a structure (mainly for making code easier to
read/maintain).

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

11 years agoAdd code to check if rotations for a given crtc are possible, and
Christopher Michael [Tue, 19 Feb 2013 10:58:01 +0000 (10:58 +0000)]
Add code to check if rotations for a given crtc are possible, and
disable the rotation in edje if not.

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

11 years agoOnly get edid (an expensive process) if getting the output name
Christopher Michael [Tue, 19 Feb 2013 10:57:57 +0000 (10:57 +0000)]
Only get edid (an expensive process) if getting the output name
previously has failed.

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

11 years agoAdd flag for rotating to structure.
Christopher Michael [Tue, 19 Feb 2013 10:57:55 +0000 (10:57 +0000)]
Add flag for rotating to structure.
Add & delete callbacks for rotation start & stop.
Add functions for rotate start & stop.
Add start of rotate event code.

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

11 years agoAdd some comments.
Christopher Michael [Tue, 19 Feb 2013 10:57:52 +0000 (10:57 +0000)]
Add some comments.

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

11 years agoRemove all code which tried to maintain aspect ratio of the frame
Christopher Michael [Tue, 19 Feb 2013 10:57:50 +0000 (10:57 +0000)]
Remove all code which tried to maintain aspect ratio of the frame
(resize snapping to mode dimensions will handle this anyway).

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

11 years agoRemove dead comments about layout object.
Christopher Michael [Tue, 19 Feb 2013 10:57:47 +0000 (10:57 +0000)]
Remove dead comments about layout object.
Add grid object to structure.
Add callbacks to handle when grid gets moved or resized so we can
update the monitor's copy of the grid geometry.
Update calls to monitor_grid_set to pass in geometry now.
Add monitor_virtual_size_set call.
Add code to deal with grid getting moved & resized.

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

11 years agoChange structure to store grid geometry.
Christopher Michael [Tue, 19 Feb 2013 10:57:44 +0000 (10:57 +0000)]
Change structure to store grid geometry.
Change grid_set function to accept grid geometry.
Add monitor_virtual_size_set function.
Only update livethumb preview size if we are not manually resizing.
Don't need to set the resolution text during smart_resize.
Add functions to convert coordinates to/from virtual to canvas.
Add function to find the closest randr mode to a given size.
Add function to handle user manual resizing.

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

11 years agoChange monitor_grid_set function to also accept the grid geometry
Christopher Michael [Tue, 19 Feb 2013 10:57:41 +0000 (10:57 +0000)]
Change monitor_grid_set function to also accept the grid geometry
(used for virtual-->canvas coordinate functions).

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

11 years agoAdd missing LOGFN's where needed.
Christopher Michael [Tue, 19 Feb 2013 10:57:38 +0000 (10:57 +0000)]
Add missing LOGFN's where needed.
Add mouse_move callback on frame.
Delete mouse_move callback when we delete the frame.
Add code in frame moouse_move function to call appropriate event based
on current action.
Start of actual resize event code.

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

11 years agoAdd flag to structure for resizing.
Christopher Michael [Tue, 19 Feb 2013 10:57:35 +0000 (10:57 +0000)]
Add flag to structure for resizing.
Add start of resize coordinates to structure.
If we are manually resizing the object, update the text.
When resize starts, record the current mouse position and size.

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

11 years agoAdd edje callbacks to frame for resize_start & resize_stop.
Christopher Michael [Tue, 19 Feb 2013 10:57:32 +0000 (10:57 +0000)]
Add edje callbacks to frame for resize_start & resize_stop.
Add code to delete edje callbacks from frame when object is deleted.
Add start of code for resize_start & resize_stop frame events.

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

11 years agoFix variable type of "name" to be char (not const char).
Christopher Michael [Tue, 19 Feb 2013 10:57:29 +0000 (10:57 +0000)]
Fix variable type of "name" to be char (not const char).
Add code to set mouse pointer on frame events (resize, rotate, etc).

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

11 years agoCleanup some memory returned from ecore_x_randr when we are done with
Christopher Michael [Tue, 19 Feb 2013 10:57:26 +0000 (10:57 +0000)]
Cleanup some memory returned from ecore_x_randr when we are done with
it.

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

11 years agoFix comment.
Christopher Michael [Tue, 19 Feb 2013 10:57:24 +0000 (10:57 +0000)]
Fix comment.

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

11 years agoAdd function to push & pop e_pointers.
Christopher Michael [Tue, 19 Feb 2013 10:57:21 +0000 (10:57 +0000)]
Add function to push & pop e_pointers.
Add code to set pointer indication when mouse moves inside the
thumbnail.
Add code to set pointer indication when mouse is down on the thumbnail.

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

11 years agoSet aspect width & height on the same line
Christopher Michael [Tue, 19 Feb 2013 10:57:18 +0000 (10:57 +0000)]
Set aspect width & height on the same line

(pedantic commit just to remove 2 extra lines).

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

11 years agoAlso pass in crtc geometry to the monitor when we set crtc (because we
Christopher Michael [Tue, 19 Feb 2013 10:57:14 +0000 (10:57 +0000)]
Also pass in crtc geometry to the monitor when we set crtc (because we
have previously fetched this geometry anyway).

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

11 years agoModifiy crtc_set function to also take the current crtc coordinates
Christopher Michael [Tue, 19 Feb 2013 10:57:12 +0000 (10:57 +0000)]
Modifiy crtc_set function to also take the current crtc coordinates
(this saves us a round-trip function call to ecore_x_randr as we
already have the coordinates from the randr widget).

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

11 years agoWhen we set the crtc of the monitor, we can update position and
Christopher Michael [Tue, 19 Feb 2013 10:57:09 +0000 (10:57 +0000)]
When we set the crtc of the monitor, we can update position and
resolution text.

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

11 years agoAdd private functions for setting monitor position and resolution text.
Christopher Michael [Tue, 19 Feb 2013 10:57:06 +0000 (10:57 +0000)]
Add private functions for setting monitor position and resolution text.

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

11 years agoAdd code to set the monitor name.
Christopher Michael [Tue, 19 Feb 2013 10:57:04 +0000 (10:57 +0000)]
Add code to set the monitor name.

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

11 years agoPack the monitor into the grid first, then do setup.
Christopher Michael [Tue, 19 Feb 2013 10:57:01 +0000 (10:57 +0000)]
Pack the monitor into the grid first, then do setup.
Add function call to setup initial background preview.

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

11 years agoAdd note about screen_reset.
Christopher Michael [Tue, 19 Feb 2013 10:56:58 +0000 (10:56 +0000)]
Add note about screen_reset.

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

11 years agoAdd code to handle setting of background preview on initial show.
Christopher Michael [Tue, 19 Feb 2013 10:56:54 +0000 (10:56 +0000)]
Add code to handle setting of background preview on initial show.
Add code to handle setting of background preview when user changes the
bg.

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

11 years agoRemove function call to monitor_virtual_size_set.
Christopher Michael [Tue, 19 Feb 2013 10:56:51 +0000 (10:56 +0000)]
Remove function call to monitor_virtual_size_set.

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

11 years agoRemove virtual_size_set code (turns out, it's not needed).
Christopher Michael [Tue, 19 Feb 2013 10:56:48 +0000 (10:56 +0000)]
Remove virtual_size_set code (turns out, it's not needed).

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

11 years agoAdd base & grid object to randr widget.
Christopher Michael [Tue, 19 Feb 2013 10:56:45 +0000 (10:56 +0000)]
Add base & grid object to randr widget.
Use ecore_x_randr functions to get crtcs & outputs (Fixes problem of
running Screen Setup dialog in Xephyr)
Add code for min_size_get function.
Remove code which used e_layout widget.
Add code to create new randr widget based on evas_object_grid.

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

11 years agoAdd function prototype for min_size_get.
Christopher Michael [Tue, 19 Feb 2013 10:56:43 +0000 (10:56 +0000)]
Add function prototype for min_size_get.

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

11 years agoAdd function prototypes.
Christopher Michael [Tue, 19 Feb 2013 10:56:40 +0000 (10:56 +0000)]
Add function prototypes.

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

11 years agoAdd min & max mode sizes to monitor structure.
Christopher Michael [Tue, 19 Feb 2013 10:56:38 +0000 (10:56 +0000)]
Add min & max mode sizes to monitor structure.
Add Frame & Stand to monitor structure.
Add code to create/show/move/resize/hide the frame & stand.
Change the code to use ecore_x_randr functions so that when running in
Xephyr we get monitors that make sense.
Change output_set and crtc_set functions to take the Ecore_X_Randr
types.
Set an aspect ratio on the frame (so it maintains during resize)
Add function for telling monitor what the virtual size is.
Add function for telling monitor what grid object it belongs to.

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

11 years agoFix _basic_create prototype & function to use the dialog now.
Christopher Michael [Tue, 19 Feb 2013 10:56:35 +0000 (10:56 +0000)]
Fix _basic_create prototype & function to use the dialog now.
Call function of randr widget to get the min required size, and set
the list widget to that size.
Tell the dialog to show centered on the screen.

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

11 years agoAdd a blank line to separate comments.
Christopher Michael [Tue, 19 Feb 2013 10:56:32 +0000 (10:56 +0000)]
Add a blank line to separate comments.

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

11 years agoCreate new randr widget group (for the main randr widget) and give it
Christopher Michael [Tue, 19 Feb 2013 10:56:30 +0000 (10:56 +0000)]
Create new randr widget group (for the main randr widget) and give it
an "inset" look like the wallpaper preview widget.

NB: This probably could have been aliased to the wallpaper preview
widget but is separate right now in case the boss wants to change it ;)

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

11 years agoCfdata is unused in the apply function.
Christopher Michael [Tue, 19 Feb 2013 10:56:27 +0000 (10:56 +0000)]
Cfdata is unused in the apply function.

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

11 years agoAdd LOGFN to functions.
Christopher Michael [Tue, 19 Feb 2013 10:56:24 +0000 (10:56 +0000)]
Add LOGFN to functions.
Append newly created monitor(s) to our list.

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

11 years agoAdd test rectangle to monitor
Christopher Michael [Tue, 19 Feb 2013 10:56:20 +0000 (10:56 +0000)]
Add test rectangle to monitor
Add LOGFN to functions.

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

11 years agoAdd LOGFN macro to header.
Christopher Michael [Tue, 19 Feb 2013 10:56:17 +0000 (10:56 +0000)]
Add LOGFN macro to header.

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

11 years agoAdd prototype and code for virtual_size_calc function.
Christopher Michael [Tue, 19 Feb 2013 10:56:14 +0000 (10:56 +0000)]
Add prototype and code for virtual_size_calc function.

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

11 years agoTell randr widget to calculate virtual size.
Christopher Michael [Tue, 19 Feb 2013 10:56:11 +0000 (10:56 +0000)]
Tell randr widget to calculate virtual size.

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

11 years agoAdd monitor widget to makefile.
Christopher Michael [Tue, 19 Feb 2013 10:56:08 +0000 (10:56 +0000)]
Add monitor widget to makefile.

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

11 years agoUse proper width/height variables from crtc_config.
Christopher Michael [Tue, 19 Feb 2013 10:56:05 +0000 (10:56 +0000)]
Use proper width/height variables from crtc_config.

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

11 years agoMove and resize the monitor after packing to it's proper position.
Christopher Michael [Tue, 19 Feb 2013 10:56:02 +0000 (10:56 +0000)]
Move and resize the monitor after packing to it's proper position.

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

11 years agoPack the created monitor into the layout widget.
Christopher Michael [Tue, 19 Feb 2013 10:55:59 +0000 (10:55 +0000)]
Pack the created monitor into the layout widget.

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

11 years agoAdd a list of modes to smart_data structure.
Christopher Michael [Tue, 19 Feb 2013 10:55:56 +0000 (10:55 +0000)]
Add a list of modes to smart_data structure.
When we set the output, fill in the modes list
Add code to sort modes list.

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

11 years agoAdd geometry to smart_data struct.
Christopher Michael [Tue, 19 Feb 2013 10:55:54 +0000 (10:55 +0000)]
Add geometry to smart_data struct.
Check geometry changes in smart_move and smart_resize.

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

11 years agoStart code for monitors create
Christopher Michael [Tue, 19 Feb 2013 10:55:50 +0000 (10:55 +0000)]
Start code for monitors create
 - Create monitor smart object
 - Set crtc and output config for monitor.

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

11 years agoAdd crtc and output configs to smart_data structure.
Christopher Michael [Tue, 19 Feb 2013 10:55:45 +0000 (10:55 +0000)]
Add crtc and output configs to smart_data structure.
Add functions to set crtc and output configs.

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

11 years agoAdd function prototypes for setting monitor crtc and output config.
Christopher Michael [Tue, 19 Feb 2013 10:55:42 +0000 (10:55 +0000)]
Add function prototypes for setting monitor crtc and output config.

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

11 years agoAdd list of monitors to smart_data structure.
Christopher Michael [Tue, 19 Feb 2013 10:55:39 +0000 (10:55 +0000)]
Add list of monitors to smart_data structure.
Add code to delete the monitors when randr gets deleted.

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

11 years agoAdd initial start of code to create monitors.
Christopher Michael [Tue, 19 Feb 2013 10:55:36 +0000 (10:55 +0000)]
Add initial start of code to create monitors.

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

11 years agoAdd header function for monitors_create.
Christopher Michael [Tue, 19 Feb 2013 10:55:33 +0000 (10:55 +0000)]
Add header function for monitors_create.

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

11 years agoAdd initial monitor code.
Christopher Michael [Tue, 19 Feb 2013 10:55:30 +0000 (10:55 +0000)]
Add initial monitor code.

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