I am developing a mvc component for both joomla 2.5 and 3.In many components i saw they added joomla's default command buttons like new, edit, publish, trash, options at top of their settings page in admin side. Eg. if one goes components->weblinks->links page, i am talking about those command buttons at top right.
So how do i add those command buttons in my component's settings page? when clicked it would do respective action and show respective view.For instance, if i click "new" button it will display my mvc component's add entry view as it is.
So how could i add fully workable joomla's command buttons in my component's settings page in admin side.