Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
212d3086
Commit
212d3086
authored
Sep 06, 2011
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
a891bccd
3c3e8246
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
19 deletions
+26
-19
UBLeftPalette.cpp
src/gui/UBLeftPalette.cpp
+22
-2
UBLeftPalette.h
src/gui/UBLeftPalette.h
+4
-0
UBPageNavigationWidget.cpp
src/gui/UBPageNavigationWidget.cpp
+0
-15
UBPageNavigationWidget.h
src/gui/UBPageNavigationWidget.h
+0
-1
UBRightPalette.cpp
src/gui/UBRightPalette.cpp
+0
-1
No files found.
src/gui/UBLeftPalette.cpp
View file @
212d3086
...
...
@@ -20,11 +20,16 @@ UBLeftPalette::UBLeftPalette(QWidget *parent, const char *name):UBDockPalette(pa
setObjectName
(
name
);
setOrientation
(
eUBDockOrientation_Left
);
mLastWidth
=
300
;
setMaximumWidth
(
300
);
resize
(
UBSettings
::
settings
()
->
navigPaletteWidth
->
get
().
toInt
(),
height
());
mCollapseWidth
=
180
;
/*
resize(UBSettings::settings()->libPaletteWidth->get().toInt(), parentWidget()->height());
mpLayout->setContentsMargins(2*border() + customMargin(), customMargin(), customMargin(), customMargin());
*/
resize
(
UBSettings
::
settings
()
->
navigPaletteWidth
->
get
().
toInt
(),
parentWidget
()
->
height
());
mpLayout
->
setContentsMargins
(
customMargin
(),
customMargin
(),
2
*
border
()
+
customMargin
(),
customMargin
());
// Add the widgets here
mpPageNavigator
=
new
UBPageNavigationWidget
(
this
);
addTabWidget
(
mpPageNavigator
);
}
...
...
@@ -38,6 +43,21 @@ UBLeftPalette::~UBLeftPalette()
}
}
void
UBLeftPalette
::
updateMaxWidth
()
{
setMaximumWidth
(
300
);
}
void
UBLeftPalette
::
resizeEvent
(
QResizeEvent
*
event
)
{
UBDockPalette
::
resizeEvent
(
event
);
if
(
NULL
!=
mpPageNavigator
)
{
mpPageNavigator
->
setMinimumHeight
(
height
()
-
2
*
border
());
}
UBSettings
::
settings
()
->
navigPaletteWidth
->
set
(
width
());
}
UBPageNavigationWidget
*
UBLeftPalette
::
pageNavigator
()
{
return
mpPageNavigator
;
...
...
src/gui/UBLeftPalette.h
View file @
212d3086
...
...
@@ -26,6 +26,10 @@ public:
UBPageNavigationWidget
*
pageNavigator
();
protected
:
void
updateMaxWidth
();
void
resizeEvent
(
QResizeEvent
*
event
);
private
:
UBPageNavigationWidget
*
mpPageNavigator
;
...
...
src/gui/UBPageNavigationWidget.cpp
View file @
212d3086
...
...
@@ -141,21 +141,6 @@ void UBPageNavigationWidget::refresh()
mNavigator
->
setDocument
(
UBApplication
::
boardController
->
activeDocument
());
}
/**
* \brief Handle the resize event
* @param event as the resize event
*/
void
UBPageNavigationWidget
::
resizeEvent
(
QResizeEvent
*
event
)
{
emit
resizeRequest
(
event
);
//UBDockPalette::resizeEvent(event);
if
(
NULL
!=
mNavigator
)
{
mNavigator
->
setMinimumHeight
(
height
()
-
2
*
border
());
}
UBSettings
::
settings
()
->
navigPaletteWidth
->
set
(
width
());
}
/**
* \brief Notify a timer event
* @param event as the timer event
...
...
src/gui/UBPageNavigationWidget.h
View file @
212d3086
...
...
@@ -43,7 +43,6 @@ public slots:
void
setPageNumber
(
int
current
,
int
total
);
protected
:
virtual
void
resizeEvent
(
QResizeEvent
*
event
);
virtual
void
timerEvent
(
QTimerEvent
*
event
);
private
:
...
...
src/gui/UBRightPalette.cpp
View file @
212d3086
...
...
@@ -23,7 +23,6 @@ UBRightPalette::UBRightPalette(QWidget *parent, const char *name):UBDockPalette(
{
setObjectName
(
name
);
setOrientation
(
eUBDockOrientation_Right
);
setOrientation
(
eUBDockOrientation_Right
);
mCollapseWidth
=
180
;
mLastWidth
=
300
;
resize
(
UBSettings
::
settings
()
->
libPaletteWidth
->
get
().
toInt
(),
parentWidget
()
->
height
());
...
...
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