📄 mainwindow.h
字号:
//=======================================================================// MainWindow.h//-----------------------------------------------------------------------// This file is part of the package paco// Copyright (C) 2004-2007 David Rosal <david.3r@gmail.com>// For more information visit http://paco.sourceforge.net//=======================================================================#ifndef GPACO_MAIN_WINDOW_H#define GPACO_MAIN_WINDOW_H#include "MainTreeView.h"#include <gtkmm/window.h>#include <gtkmm/label.h>#include <gtkmm/progressbar.h>#include <gtkmm/uimanager.h>namespace Gpaco{class MainWindow : public Gtk::Window { public: MainWindow(); ~MainWindow(); MainTreeView& treeView() { return mTreeView; } Gtk::ProgressBar& progressBar() { return mProgressBar; } private: Gtk::Label mLabel; MainTreeView mTreeView; Gtk::ProgressBar mProgressBar; Glib::RefPtr<Gtk::UIManager> mpUIManager; Glib::RefPtr<Gtk::ActionGroup> mpActionGroup; Glib::RefPtr<Gtk::Action> mpActionImportRPM; Glib::RefPtr<Gtk::Action> mpActionUpdate; Gtk::Widget* mpMenuBar; virtual bool on_delete_event(GdkEventAny*); void menuViewItem(Glib::ustring const&, Glib::ustring const&, int); void quit(); bool writeLabel(); void buildUIManager(); void viewColumn(Gtk::TreeViewColumn*); void onSwitchRules(); void find(); void about(); void preferences(); bool checkLock(); void onImportRPM();};} // namespace Gpaco#endif // GPACO_MAIN_WINDOW_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -