1 /* 2 FXiTe - The Free eXtensIble Text Editor 3 Copyright (c) 2009-2013 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 #ifndef STATUSBAR_H 20 #define STATUSBAR_H 21 22 class StatusBar: public FXHorizontalFrame { 23 FXDECLARE(StatusBar) StatusBar()24 StatusBar() {} 25 protected: 26 FXTextField* coords; 27 FXTextField* docname; 28 FXTextField* encname; 29 FXLabel* mode; 30 FXSelector id_kill; 31 void Mode(const char*msg); 32 void Coords(long line, long col); 33 public: 34 void Colorize(); 35 void Running(const char*what); 36 void Recording(bool recording); 37 void FileInfo(const FXString &filename, const char* enc, long line, long column); 38 void Normal(); 39 void Clear(); 40 void Show(bool showit); 41 void SetKillID(FXSelector kill_id); 42 StatusBar( FXComposite *p, void* dont_freeze ); 43 }; 44 45 #endif 46 47