Commit Graph

15553 Commits

Author SHA1 Message Date
Christopher Michael 4a4b5c98f5 Backport: 480170d :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael f00692e8c7 Backport: 1f63b0f :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 5fc3d77e62 Backport: bda3e4b :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael d56779e775 Backport: 903787a :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael f7fa56bdcc Backport: fd0889b :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael ed2d213e2e Backport: f4ae6fa :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael d8fc923492 Backport: fd11b69 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael caa8ea5cf0 Backport: 22f25b4 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 00eac610e4 Backport: 825ccb9 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 65b0455109 Backport: b5f6ae6 :: Fix comment.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84163
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael e28a1a1bc5 Backport: f5fc65f :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 733f98fbbf Backport: 9354ef6 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 684b8bf06b Backport: 353df08 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 3f4c7629d9 Backport: 457c302 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 310c60449d Backport: 54a0fa1 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael bc99da4a26 Backport: 58b68ab :: Add private functions for setting monitor position and resolution text.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84157
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 71094979e9 Backport: 597d95b :: Add code to set the monitor name.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84156
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:49 -04:00
Christopher Michael 4eebdb484f Backport: ad6d691 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 7969bbf3aa Backport: 8d47671 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 0137ff7e1f Backport: 6ca0528 :: Remove function call to monitor_virtual_size_set.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84152
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 8647ccdb45 Backport: 055ccc5 :: Remove virtual_size_set code (turns out, it's not needed).
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84151
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael aa05275768 Backport: 70380b6 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael efaa83ab72 Backport: efbdf8c :: Add function prototype for min_size_get.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84149
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael f144a53b87 Backport: c476e30 :: Add function prototypes.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84148
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 8958edd03d Backport: 85ff779 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael e1b4d5448c Backport: d994ca4 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 03dee4db92 Backport: a2ce1d7 :: Cfdata is unused in the apply function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84143
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael b1919817a9 Backport: c508e28 :: Add LOGFN to functions. Append newly created monitor(s) to our list.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84142
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 8f82bb694c Backport: 9f6b69c :: Add test rectangle to monitor Add LOGFN to functions.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84141
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael b996c449d7 Backport: 927cf45 :: Add LOGFN macro to header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84140
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 7f3f30ff44 Backport: db40616 :: Add prototype and code for virtual_size_calc function.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84139
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael dc14c4eae6 Backport: 28a1a76 :: Tell randr widget to calculate virtual size.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84138
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 1fd4212846 Backport: 8fecfa5 :: Use proper width/height variables from crtc_config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84136
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 6f0dfdad6c Backport: 87a3d1d :: Move and resize the monitor after packing to it's proper position.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84135
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 29da423051 Backport: 6747bad :: Pack the created monitor into the layout widget.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84134
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 13a4aed496 Backport: 31b98fe :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:48 -04:00
Christopher Michael 5e882d1275 Backport: 148cdc9 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael d1d8dc4124 Backport: 69b1266 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael f2d9856ccb Backport: 7246631 :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 4f8bb6f04c Backport: 82a0808 :: Add function prototypes for setting monitor crtc and output config.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84129
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 862c8dcfe3 Backport: 6b1168b :: 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
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael ac9ed0f98e Backport: 468998f :: Add initial start of code to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84127
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 0c09d80685 Backport: 6cf9624 :: Add header function for monitors_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84126
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 1c26ea8b99 Backport: 5216fb0 :: Add initial monitor code.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84125
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael e7c9315004 Backport: 8a53055 :: Tell randr widget to create monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84124
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 17fdbee784 Backport: 6521caa :: Add header function for creating new monitors.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84123
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 306fcfcb70 Backport: 3fd758f :: Cleanup compile warnings and include randr object header.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84121
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael a0cbdec5c2 Backport: 6b96e9c :: Add code to handle the layout object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84119
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael e22c359f06 Backport: daa2b49 :: Create the randr widget in _basic_create.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84118
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00
Christopher Michael 671f459fbc Backport: 4dfda15 :: Initial rewrite of the monitor object.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 84117
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
2013-06-28 03:28:47 -04:00