Making a widget -- stuck in one area

I am extending an add-on so it will be a widget on the dashboard. I wrote the view.php, but I am unsure what I need to put in the edit.php to make it appear on the dashboard. I put the code in views/default/widgets/widgetname/

Any tips on what I need to do? I am using elgg_extend_view to extend the view to the dashboard. Am I doing this right? I am using elgg 1.7.10-12. Not sure which version.