Menu

[r121]: / main.cpp  Maximize  Restore  History

Download this file

68 lines (52 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
Devchekio - The GTK+ "DEVelopment CHEcK In/Out" code editor
Devchekio (C) BlaherTech - Benjamin Jay Young 2008 - 2009
Devchekio is released under the GNU GPL and is free and open source.
You may edit or distrubute Devchekio at your own free will.
To help contribute to Devchekio, you can become part of the development group by going to BlaherTech or SourceForge.
http://www.blahertech.org/projects/devchekio
http://www.sourceforge.net/projects/devchekio
*/
/*
This is the main file to declare the API building fucntion and to start the GTK loop.
*/
//standard library includes
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string.h>
using namespace std;
//gtk environment
#include <gtk/gtk.h>
#include <glib.h>
#include <gio/gio.h>
#include <gtksourceview/gtksourceview.h>
#include <gtksourceview/gtksourcelanguage.h>
#include <gtksourceview/gtksourcelanguagemanager.h>
#ifdef TEST_XML_MEM
#include <libxml/xmlreader.h>
#endif
//local file includes
#include "store.h"
#include "syntax.cpp"
#include "actions.cpp"
#include "menu.cpp"
#include "api.cpp"
int main(int argc, char *argv[])
{
g_print("Program Started\n");
//used for file open paramaters
g_print("Setting Paramters...\n");
fileprmt=argv[1];
//set environment
g_print("Setting GTK Environment...\n");
gtk_set_locale();
gtk_init(&argc, &argv);
//build api
api();
//start gtk loop
g_print("Starting GTK Loop...\n");
gtk_main();
return 0;
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.