procmeter  3-3.6+svn387
About: ProcMeter is a Linux system status monitor displaying system resource usage in multiple graphs.
  Fossies Dox: procmeter3-3.6+svn387.tgz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

menus.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "window.h"
#include "procmeterp.h"
Include dependency graph for menus.c:

Go to the source code of this file.

Functions

static void MenuStart (GtkWidget *w, GdkEvent *event, gpointer data)
 
static void ModuleMenuStart (GtkWidget *w, GdkEvent *event, gpointer data)
 
static void OutputMenuStart (GtkWidget *w, GdkEvent *event, gpointer data)
 
static void FunctionsMenuStart (GtkWidget *w, GdkEvent *event, gpointer data)
 
static void SelectOutputMenuCallback (gpointer clientData)
 
static void SelectFunctionsMenuCallback (gpointer clientData)
 
static void PropertiesDialogDoneCallback (GtkWidget *w, gpointer data)
 
static gint PropertiesDialogCloseCallback (GtkWidget *w, GdkEvent *event, gpointer data)
 
void CreateMenus (GtkWidget *parent)
 
void AddModuleToMenu (Module module)
 
void AddMenuToOutput (GtkWidget *widget, Module module)
 
void RemoveModuleFromMenu (Module module)
 
void DestroyMenus (void)
 

Variables

int vertical
 
GtkWidget * pane
 
static GtkWidget * module_menu
 
static GtkWidget * functions_menu
 
static GtkWidget * properties_dialog
 
static GtkWidget * func_run
 
static GtkWidget * prop_modname
 
static GtkWidget * prop_moddesc
 
static GtkWidget * prop_outname
 
static GtkWidget * prop_outdesc
 
static GtkWidget * prop_label
 
static GtkWidget * prop_type
 
static GtkWidget * prop_interval
 
static GtkWidget * prop_scale
 
static GtkTextBuffer * prop_moddesc_text
 
static GtkTextBuffer * prop_outdesc_text
 
static gboolean properties_popped_up =FALSE
 
static gint doing_move =0
 
static Output function_output
 

Function Documentation

◆ AddMenuToOutput()

void AddMenuToOutput ( GtkWidget *  widget,
Module  module 
)

Definition at line 396 of file menus.c.

References MenuStart(), module, _ProcMeterModule::name, and pane.

◆ AddModuleToMenu()

void AddModuleToMenu ( Module  module)

◆ CreateMenus()

◆ DestroyMenus()

void DestroyMenus ( void  )

Definition at line 430 of file menus.c.

References functions_menu, module_menu, and properties_dialog.

◆ FunctionsMenuStart()

◆ MenuStart()

static void MenuStart ( GtkWidget *  w,
GdkEvent *  event,
gpointer  data 
)
static

Definition at line 538 of file menus.c.

References FunctionsMenuStart(), ModuleMenuStart(), and OutputMenuStart().

Referenced by AddMenuToOutput().

◆ ModuleMenuStart()

static void ModuleMenuStart ( GtkWidget *  w,
GdkEvent *  event,
gpointer  data 
)
static

Definition at line 564 of file menus.c.

References module_menu.

Referenced by MenuStart().

◆ OutputMenuStart()

static void OutputMenuStart ( GtkWidget *  w,
GdkEvent *  event,
gpointer  data 
)
static

Definition at line 582 of file menus.c.

References Modules.

Referenced by MenuStart().

◆ PropertiesDialogCloseCallback()

static gint PropertiesDialogCloseCallback ( GtkWidget *  w,
GdkEvent *  event,
gpointer  data 
)
static

Definition at line 517 of file menus.c.

References properties_dialog, and properties_popped_up.

Referenced by CreateMenus().

◆ PropertiesDialogDoneCallback()

static void PropertiesDialogDoneCallback ( GtkWidget *  w,
gpointer  data 
)
static

Definition at line 498 of file menus.c.

References properties_dialog, and properties_popped_up.

Referenced by CreateMenus().

◆ RemoveModuleFromMenu()

void RemoveModuleFromMenu ( Module  module)

Definition at line 414 of file menus.c.

References module, and pane.

◆ SelectFunctionsMenuCallback()

static void SelectFunctionsMenuCallback ( gpointer  clientData)
static

◆ SelectOutputMenuCallback()

static void SelectOutputMenuCallback ( gpointer  clientData)
static

Definition at line 446 of file menus.c.

References AddRemoveOutput().

Referenced by AddModuleToMenu().

Variable Documentation

◆ doing_move

gint doing_move =0
static

Definition at line 55 of file menus.c.

Referenced by FunctionsMenuStart(), and SelectFunctionsMenuCallback().

◆ func_run

GtkWidget* func_run
static

Definition at line 49 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ function_output

Output function_output
static

Definition at line 59 of file menus.c.

Referenced by FunctionsMenuStart(), and SelectFunctionsMenuCallback().

◆ functions_menu

GtkWidget* functions_menu
static

Definition at line 48 of file menus.c.

Referenced by CreateMenus(), DestroyMenus(), and FunctionsMenuStart().

◆ module_menu

GtkWidget* module_menu
static

Definition at line 47 of file menus.c.

Referenced by AddModuleToMenu(), CreateMenus(), DestroyMenus(), and ModuleMenuStart().

◆ pane

GtkWidget* pane
extern

Definition at line 48 of file window.c.

◆ prop_interval

GtkWidget * prop_interval
static

Definition at line 52 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_label

GtkWidget * prop_label
static

Definition at line 52 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_moddesc

GtkWidget * prop_moddesc
static

Definition at line 50 of file menus.c.

Referenced by CreateMenus().

◆ prop_moddesc_text

GtkTextBuffer* prop_moddesc_text
static

Definition at line 53 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_modname

GtkWidget* prop_modname
static

Definition at line 50 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_outdesc

GtkWidget * prop_outdesc
static

Definition at line 51 of file menus.c.

Referenced by CreateMenus().

◆ prop_outdesc_text

GtkTextBuffer * prop_outdesc_text
static

Definition at line 53 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_outname

GtkWidget * prop_outname
static

Definition at line 51 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_scale

GtkWidget * prop_scale
static

Definition at line 52 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ prop_type

GtkWidget * prop_type
static

Definition at line 52 of file menus.c.

Referenced by CreateMenus(), and FunctionsMenuStart().

◆ properties_dialog

GtkWidget * properties_dialog
static

◆ properties_popped_up

gboolean properties_popped_up =FALSE
static

◆ vertical

int vertical
extern

ProcMeter - A system monitoring program for Linux - Version 3.6.

X Window menus (GTK version). Written by Andrew M. Bishop

This file Copyright 1998-2012 Andrew M. Bishop It may be distributed under the GNU Public License, version 2, or any higher version. See section COPYING of the GNU Public license for conditions under which this file may be redistributed.

ProcMeter - A system monitoring program for Linux - Version 3.6.

X Window menus (GTK version). Written by Andrew M. Bishop

This file Copyright 1998-2011 Andrew M. Bishop It may be distributed under the GNU Public License, version 2, or any higher version. See section COPYING of the GNU Public license for conditions under which this file may be redistributed.

Definition at line 51 of file window.c.