📄 main.cc
字号:
//#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -