56: KDialogBase( parent,
"FilterLogDlg", false, i18n(
"Filter Log Viewer" ),
57 User1|User2|Close, Close, true, KStdGuiItem::clear(), KStdGuiItem::saveAs() )
59 setWFlags( WDestructiveClose );
60 TQVBox *page = makeVBoxMainWidget();
62 mTextEdit =
new TQTextEdit( page );
63 mTextEdit->setReadOnly(
true );
64 mTextEdit->setWordWrap( TQTextEdit::NoWrap );
65 mTextEdit->setTextFormat( TQTextEdit::LogText );
68 for ( TQStringList::Iterator it = logEntries.begin();
69 it != logEntries.end(); ++it )
71 mTextEdit->append( *it );
74 mLogActiveBox =
new TQCheckBox( i18n(
"&Log filter activities"), page );
76 connect( mLogActiveBox, TQ_SIGNAL(clicked()),
77 this, TQ_SLOT(slotSwitchLogState(
void)) );
78 TQWhatsThis::add( mLogActiveBox,
79 i18n(
"You can turn logging of filter activities on and off here. "
80 "Of course, log data is collected and shown only when logging "
83 mLogDetailsBox =
new TQVGroupBox( i18n(
"Logging Details" ), page );
84 mLogDetailsBox->setEnabled( mLogActiveBox->isChecked() );
85 connect( mLogActiveBox, TQ_SIGNAL( toggled(
bool ) ),
86 mLogDetailsBox, TQ_SLOT( setEnabled(
bool ) ) );
88 mLogPatternDescBox =
new TQCheckBox( i18n(
"Log pattern description"),
90 mLogPatternDescBox->setChecked(
92 connect( mLogPatternDescBox, TQ_SIGNAL(clicked()),
93 this, TQ_SLOT(slotChangeLogDetail(
void)) );
98 mLogRuleEvaluationBox =
new TQCheckBox( i18n(
"Log filter &rule evaluation"),
100 mLogRuleEvaluationBox->setChecked(
102 connect( mLogRuleEvaluationBox, TQ_SIGNAL(clicked()),
103 this, TQ_SLOT(slotChangeLogDetail(
void)) );
104 TQWhatsThis::add( mLogRuleEvaluationBox,
105 i18n(
"You can control the feedback in the log concerning the "
106 "evaluation of the filter rules of applied filters: "
107 "having this option checked will give detailed feedback "
108 "for each single filter rule; alternatively, only "
109 "feedback about the result of the evaluation of all rules "
110 "of a single filter will be given." ) );
112 mLogPatternResultBox =
new TQCheckBox( i18n(
"Log filter pattern evaluation"),
114 mLogPatternResultBox->setChecked(
116 connect( mLogPatternResultBox, TQ_SIGNAL(clicked()),
117 this, TQ_SLOT(slotChangeLogDetail(
void)) );
122 mLogFilterActionBox =
new TQCheckBox( i18n(
"Log filter actions"),
124 mLogFilterActionBox->setChecked(
126 connect( mLogFilterActionBox, TQ_SIGNAL(clicked()),
127 this, TQ_SLOT(slotChangeLogDetail(
void)) );
132 TQHBox * hbox =
new TQHBox( page );
133 new TQLabel( i18n(
"Log size limit:"), hbox );
134 mLogMemLimitSpin =
new TQSpinBox( hbox );
135 mLogMemLimitSpin->setMinValue( 1 );
136 mLogMemLimitSpin->setMaxValue( 1024 * 256 );
139 mLogMemLimitSpin->setSuffix(
" KB" );
140 mLogMemLimitSpin->setSpecialValueText( i18n(
"unlimited") );
141 connect( mLogMemLimitSpin, TQ_SIGNAL(valueChanged(
int)),
142 this, TQ_SLOT(slotChangeLogMemLimit(
int)) );
143 TQWhatsThis::add( mLogMemLimitSpin,
144 i18n(
"Collecting log data uses memory to temporarily store the "
145 "log data; here you can limit the maximum amount of memory "
146 "to be used: if the size of the collected log data exceeds "
147 "this limit then the oldest data will be discarded until "
148 "the limit is no longer exceeded. " ) );
151 this, TQ_SLOT(slotLogEntryAdded(TQString)));
153 this, TQ_SLOT(slotLogShrinked(
void)));
155 this, TQ_SLOT(slotLogStateChanged(
void)));
157 setInitialSize( TQSize( 500, 500 ) );
158#if !KDE_IS_VERSION( 3, 2, 91 )
162 XDeleteProperty( tqt_xdisplay(), winId(), XA_WM_TRANSIENT_FOR );