askToReset              package:iSPlot              R Documentation

_C_h_e_c_k _t_h_a_t _t_h_e _u_s_e_r _w_a_n_t_s _t_o _r_e_s_e_t _t_h_e _d_a_t_a_f_r_a_m_e _t_o _i_t_s _o_r_i_g_i_n_a_l _s_t_a_t_e

_D_e_s_c_r_i_p_t_i_o_n:

     askToReset opens a gtk window that asks the user if they really 
     want to reset the dataframe to its original state and thus, lose 
     all the changes they have made to the dataframe.  askToReset is 
     called when the user chooses the menu item 'reset' under the edit 
     menu.  If yes is chosen for reset, then the dataframe will be
     reset to its original state and any views reflecting that data
     will be  redrawn.  Note that if there are no views created, then
     reset will  not be performed and a message box will open to let
     the user know that no changes have been made.

_U_s_a_g_e:

     askToReset()

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'updateControlWindow', 'askToReplot'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         createControlWindow()
         # loading data should be performed through the menu item 'open data'
         data(USArrests)
         loadDFData(USArrests,"USArrests")
         # createView should be performed through the menu item 'plot data'
         createView(type = "plotView", dataName = "USArrests", 
                    plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
                    dfColumns = 1:2) 
         # should choose 'reset' under edit menu to call askToReset
         askToReset()    
       }

