* Renamed private methhods to have an underscore prefix.
* Ordered methods as they are declared in the header. * Style cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39549 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -30,8 +30,10 @@ class StyledEditView;
|
||||
|
||||
class StyledEditWindow : public BWindow {
|
||||
public:
|
||||
StyledEditWindow(BRect frame, int32 id, uint32 encoding = 0);
|
||||
StyledEditWindow(BRect frame, entry_ref *ref, uint32 encoding = 0);
|
||||
StyledEditWindow(BRect frame, int32 id,
|
||||
uint32 encoding = 0);
|
||||
StyledEditWindow(BRect frame, entry_ref* ref,
|
||||
uint32 encoding = 0);
|
||||
virtual ~StyledEditWindow();
|
||||
|
||||
virtual void Quit();
|
||||
@@ -39,34 +41,41 @@ class StyledEditWindow : public BWindow {
|
||||
virtual void MessageReceived(BMessage* message);
|
||||
virtual void MenusBeginning();
|
||||
|
||||
status_t Save(BMessage *message = 0);
|
||||
status_t SaveAs(BMessage *message = 0);
|
||||
status_t Save(BMessage* message = NULL);
|
||||
status_t SaveAs(BMessage* message = NULL);
|
||||
void OpenFile(entry_ref* ref);
|
||||
status_t PageSetup(const char *documentname);
|
||||
void Print(const char *documentname);
|
||||
void SearchAllWindows(BString find, BString replace, bool casesens);
|
||||
status_t PageSetup(const char* documentName);
|
||||
void Print(const char* documentName);
|
||||
void SearchAllWindows(BString find, BString replace,
|
||||
bool caseSensitive);
|
||||
bool IsDocumentEntryRef(const entry_ref* ref);
|
||||
|
||||
private:
|
||||
void InitWindow(uint32 encoding = 0);
|
||||
void LoadAttrs();
|
||||
void SaveAttrs();
|
||||
bool Search(BString searchfor, bool casesens, bool wrap, bool backsearch);
|
||||
void FindSelection();
|
||||
bool Replace(BString findthis, BString replacewith, bool casesens,
|
||||
bool wrap, bool backsearch);
|
||||
void ReplaceAll(BString find, BString replace, bool casesens);
|
||||
void SetFontSize(float fontSize);
|
||||
void SetFontColor(const rgb_color *color);
|
||||
void SetFontStyle(const char *fontFamily, const char *fontStyle);
|
||||
int32 _ShowStatistics();
|
||||
void _InitWindow(uint32 encoding = 0);
|
||||
void _LoadAttrs();
|
||||
void _SaveAttrs();
|
||||
status_t _LoadFile(entry_ref* ref);
|
||||
void RevertToSaved();
|
||||
void _RevertToSaved();
|
||||
bool _Search(BString searchFor, bool caseSensitive,
|
||||
bool wrap, bool backSearch);
|
||||
void _FindSelection();
|
||||
bool _Replace(BString findThis, BString replaceWith,
|
||||
bool caseSensitive, bool wrap,
|
||||
bool backSearch);
|
||||
void _ReplaceAll(BString find, BString replace,
|
||||
bool caseSensitive);
|
||||
void _SetFontSize(float fontSize);
|
||||
void _SetFontColor(const rgb_color* color);
|
||||
void _SetFontStyle(const char* fontFamily,
|
||||
const char* fontStyle);
|
||||
int32 _ShowStatistics();
|
||||
void _UpdateCleanUndoRedoSaveRevert();
|
||||
int32 _ShowAlert(const BString& text, const BString& label,
|
||||
const BString& label2, const BString& label3,
|
||||
int32 _ShowAlert(const BString& text,
|
||||
const BString& label, const BString& label2,
|
||||
const BString& label3,
|
||||
alert_type type) const;
|
||||
|
||||
private:
|
||||
BMenuBar* fMenuBar;
|
||||
BMessage* fPrintSettings;
|
||||
BMessage* fSaveMessage;
|
||||
@@ -112,11 +121,13 @@ class StyledEditWindow : public BWindow {
|
||||
bool fCanRedo; // we can do a redo action next
|
||||
|
||||
// clean modes
|
||||
bool fUndoCleans; // an undo action will put us in a clean state
|
||||
bool fRedoCleans; // a redo action will put us in a clean state
|
||||
bool fUndoCleans;
|
||||
// an undo action will put us in a clean state
|
||||
bool fRedoCleans;
|
||||
// a redo action will put us in a clean state
|
||||
bool fClean; // we are in a clean state
|
||||
|
||||
bool fCaseSens;
|
||||
bool fCaseSensitive;
|
||||
bool fWrapAround;
|
||||
bool fBackSearch;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user