Implemented MainWindow's TOC as a toolbar with icons and text.
This commit is contained in:
+16
-9
@@ -33,6 +33,7 @@
|
||||
#include <QScrollArea>
|
||||
#include <QStackedWidget>
|
||||
#include <QToolBar>
|
||||
#include <QToolButton>
|
||||
|
||||
|
||||
namespace glabels
|
||||
@@ -84,7 +85,7 @@ namespace glabels
|
||||
// Slots
|
||||
/////////////////////////////////////
|
||||
private slots:
|
||||
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
|
||||
void changePage( bool checked );
|
||||
|
||||
void clipboardChanged();
|
||||
|
||||
@@ -167,8 +168,8 @@ namespace glabels
|
||||
void createStatusBar();
|
||||
|
||||
QWidget* createWelcomePage();
|
||||
QWidget* createPropertiesPage();
|
||||
QWidget* createEditorPage();
|
||||
QWidget* createPropertiesPage();
|
||||
QWidget* createMergePage();
|
||||
QWidget* createPrintPage();
|
||||
|
||||
@@ -216,19 +217,25 @@ namespace glabels
|
||||
model::Model* mModel;
|
||||
UndoRedoModel* mUndoRedoModel;
|
||||
|
||||
QListWidget* mContents;
|
||||
QListWidgetItem* mWelcomeButton;
|
||||
QListWidgetItem* mPropertiesButton;
|
||||
QListWidgetItem* mEditorButton;
|
||||
QListWidgetItem* mMergeButton;
|
||||
QListWidgetItem* mPrintButton;
|
||||
QToolBar* mContents;
|
||||
QToolButton* mWelcomeButton;
|
||||
QToolButton* mEditorButton;
|
||||
QToolButton* mPropertiesButton;
|
||||
QToolButton* mMergeButton;
|
||||
QToolButton* mPrintButton;
|
||||
|
||||
QAction* mWelcomeAction;
|
||||
QAction* mEditorAction;
|
||||
QAction* mPropertiesAction;
|
||||
QAction* mMergeAction;
|
||||
QAction* mPrintAction;
|
||||
|
||||
QStackedWidget* mPages;
|
||||
StartupView* mWelcomeView;
|
||||
PropertiesView* mPropertiesView;
|
||||
QScrollArea* mLabelEditorScrollArea;
|
||||
LabelEditor* mLabelEditor;
|
||||
ObjectEditor* mObjectEditor;
|
||||
PropertiesView* mPropertiesView;
|
||||
MergeView* mMergeView;
|
||||
PrintView* mPrintView;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user