main.cc

来自「linux上网直通车的整个程序(含源程序)初版(可供局域网」· CC 代码 · 共 48 行

CC
48
字号
//#include <gtkmm.h>#include <gtkmm.h>#include <unistd.h>#include "Kpassport.h"#include "Khelper.h"int main(int argc, char *argv[]){    if(argc == 1)    {        //init threads        if(!Glib::thread_supported())              Glib::thread_init(NULL);          gdk_threads_init();        //Create Main Window        Gtk::Main GtkMM(argc, argv);        CKpassport Kpassport;        //gdk_threads_enter();        Gtk::Main::run(Kpassport);          //gdk_threads_leave();    }       CKHelper helper;    int option;    while((option = getopt(argc,argv,"hvpc"))!=-1)    {        switch(option)        {        case 'h':            helper.PrintOptions();            break;        case 'v':            helper.PrintAuthors();            helper.PrintCopyleft();            break;        case 'p': //list all the kpassport process in you system!但是必须命名包括kpassport字            system("ps aux|grep -i kpassport");            break;        case 'c':            helper.PrintChangelog();            break;        }    }    return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?