#ifndef OPTIONSPANEL_H #define OPTIONSPANEL_H #include #include #include #include class QTabWidget; class QWidget; class QObject; class QPushButton; namespace PixLib{ class Config; class ConfGroup; } class fileBrwsManager : public QObject{ Q_OBJECT public: fileBrwsManager(QWidget *parent, int type, QWidget *textField); ~fileBrwsManager(); public slots: void browse(); private: int m_type; QWidget *m_textField, *m_wparent; }; class optionsPanel : public QDialog{ Q_OBJECT public: optionsPanel( PixLib::Config &in_cfg, QWidget* parent = 0, const char* name = 0, bool modal = false, Qt::WFlags fl = 0 , bool subGrps = false, bool embed=false, bool useScrollbar=false); ~optionsPanel(); int fillTab(QWidget *, PixLib::ConfGroup &, const char *subcfg_name=0); void loadSubConf(PixLib::Config &inConf); QTabWidget *m_tabwidget; std::map m_handles; PixLib::Config &m_config; QPushButton *cancB; QPushButton *saveB; public slots: void save(); void cancel(){close();}; private: bool m_embed, m_useScrollbar; }; #endif // OPTIONSPANEL_H