Editor Class

# Editor Class Reference

[Action.h Index] [Action.h Hierarchy]

More...

`#include <Editor.h>`

Inherits: KTopLevelWidget

## Public Members

- Editor (QWidget *parent = 0, const char *name = 0, const char* file = 0)
- virtual ~Editor ()
- bool isDirty ()
- bool gotoLine (int line)
- static Editor* findEditorWidget (QString& filename)

## Public Slots

- void newFileSlot ()
- void openFileSlot ()
- void saveFileSlot ()
- void saveAsFileSlot ()
- void saveFileAndCloseWindowSlot ()
- void closeWindowSlot ()
- void selectFontSlot ()
- void replaceAgainSlot ()
- void searchAgainSlot ()
- void optionsColorsSlot ()
- void optionsSettingsSlot ()
- void optionsConfigureKeysSlot ()
- void optionsSelectModeSlot (int id)
- void makeSlot ()
- void helpIndexSlot ()
- void helpAboutSlot ()
- void helpAboutQtSlot ()

## Protected Members

- KSyntaxMultiLineEdit *editbuffer
- KMenuBar* mainMenu
- QPopupMenu* modeMenu
- KStatusBar* label
- KToolBar* toolbar
- QString fileName
- QDir modeFiles
- int modeIndex
- bool load (const QString& fname)
- bool save (bool force = false)
- bool doSavingIfNeeded ()
- void setTitle (const QString& name)
- void changeFileState (const QString& name)
- void deleteThis ()
- void setupView ()
- void setupMenuBar ()
- void setupStatusBar ()
- void setupKeystrokes ()
- void setupToolBar ()
- void setupModes ()
- void resizeEvent (QResizeEvent* ev)
- void closeEvent (QCloseEvent* ev)

## Protected Slots

- void updateDirtyFlagSlot ()
- void insModeChangedSlot ()
- void cursorPosChangedSlot ()
- void editorSettingsApplied ()
- void colorsAppliedSlot ()
- void test ()

## static Editor* findEditorWidget(QString& filename)

This method searches for an Editor widget that contains the file with the given filename; all Editor widgets opened in the same application are added to the static list Editors and can be iterated.

Returns:
  the return value is either null, if there is no Editor widget the return value is either null, if there is no Editor widget

| Kdoc