Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
dc8266d5
Commit
dc8266d5
authored
Oct 24, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Ge: Fixed DropDown boxes in toolbar.
parent
ba96fda8
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
173 additions
and
187 deletions
+173
-187
xtt/lib/cow/qt/cow_qt_helpers.cpp
xtt/lib/cow/qt/cow_qt_helpers.cpp
+4
-7
xtt/lib/cow/qt/cow_qt_helpers.h
xtt/lib/cow/qt/cow_qt_helpers.h
+2
-1
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+157
-173
xtt/lib/ge/qt/ge_qt.h
xtt/lib/ge/qt/ge_qt.h
+10
-6
No files found.
xtt/lib/cow/qt/cow_qt_helpers.cpp
View file @
dc8266d5
...
...
@@ -227,14 +227,11 @@ QAction* addCheckableToolItem(QObject* parent, QToolBar* tools,
return
action
;
}
Q
Menu
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
text
)
Q
ComboBox
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
callback
)
{
QToolButton
*
button
=
new
QToolButton
(
parent
);
button
->
setText
(
translate_utf8
(
text
));
button
->
setPopupMode
(
QToolButton
::
InstantPopup
);
QMenu
*
menu
=
new
QMenu
(
button
);
button
->
setMenu
(
menu
);
tools
->
addWidget
(
button
);
QComboBox
*
menu
=
new
QComboBox
(
parent
);
QObject
::
connect
(
menu
,
SIGNAL
(
activated
(
int
)),
parent
,
callback
);
tools
->
addWidget
(
menu
);
return
menu
;
}
...
...
xtt/lib/cow/qt/cow_qt_helpers.h
View file @
dc8266d5
...
...
@@ -38,6 +38,7 @@
#define QT_HELPERS_H
#include <QAction>
#include <QComboBox>
#include <QLabel>
#include <QSplitter>
#include <QStatusBar>
...
...
@@ -89,7 +90,7 @@ QAction* addToolItem(QObject* parent, QToolBar* tools, const char* text,
const
char
*
callback
,
const
char
*
iconName
);
QAction
*
addCheckableToolItem
(
QObject
*
parent
,
QToolBar
*
tools
,
const
char
*
text
,
const
char
*
callback
,
const
char
*
iconName
);
Q
Menu
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
text
);
Q
ComboBox
*
addToolMenu
(
QWidget
*
parent
,
QToolBar
*
tools
,
const
char
*
callback
);
QWidget
*
layout_to_widget
(
QLayout
*
layout
);
void
set_pane_position
(
QSplitter
*
pane
,
int
right
);
QFrame
*
separator
(
QFrame
::
Shape
shape
);
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
dc8266d5
This diff is collapsed.
Click to expand it.
xtt/lib/ge/qt/ge_qt.h
View file @
dc8266d5
...
...
@@ -42,6 +42,7 @@
#include "ge.h"
#include <QAction>
#include <QComboBox>
#include <QLabel>
#include <QSplitter>
...
...
@@ -62,7 +63,9 @@ public:
QLabel
*
msg_label
;
QLabel
*
cmd_prompt
;
QAction
*
grid_on_w
;
QAction
*
grid_sizes
[
4
];
QComboBox
*
tools_gridsize
;
QComboBox
*
tools_gradient
;
QComboBox
*
tools_textfont
;
QAction
*
show_grid_w
;
QAction
*
view_plant_w
;
QAction
*
view_graphlist_w
;
...
...
@@ -217,17 +220,18 @@ public slots:
void
activate_decr_intensity
();
void
activate_incr_shift
();
void
activate_decr_shift
();
void
activate_gradient
(
int
idx
);
void
activate_gradient
();
void
activate_reset_mode
();
void
activate_scale
();
void
activate_scale_double
();
void
activate_scale_half
();
void
activate_grid
(
bool
set
);
void
activate_linewidth
();
void
activate_linetype
();
void
activate_gridsize
();
void
activate_textsize
();
void
activate_textfont
();
void
activate_linewidth
(
int
idx
);
void
activate_linetype
(
int
idx
);
void
activate_gridsize
(
int
idx
);
void
activate_textsize
(
int
idx
);
void
activate_textfont
(
int
idx
);
void
activate_textbold
(
bool
set
);
void
activate_zoom_in
();
void
activate_zoom_out
();
...
...
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