From c30d5e78ea9e1ed4374535ec90b988d150186272 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 14 Jan 2021 19:18:24 +0200 Subject: Implemented slots in Tabs menu and reworked tab mechanism. The idea is to make some tabs closeable by the user (e.g. one may not need the Virus Browser tab all the time!). The state is stored in the program's configuration file. Some tabs are supposed to be always open (Scan and Update), that is why a way to close them is not programmatically implemented. Signed-off-by: Mavridis Philippe --- src/klamav.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/klamav.h') diff --git a/src/klamav.h b/src/klamav.h index 8c0858c..e539f85 100644 --- a/src/klamav.h +++ b/src/klamav.h @@ -17,6 +17,7 @@ class KPrinter; class TDEToggleAction; +class TDEPopupMenu; class KURL; class TQLineEdit; class TQComboBox; @@ -124,6 +125,7 @@ private: void firstRunWizard(); void createDefaultKlamAVDir(TQString type); void checkDir(TQString path); + void updateTabState(int tabId, bool init); private: //KlamavView *m_view; @@ -156,6 +158,11 @@ private: Sigtool *sigtool; Aboutklamav *aboutklamav; + TDEPopupMenu *tabs_menu; + int showWelcomeTab; + int showQuarantineTab; + int showDBViewerTab; + int showEventsTab; }; extern Klamav *tdemain; -- cgit v1.2.1