Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
John Zhang
Okular
Commits
54f586f1
Commit
54f586f1
authored
Jul 15, 2007
by
Pino Toscano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove the editing of unique name and flags, they are internal
svn path=/trunk/KDE/kdegraphics/okular/; revision=688247
parent
4754b671
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
17 deletions
+8
-17
ui/annotationpropertiesdialog.cpp
ui/annotationpropertiesdialog.cpp
+8
-15
ui/annotationpropertiesdialog.h
ui/annotationpropertiesdialog.h
+0
-2
No files found.
ui/annotationpropertiesdialog.cpp
View file @
54f586f1
...
...
@@ -89,8 +89,8 @@ AnnotsPropertiesDialog::AnnotsPropertiesDialog( QWidget *parent, Okular::Documen
tmplabel
=
new
QLabel
(
KGlobal
::
locale
()
->
formatDateTime
(
ann
->
creationDate
(),
KLocale
::
LongDate
,
true
),
page
);
//time
gridlayout
->
addWidget
(
tmplabel
,
1
,
1
);
m_modifyDateL
abel
=
new
QLabel
(
i18n
(
"Modified:"
),
page
);
gridlayout
->
addWidget
(
m_modifyDateL
abel
,
2
,
0
);
tmpl
abel
=
new
QLabel
(
i18n
(
"Modified:"
),
page
);
gridlayout
->
addWidget
(
tmpl
abel
,
2
,
0
);
m_modifyDateLabel
=
new
QLabel
(
KGlobal
::
locale
()
->
formatDateTime
(
ann
->
modificationDate
(),
KLocale
::
LongDate
,
true
),
page
);
//time
gridlayout
->
addWidget
(
m_modifyDateLabel
,
2
,
1
);
...
...
@@ -101,21 +101,11 @@ AnnotsPropertiesDialog::AnnotsPropertiesDialog( QWidget *parent, Okular::Documen
addPage
(
page
,
i18n
(
"&Advanced"
)
);
gridlayout
=
new
QGridLayout
(
page
);
tmplabel
=
new
QLabel
(
i18n
(
"uniqueName:"
),
page
);
gridlayout
->
addWidget
(
tmplabel
,
0
,
0
);
uniqueNameEdit
=
new
QLineEdit
(
ann
->
uniqueName
(),
page
);
gridlayout
->
addWidget
(
uniqueNameEdit
,
0
,
1
);
tmplabel
=
new
QLabel
(
i18n
(
"contents:"
),
page
);
gridlayout
->
addWidget
(
tmplabel
,
1
,
0
);
contentsEdit
=
new
QLineEdit
(
ann
->
contents
(),
page
);
gridlayout
->
addWidget
(
contentsEdit
,
1
,
1
);
tmplabel
=
new
QLabel
(
i18n
(
"flags:"
),
page
);
gridlayout
->
addWidget
(
tmplabel
,
2
,
0
);
flagsEdit
=
new
QLineEdit
(
QString
::
number
(
m_annot
->
flags
()
),
page
);
gridlayout
->
addWidget
(
flagsEdit
,
2
,
1
);
gridlayout
->
addItem
(
new
QSpacerItem
(
5
,
5
,
QSizePolicy
::
Fixed
,
QSizePolicy
::
Expanding
),
4
,
0
);
//END advance
...
...
@@ -123,15 +113,19 @@ AnnotsPropertiesDialog::AnnotsPropertiesDialog( QWidget *parent, Okular::Documen
connect
(
colorBn
,
SIGNAL
(
changed
(
const
QColor
&
)
),
this
,
SLOT
(
setModified
()
)
);
connect
(
m_opacity
,
SIGNAL
(
valueChanged
(
int
)
),
this
,
SLOT
(
setModified
()
)
);
connect
(
AuthorEdit
,
SIGNAL
(
textChanged
(
const
QString
&
)
),
this
,
SLOT
(
setModified
()
)
);
connect
(
uniqueNameEdit
,
SIGNAL
(
textChanged
(
const
QString
&
)
),
this
,
SLOT
(
setModified
()
)
);
connect
(
contentsEdit
,
SIGNAL
(
textChanged
(
const
QString
&
)
),
this
,
SLOT
(
setModified
()
)
);
connect
(
flagsEdit
,
SIGNAL
(
textChanged
(
const
QString
&
)
),
this
,
SLOT
(
setModified
()
)
);
if
(
m_annotWidget
)
{
connect
(
m_annotWidget
,
SIGNAL
(
dataChanged
()
),
this
,
SLOT
(
setModified
()
)
);
}
//END
#if 0
kDebug() << "Annotation details:" << endl;
kDebug() << " => unique name: '" << ann->uniqueName() << endl;
kDebug() << " => flags: '" << QString::number( m_annot->flags(), 2 ) << endl;
#endif
resize
(
sizeHint
()
);
}
AnnotsPropertiesDialog
::~
AnnotsPropertiesDialog
()
...
...
@@ -188,7 +182,6 @@ void AnnotsPropertiesDialog::slotapply()
m_annot
->
setAuthor
(
AuthorEdit
->
text
()
);
m_annot
->
setContents
(
contentsEdit
->
text
()
);
m_annot
->
setModificationDate
(
QDateTime
::
currentDateTime
()
);
m_annot
->
setFlags
(
flagsEdit
->
text
().
toInt
()
);
m_annot
->
style
().
setColor
(
colorBn
->
color
()
);
m_annot
->
style
().
setOpacity
(
(
double
)
m_opacity
->
value
()
/
100.0
);
...
...
ui/annotationpropertiesdialog.h
View file @
54f586f1
...
...
@@ -37,9 +37,7 @@ private:
Okular
::
Annotation
*
m_annot
;
//source annotation
//dialog widgets:
QLineEdit
*
AuthorEdit
;
QLineEdit
*
uniqueNameEdit
;
QLineEdit
*
contentsEdit
,
*
flagsEdit
,
*
boundaryEdit
;
KColorButton
*
colorBn
;
KIntNumInput
*
m_opacity
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment