Main Page | Class List | File List | Class Members | File Members | Related Pages

ConfigDialog Class Reference

This is the Configuration dialog clas. Here the user can allter the program settings. More...

#include <configdialog.h>

List of all members.

Public Slots

void slotDefault ()
 Will be called when the "Default" button has been clicked. */.
void slotApply ()
 Will be called when the "Apply" button has been clicked.
void enableApply ()
 Will be called whenever a setting was changed.

Signals

void settingsChanged ()
 Will be emitted when the new settings should be applied.

Public Member Functions

 ConfigDialog (QWidget *parent, const char *name=0, WFlags f=0)
 ~ConfigDialog ()
void updateDialog ()
void updateConfiguration ()


Detailed Description

This is the Configuration dialog clas. Here the user can allter the program settings.

It uses the Conifg() function to access the Configuration object, and populate its controls to the configuration object's data. Later, if OK is pressed the Configuration object is saved with the new settings.

Author:
Bojan D.

Definition at line 54 of file configdialog.h.


Constructor & Destructor Documentation

ConfigDialog::ConfigDialog QWidget *  parent,
const char *  name = 0,
WFlags  f = 0
 

Default constructor.

Parameters:
parent parent widget
name the name of the widget
f window flags

Definition at line 58 of file configdialog.cpp.

References enableApply().

ConfigDialog::~ConfigDialog  ) 
 

Default destructor.

Definition at line 146 of file configdialog.cpp.


Member Function Documentation

void ConfigDialog::updateConfiguration  ) 
 

Updates the Configuration object with dialog controls' values.

Definition at line 227 of file configdialog.cpp.

References Configuration::Caption, Configuration::Capture, CaptureConfig::CaptureDelay, CaptureConfig::CaptureMode, CaptionConfig::Color, Config(), CaptionConfig::CustomPos, Configuration::File, WWWConfig::Files, CaptionConfig::Font, Configuration::Ftp, FtpConfig::Host, CaptureConfig::IncludeWD, Configuration::Log, FtpConfig::Password, LogConfig::Path, FileConfig::PathMain, FileConfig::PathOffline, FileConfig::PathThumb, CaptureConfig::PictureQuality, WWWConfig::Port, FtpConfig::Port, CaptionConfig::Position, CaptionConfig::PositionX, CaptionConfig::PositionY, CaptureConfig::ScaleMain, CaptureConfig::ScaleMode, CaptureConfig::ScaleThumb, CaptionConfig::Text, FtpConfig::TransferPath, CaptionConfig::UseCaption, FtpConfig::UseFtp, LogConfig::UseLog, FtpConfig::UseOffline, FtpConfig::User, FtpConfig::UseThumb, WWWConfig::UseWWW, and Configuration::WWW.

Referenced by slotApply(), and KWebSnap::slotConfig().

void ConfigDialog::updateDialog  ) 
 

Updates the dialog controls with Configuration values.

Definition at line 150 of file configdialog.cpp.

References Configuration::Caption, Configuration::CaptureMode, Config(), CaptionConfig::CustomPos, WWWConfig::Files, Configuration::Ftp, Configuration::Log, CaptionConfig::Position, Configuration::ScaleMode, PrefCapture::scaleModeChanged(), LogConfig::UseLog, FtpConfig::UseOffline, FtpConfig::UseThumb, WWWConfig::UseWWW, and Configuration::WWW.

Referenced by KWebSnap::slotConfig().


The documentation for this class was generated from the following files:
Generated on Mon Sep 5 12:52:34 2005 for kwebsnap.kdevelop by  doxygen 1.3.9.1