1 /*
2   FXiTe - The Free eXtensIble Text Editor
3   Copyright (c) 2009-2012 Jeffrey Pohlmeyer <yetanothergeek@gmail.com>
4 
5   This program is free software; you can redistribute it and/or modify it
6   under the terms of the GNU General Public License version 3 as
7   published by the Free Software Foundation.
8 
9   This software is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   GNU General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with this program; if not, write to the Free Software
16   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17 */
18 
19 
20 class DocTab;
21 class Settings;
22 
23 class TabCallbacks {
24 private:
25   static bool ZoomStepCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
26   static bool ZoomSpecCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
27   static bool FileStillOpenCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
28 public:
29   static bool LineNumsCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
30   static bool WhiteSpaceCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
31   static bool ShowMarginCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
32   static bool ShowIndentCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
33   static bool ShowCaretLineCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
34   static bool FileAlreadyOpenCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
35   static bool ResetUndoLevelCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
36   static bool PrefsCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
37   static bool AutoSaveCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
38   static bool BookmarkCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
39   static bool StyleNextDocCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
40   static bool NamedFilesCB(FXint index, DocTab*tab, FXWindow*page, void*user_data);
41   static bool IsDocValid(SciDoc*sci, DocTabs*tabbook);
42   static void SetZoom(SciDoc*sci, FXSelector sel, void*p, DocTabs*tabbook, Settings*prefs);
43 };
44 
45 
46 
47