LibreOffice Module onlineupdate (master) 1
Macros | Functions | Variables
progressui_gtk.cxx File Reference
#include <stdio.h>
#include <gtk/gtk.h>
#include <unistd.h>
#include "progressui.h"
#include "readstrings.h"
#include "errors.h"
#include <string.h>
#include "progressui_gtk_icon.h"
Include dependency graph for progressui_gtk.cxx:

Go to the source code of this file.

Macros

#define TIMER_INTERVAL   100
 

Functions

static gboolean UpdateDialog (gpointer)
 
static gboolean OnDeleteEvent (GtkWidget *, GdkEvent *, gpointer)
 
int InitProgressUI (int *pargc, char ***pargv)
 
int ShowProgressUI ()
 
void QuitProgressUI ()
 
void UpdateProgressUI (float progress)
 

Variables

static float sProgressVal
 
static gboolean sQuit = FALSE
 
static gboolean sEnableUI
 
static guint sTimerID
 
static GtkWidgetsWin
 
static GtkWidgetsLabel
 
static GtkWidgetsProgressBar
 
static const char * sProgramPath
 

Macro Definition Documentation

◆ TIMER_INTERVAL

#define TIMER_INTERVAL   100

Definition at line 22 of file progressui_gtk.cxx.

Function Documentation

◆ InitProgressUI()

int InitProgressUI ( int pargc,
char ***  pargv 
)

Definition at line 59 of file progressui_gtk.cxx.

References sEnableUI, and sProgramPath.

◆ OnDeleteEvent()

static gboolean OnDeleteEvent ( GtkWidget ,
GdkEvent *  ,
gpointer   
)
static

Definition at line 53 of file progressui_gtk.cxx.

References TRUE.

Referenced by ShowProgressUI().

◆ QuitProgressUI()

void QuitProgressUI ( )

Definition at line 131 of file progressui_gtk.cxx.

References sQuit, and TRUE.

◆ ShowProgressUI()

int ShowProgressUI ( )

◆ UpdateDialog()

static gboolean UpdateDialog ( gpointer  )
static

Definition at line 36 of file progressui_gtk.cxx.

References sProgressBar, sProgressVal, sQuit, sWin, and TRUE.

◆ UpdateProgressUI()

void UpdateProgressUI ( float  progress)

Definition at line 138 of file progressui_gtk.cxx.

References sProgressVal.

Variable Documentation

◆ sEnableUI

gboolean sEnableUI
static

Definition at line 26 of file progressui_gtk.cxx.

Referenced by InitProgressUI(), and ShowProgressUI().

◆ sLabel

GtkWidget* sLabel
static

Definition at line 30 of file progressui_gtk.cxx.

Referenced by ShowProgressUI().

◆ sProgramPath

const char* sProgramPath
static

Definition at line 33 of file progressui_gtk.cxx.

Referenced by InitProgressUI(), and ShowProgressUI().

◆ sProgressBar

GtkWidget* sProgressBar
static

Definition at line 31 of file progressui_gtk.cxx.

Referenced by ShowProgressUI(), and UpdateDialog().

◆ sProgressVal

float sProgressVal
static

Definition at line 24 of file progressui_gtk.cxx.

Referenced by ShowProgressUI(), UpdateDialog(), and UpdateProgressUI().

◆ sQuit

gboolean sQuit = FALSE
static

Definition at line 25 of file progressui_gtk.cxx.

Referenced by QuitProgressUI(), ShowProgressUI(), and UpdateDialog().

◆ sTimerID

guint sTimerID
static

Definition at line 27 of file progressui_gtk.cxx.

Referenced by ShowProgressUI().

◆ sWin

GtkWidget* sWin
static

Definition at line 29 of file progressui_gtk.cxx.

Referenced by ShowProgressUI(), and UpdateDialog().