Commit Graph

16134 Commits

Author SHA1 Message Date
Christopher Michael 9edea3c781 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
2013-02-19 10:57:57 +00:00
Christopher Michael 7abc8a7aca 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
2013-02-19 10:57:55 +00:00
Christopher Michael 2edc7cfeaf Add some comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84173
2013-02-19 10:57:52 +00:00
Christopher Michael 480170d4ce 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
2013-02-19 10:57:50 +00:00
Christopher Michael 1f63b0f062 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
2013-02-19 10:57:47 +00:00
Christopher Michael bda3e4bcdc 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
2013-02-19 10:57:44 +00:00
Christopher Michael 903787a594 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
2013-02-19 10:57:41 +00:00
Christopher Michael fd0889b31a 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
2013-02-19 10:57:38 +00:00
Christopher Michael f4ae6fac22 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
2013-02-19 10:57:35 +00:00
Christopher Michael fd11b69ad5 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
2013-02-19 10:57:32 +00:00
Christopher Michael 22f25b4c1d 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
2013-02-19 10:57:29 +00:00
Christopher Michael 825ccb9256 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
2013-02-19 10:57:26 +00:00
Christopher Michael b5f6ae6d0d Fix comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84163
2013-02-19 10:57:24 +00:00
Christopher Michael f5fc65f945 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
2013-02-19 10:57:21 +00:00
Christopher Michael 9354ef67ae 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
2013-02-19 10:57:18 +00:00
Christopher Michael 353df08f07 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
2013-02-19 10:57:14 +00:00
Christopher Michael 457c302e92 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
2013-02-19 10:57:12 +00:00
Christopher Michael 54a0fa16ae 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
2013-02-19 10:57:09 +00:00
Christopher Michael 58b68ab98b Add private functions for setting monitor position and resolution text.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84157
2013-02-19 10:57:06 +00:00
Christopher Michael 597d95bdb6 Add code to set the monitor name.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84156
2013-02-19 10:57:04 +00:00
Christopher Michael ad6d6914bc 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
2013-02-19 10:57:01 +00:00
Christopher Michael b12e6c9c12 Add note about screen_reset.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84154
2013-02-19 10:56:58 +00:00
Christopher Michael 8d47671e6e 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
2013-02-19 10:56:54 +00:00
Christopher Michael 6ca0528ef0 Remove function call to monitor_virtual_size_set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84152
2013-02-19 10:56:51 +00:00
Christopher Michael 055ccc581e Remove virtual_size_set code (turns out, it's not needed).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84151
2013-02-19 10:56:48 +00:00
Christopher Michael 70380b6125 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
2013-02-19 10:56:45 +00:00
Christopher Michael efbdf8c9d0 Add function prototype for min_size_get.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84149
2013-02-19 10:56:43 +00:00
Christopher Michael c476e30c5e Add function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84148
2013-02-19 10:56:40 +00:00
Christopher Michael 85ff779ed4 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
2013-02-19 10:56:38 +00:00
Christopher Michael d994ca499d 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
2013-02-19 10:56:35 +00:00
Christopher Michael fb26b60f11 Add a blank line to separate comments.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84145
2013-02-19 10:56:32 +00:00
Christopher Michael 39207345d6 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
2013-02-19 10:56:30 +00:00
Christopher Michael a2ce1d77b9 Cfdata is unused in the apply function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84143
2013-02-19 10:56:27 +00:00
Christopher Michael c508e28128 Add LOGFN to functions.
Append newly created monitor(s) to our list.

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

SVN revision: 84142
2013-02-19 10:56:24 +00:00
Christopher Michael 9f6b69c053 Add test rectangle to monitor
Add LOGFN to functions.

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

SVN revision: 84141
2013-02-19 10:56:20 +00:00
Christopher Michael 927cf450d4 Add LOGFN macro to header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84140
2013-02-19 10:56:17 +00:00
Christopher Michael db406167dc Add prototype and code for virtual_size_calc function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84139
2013-02-19 10:56:14 +00:00
Christopher Michael 28a1a7690f Tell randr widget to calculate virtual size.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84138
2013-02-19 10:56:11 +00:00
Christopher Michael 10c8ff7b9f Add monitor widget to makefile.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84137
2013-02-19 10:56:08 +00:00
Christopher Michael 8fecfa5054 Use proper width/height variables from crtc_config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84136
2013-02-19 10:56:05 +00:00
Christopher Michael 87a3d1da9b Move and resize the monitor after packing to it's proper position.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84135
2013-02-19 10:56:02 +00:00
Christopher Michael 6747badc99 Pack the created monitor into the layout widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84134
2013-02-19 10:55:59 +00:00
Christopher Michael 31b98fecbf 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
2013-02-19 10:55:56 +00:00
Christopher Michael 148cdc90d8 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
2013-02-19 10:55:54 +00:00
Christopher Michael 69b12661d5 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
2013-02-19 10:55:50 +00:00
Christopher Michael 7246631647 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
2013-02-19 10:55:45 +00:00
Christopher Michael 82a080813c Add function prototypes for setting monitor crtc and output config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84129
2013-02-19 10:55:42 +00:00
Christopher Michael 6b1168b933 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
2013-02-19 10:55:39 +00:00
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