📄 kpassport.h
字号:
#ifndef _GTKMM_KPASSPORT_H_#define _GTKMM_KPASSPORT_H_#include "Passport.h"#include "AccountInfoManager.h"#include "AccountInfo.h"#include <gtkmm.h> // so compile will ... slow !!-_________-!!class CKpassport: public Gtk::Window{ //------------------------------------------ public: CKpassport(); virtual ~CKpassport(); //---------------------------------- Passport passport; bool IsCurLogin; //标志当前是否在登陆状态 //----------------------------------- //Accout Setting Manager... bool IsSettingChanged; //标志设置是否改变,是否要保存到文件中 CAccountInfoManager MyAccountInfoManager; struct AccountInfo MyAccountInfo; //------------------------Userinterface------------------------------------------------ Gtk::VBox m_vbox_main; //Connect Information Gtk::Label m_label_connectinfo; Gtk::Label m_label_connectstatus; //AccountInfo: Gtk::Frame m_frame_account; Gtk::Table m_table_account; Gtk::Label m_label_username; Gtk::Label m_label_password; Gtk::Entry m_entry_username; Gtk::Entry m_entry_password; Gtk::CheckButton m_checkbutton_isinternational;//international Account or not Gtk::Image m_image_logo; //--------功能按钮---------------- Gtk::HBox m_hbox_buttons; //没找到办法从inline 的pixbuf中为按钮添加图标,只能用最原始的方法了..有待改进 !-________-!!! //[connect] button: Gtk::HBox m_hbox_connect; Gtk::Image m_image_connect; Gtk::Label m_label_connect; Gtk::Button m_button_connect; //login and logout //也可以为下面三个按钮的创建独立一个函数。。算了吧.. //[ exit ] button: Gtk::HBox m_hbox_exit; Gtk::Image m_image_exit; Gtk::Label m_label_exit; Gtk::Button m_button_exit; //[setting] button: Gtk::HBox m_hbox_setting; Gtk::Image m_image_setting; Gtk::Label m_label_setting; Gtk::Button m_button_setting; //configuration //[ about ] button: Gtk::HBox m_hbox_about; Gtk::Image m_image_about; Gtk::Label m_label_about; Gtk::Button m_button_about; //about kpassport //Messages:----------------------------------- protected: virtual void on_button_connect_clicked(); virtual void on_button_exit_clicked(); virtual void on_button_setting_clicked(); virtual void on_button_about_clicked(); virtual void on_checkbutton_isinter_released(); // Threads... void LoginAndRefresh(); //登陆,如果成功就刷新 void Logout(); //注销 //-------------------------------------------};#endif //_GTKMM_KPASSPORT_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -