atomes 1.1.15
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
main.c File Reference

Initialization of the atomes program
Functions required to read data from the command line. More...

#include <libavcodec/avcodec.h>
#include <libavutil/avutil.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include "version.h"
#include "global.h"
#include "bind.h"
#include "callbacks.h"
#include "interface.h"
#include "project.h"
#include "workspace.h"
#include <pwd.h>
+ Include dependency graph for main.c:

Go to the source code of this file.

Data Structures

struct  file_list
 

Macros

#define APP_EXTENSION
 

Functions

GtkWidget * create_main_window (GApplication *app)
 create the main application window
 
int test_this_arg (gchar *arg)
 test an argument from the command line
 
void printhelp ()
 print basic help
 
void printversion ()
 print version information
 
gboolean destroy_func (gpointer user_data)
 destroy splash screen
 
GtkWidget * create_splash_window ()
 create splash screen window
 
void read_this_file (int file_type, gchar *this_file)
 read file from the command line
 
void open_this_data_file (int file_type, gchar *file_name)
 open data file from the command line
 
G_MODULE_EXPORT void run_program (GApplication *app, gpointer data)
 run the program
 
int check_opengl_rendering ()
 check the initialization parameters for an OpenGL context
 
int main (int argc, char *argv[])
 initialization of the atomes program
 

Variables

const gchar * dfi [2]
 
struct file_listflist = NULL
 
struct file_listftmp = NULL
 
gboolean with_workspace = FALSE
 

Detailed Description

Initialization of the atomes program
Functions required to read data from the command line.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file main.c.

Macro Definition Documentation

◆ APP_EXTENSION

#define APP_EXTENSION

Definition at line 69 of file main.c.

Function Documentation

◆ check_opengl_rendering()

int check_opengl_rendering ( )

check the initialization parameters for an OpenGL context

Definition at line 567 of file main.c.

◆ create_main_window()

GtkWidget * create_main_window ( GApplication * atomes)
extern

create the main application window

Parameters
atomesthe initial GtkApplication

Definition at line 1087 of file gui.c.

◆ create_splash_window()

GtkWidget * create_splash_window ( )

create splash screen window

Definition at line 272 of file main.c.

◆ destroy_func()

gboolean destroy_func ( gpointer user_data)

destroy splash screen

Parameters
user_datathe splash screen to destroy

Definition at line 242 of file main.c.

◆ main()

int main ( int argc,
char * argv[] )

initialization of the atomes program

Parameters
argcnumber of argument(s) on the command line
*argv[]list of argument(s) on the command line

Definition at line 643 of file main.c.

◆ open_this_data_file()

void open_this_data_file ( int file_type,
gchar * file_name )

open data file from the command line

Parameters
file_typeFile type
file_nameFile name

Definition at line 339 of file main.c.

◆ printhelp()

void printhelp ( )

print basic help

Definition at line 112 of file main.c.

◆ printversion()

void printversion ( )

print version information

Definition at line 161 of file main.c.

◆ read_this_file()

void read_this_file ( int file_type,
gchar * this_file )

read file from the command line

Parameters
file_typeFile type
this_fileFile name

Definition at line 310 of file main.c.

◆ run_program()

G_MODULE_EXPORT void run_program ( GApplication * app,
gpointer data )

run the program

Parameters
appthe application to run
datathe associated data pointer

Definition at line 488 of file main.c.

◆ test_this_arg()

int test_this_arg ( gchar * arg)

test an argument from the command line

Parameters
argthe argument to test

Definition at line 92 of file main.c.

Variable Documentation

◆ dfi

const gchar* dfi[2]

Definition at line 74 of file main.c.

◆ flist

struct file_list* flist = NULL

Definition at line 81 of file main.c.

◆ ftmp

struct file_list* ftmp = NULL

Definition at line 82 of file main.c.

◆ with_workspace

gboolean with_workspace = FALSE

Definition at line 83 of file main.c.