#ifndef _FILETYPESVIEW_H #define _FILETYPESVIEW_H #include #include #include #include #include "typeslistitem.h" class TQLabel; class TDEListView; class TQListViewItem; class TQListBox; class TQPushButton; class KIconButton; class TQLineEdit; class TQComboBox; class FileTypeDetails; class FileGroupDetails; class TQWidgetStack; class FileTypesView : public TDECModule { Q_OBJECT public: FileTypesView(TQWidget *p = 0, const char *name = 0); ~FileTypesView(); void load(); void save(); void defaults(); protected slots: /** fill in the various graphical elements, set up other stuff. */ void init(); void addType(); void removeType(); void updateDisplay(TQListViewItem *); void slotDoubleClicked(TQListViewItem *); void slotFilter(const TQString &patternFilter); void setDirty(bool state); void slotDatabaseChanged(); void slotEmbedMajor(const TQString &major, bool &embed); protected: void readFileTypes(); bool sync( TQValueList& itemsModified ); private: TDEListView *typesLV; TQPushButton *m_removeTypeB; TQWidgetStack * m_widgetStack; FileTypeDetails * m_details; FileGroupDetails * m_groupDetails; TQLabel * m_emptyWidget; TQLineEdit *patternFilterLE; TQStringList removedList; bool m_dirty; TQMap m_majorMap; TQPtrList m_itemList; TQValueList m_itemsModified; TDESharedConfig::Ptr m_konqConfig; }; #endif