connectionMgr/inc/background.h File Reference

connectionMgr - background creation/update More...

#include <liberdm/display.h>

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BACKGROUND_TITLE_OFFSET   10
#define TITLE_MIN_HEIGHT   54
#define TITLE_MIN_WIDTH   666
#define SCREEN_BORDER   ((SCREEN_WIDTH - TITLE_MIN_WIDTH) / 2)
#define SCREEN_BORDER_TOP   (SCREEN_BORDER)
#define SCREEN_BORDER_BOTTOM   1
#define SCREEN_BORDER_LEFT   (SCREEN_BORDER)
#define SCREEN_BORDER_RIGHT   (SCREEN_BORDER)
#define SCREEN_ITEM_SPACING   9
#define SITEM_BK_WIDTH   666
#define SITEM_BK_HEIGHT   75
#define BK_666_140_WIDTH   666
#define BK_666_140_HEIGHT   140
#define BK_666_168_WIDTH   666
#define BK_666_168_HEIGHT   168
#define BK_666_245_WIDTH   666
#define BK_666_245_HEIGHT   245
#define BK_666_273_WIDTH   666
#define BK_666_273_HEIGHT   273
#define PADDING_TOP   10
#define PADDING_BOTTOM   10
#define PADDING_LEFT   13
#define PADDING_RIGHT   13
#define HBOX_SPACING   5
#define VBOX_SPACING   9
#define LBUTTON_WIDTH   310
#define LBUTTON_HEIGHT   27
#define BUTTON_WIDTH   200
#define BUTTON_HEIGHT   27
#define SBUTTON_WIDTH   130
#define SBUTTON_HEIGHT   27
#define LABEL_WIDTH   640
#define LABEL_HEIGHT   -1
#define ENTRY_WIDTH   400
#define ENTRY_HEIGHT   27
#define MAX_PROFILES_PER_PAGE   12

Functions

GtkWidget * bg_create (GtkWidget *window)
void bg_set_text (void)
void bg_display_title (void)


Detailed Description

connectionMgr - background creation/update

Copyright (C) 2007 iRex Technologies BV.

Definition in file background.h.


Define Documentation

#define BACKGROUND_TITLE_OFFSET   10

Definition at line 31 of file background.h.

#define BK_666_140_HEIGHT   140

Definition at line 50 of file background.h.

#define BK_666_140_WIDTH   666

Definition at line 49 of file background.h.

#define BK_666_168_HEIGHT   168

Definition at line 53 of file background.h.

#define BK_666_168_WIDTH   666

Definition at line 52 of file background.h.

#define BK_666_245_HEIGHT   245

Definition at line 56 of file background.h.

#define BK_666_245_WIDTH   666

Definition at line 55 of file background.h.

#define BK_666_273_HEIGHT   273

Definition at line 59 of file background.h.

#define BK_666_273_WIDTH   666

Definition at line 58 of file background.h.

#define BUTTON_HEIGHT   27

Definition at line 73 of file background.h.

#define BUTTON_WIDTH   200

Definition at line 72 of file background.h.

#define ENTRY_HEIGHT   27

Definition at line 81 of file background.h.

#define ENTRY_WIDTH   400

Definition at line 80 of file background.h.

#define HBOX_SPACING   5

Definition at line 67 of file background.h.

#define LABEL_HEIGHT   -1

Definition at line 78 of file background.h.

#define LABEL_WIDTH   640

Definition at line 77 of file background.h.

#define LBUTTON_HEIGHT   27

Definition at line 71 of file background.h.

#define LBUTTON_WIDTH   310

Definition at line 70 of file background.h.

#define MAX_PROFILES_PER_PAGE   12

Definition at line 83 of file background.h.

#define PADDING_BOTTOM   10

Definition at line 63 of file background.h.

#define PADDING_LEFT   13

Definition at line 64 of file background.h.

#define PADDING_RIGHT   13

Definition at line 65 of file background.h.

#define PADDING_TOP   10

Definition at line 62 of file background.h.

#define SBUTTON_HEIGHT   27

Definition at line 75 of file background.h.

#define SBUTTON_WIDTH   130

Definition at line 74 of file background.h.

#define SCREEN_BORDER   ((SCREEN_WIDTH - TITLE_MIN_WIDTH) / 2)

Definition at line 37 of file background.h.

#define SCREEN_BORDER_BOTTOM   1

Definition at line 39 of file background.h.

#define SCREEN_BORDER_LEFT   (SCREEN_BORDER)

Definition at line 40 of file background.h.

#define SCREEN_BORDER_RIGHT   (SCREEN_BORDER)

Definition at line 41 of file background.h.

#define SCREEN_BORDER_TOP   (SCREEN_BORDER)

Definition at line 38 of file background.h.

#define SCREEN_ITEM_SPACING   9

Definition at line 43 of file background.h.

#define SITEM_BK_HEIGHT   75

Definition at line 47 of file background.h.

#define SITEM_BK_WIDTH   666

Definition at line 46 of file background.h.

#define TITLE_MIN_HEIGHT   54

Definition at line 33 of file background.h.

#define TITLE_MIN_WIDTH   666

Definition at line 34 of file background.h.

#define VBOX_SPACING   9

Definition at line 68 of file background.h.


Function Documentation

GtkWidget* bg_create ( GtkWidget *  window  ) 

Definition at line 40 of file background.c.

00041 {
00042     GtkWidget *returnValue;
00043 
00044     returnValue = bg_screen_create(parentWindow);
00045     bg_set_text();
00046 
00047     return returnValue;
00048 }

Here is the call graph for this function:

void bg_display_title ( void   ) 

Definition at line 141 of file background.c.

00142 {
00143     cmgrScreen_t screen;
00144     editMode_t   mode;
00145     const gchar *title;
00146 
00147     screen = cmgr_get_screen_mode();
00148     switch (screen)
00149     {
00150         case cmgrScreenConnect_e:
00151             title = _("iLiad network connection");
00152             break;
00153         case cmgrScreenEdit_e:
00154             mode = edit_get_mode();
00155             if (mode == editModeConnectFillIn_e)
00156             {
00157                 title = _("iLiad network configuration");
00158             }
00159             else
00160             {
00161                 title = _("iLiad profile editor");
00162             }
00163             break;
00164         default:
00165             title = _("iLiad network profiles");
00166             break;
00167     }
00168 
00169     CN_LOGPRINTF("Title [%s]\n", title);
00170     gtk_label_set_text(GTK_LABEL(g_titleItem), title);
00171 }

Here is the call graph for this function:

void bg_set_text ( void   ) 

Definition at line 126 of file background.c.

00127 {
00128     char *title;
00129 
00130     title = main_get_screen_title();
00131     if (title == NULL)
00132     {
00133         title = _("iLiad network profiles");
00134     }
00135     
00136     CN_LOGPRINTF("Title [%s]\n", title);
00137     gtk_label_set_text(GTK_LABEL(g_titleItem), title);
00138 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:15:22 2008 by  doxygen 1.5.6