The GUI and viewers start
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 5 May 2004 21:11:26 +0000 (21:11 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 5 May 2004 21:11:26 +0000 (21:11 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@519 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/module.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c
ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/gtkmultivpaned.c

index f40319741986a767cdac41e752631b215b8ecca9..1c3991795d65da506ccc2583441e6911858a6aa8 100644 (file)
@@ -70,11 +70,11 @@ static void init() {
   g_info("GUI ControlFlow Viewer init()");
 
   /* Register the toolbar insert button */
-  toolbar_item_reg(hGuiControlFlowInsert_xpm, "Insert Control Flow Viewer",
-      h_guicontrolflow);
+  lttvwindow_register_toolbar(hGuiControlFlowInsert_xpm,
+      "Insert Control Flow Viewer", h_guicontrolflow);
 
   /* Register the menu item insert entry */
-  menu_item_reg("/", "Insert Control Flow Viewer", h_guicontrolflow);
+  lttvwindow_register_menu("/", "Insert Control Flow Viewer", h_guicontrolflow);
   
 }
 
@@ -101,10 +101,10 @@ static void destroy() {
   g_slist_free(g_control_flow_data_list);
 
   /* Unregister the toolbar insert button */
-  toolbar_item_unreg(h_guicontrolflow);
+  lttvwindow_unregister_toolbar(h_guicontrolflow);
 
   /* Unregister the menu item insert entry */
-  menu_item_unreg(h_guicontrolflow);
+  lttvwindow_unregister_menu(h_guicontrolflow);
   
 }
 
index fac0c00f7bd14458854ddce1424183414c4001f8..59c9837169d813be58954bf19f05be716e65765a 100644 (file)
@@ -189,7 +189,7 @@ void insert_viewer(GtkWidget* widget, lttvwindow_viewer_constructor constructor)
     }
 
     redraw_viewer(mw_data,&time_window);
-    set_current_time(mw_data,&(mw_data->current_tab->current_time));
+    lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
     if(time_interval){
       lttvwindow_report_time_window(mw_data,&t);
     }
@@ -534,7 +534,7 @@ void add_trace(GtkWidget * widget, gpointer user_data)
       //update current tab
       update_traceset(mw_data);
 
-      get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
+      //get_traceset_time_span(mw_data,LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span);
       if(lttv_traceset_number(mw_data->current_tab->traceset_info->traceset) == 1 ||
         ltt_time_compare(mw_data->current_tab->current_time,
              LTTV_TRACESET_CONTEXT(mw_data->current_tab->traceset_info->traceset_context)->Time_Span->startTime)<0){
@@ -546,7 +546,7 @@ void add_trace(GtkWidget * widget, gpointer user_data)
       } 
 
       redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
-      set_current_time(mw_data,&(mw_data->current_tab->current_time));
+      lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
       break;
     case GTK_RESPONSE_REJECT:
     case GTK_RESPONSE_CANCEL:
@@ -672,7 +672,7 @@ void remove_trace(GtkWidget * widget, gpointer user_data)
          update_traceset(mw_data);
          if(nb_trace > 1){
            redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
-           set_current_time(mw_data,&(mw_data->current_tab->current_time));
+           lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
          }else{
            if(mw_data->current_tab){
              while(mw_data->current_tab->multi_vpaned->num_children){
@@ -749,7 +749,7 @@ void zoom(GtkWidget * widget, double size)
     time_window.start_time = time_s;    
   }
   redraw_viewer(mw_data, &time_window);
-  set_current_time(mw_data,&(mw_data->current_tab->current_time));
+  lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
   gtk_multi_vpaned_set_adjust(mw_data->current_tab->multi_vpaned, FALSE);
 }
 
@@ -1028,7 +1028,7 @@ on_trace_filter_activate              (GtkMenuItem     *menuitem,
   if(get_filter_selection(s, "Configure trace and tracefile filter", "Select traces and tracefiles")){
     update_traceset(mw_data);
     redraw_viewer(mw_data, &(mw_data->current_tab->time_window));
-    set_current_time(mw_data,&(mw_data->current_tab->current_time));
+    lttvwindow_report_current_time(mw_data,&(mw_data->current_tab->current_time));
   }
 }
 
index 962807c831a85e21a00b14fd0f3cfd7513da9913..f0dc2cfe4767ae229faa10d3d50096037ccb6f6a 100644 (file)
@@ -170,12 +170,12 @@ void gtk_multi_vpaned_set_focus (GtkWidget * widget, gpointer user_data)
 
 void gtk_multi_vpaned_set_adjust(GtkMultiVPaned * multi_vpaned, gboolean first_time)
 {
-  TimeWindow time_window;
+  TimeWindow time_window = multi_vpaned->mw->current_tab->time_window;
   TimeInterval *time_span;
   double tmp, start;
   double range = 0;
 
-  get_time_window(multi_vpaned->mw,&time_window);
+  
   if(first_time){
     time_span = LTTV_TRACESET_CONTEXT(multi_vpaned->mw->current_tab->traceset_info->
                                      traceset_context)->Time_Span ;
This page took 0.029055 seconds and 4 git commands to generate.