Mercurial > hg > easyhg
view hgexpwidget.h @ 2:c19a4f858aab
Made annotate/resolvelist/resolvemark enable/disable logic better.
author | Jari Korhonen <jtkorhonen@gmail.com> |
---|---|
date | Sat, 24 Apr 2010 15:12:12 +0300 |
parents | a9098eba2ee5 |
children | 45bfb8dc1faf |
line wrap: on
line source
#ifndef HGEXPWIDGET_H #define HGEXPWIDGET_H //** Copyright (C) Jari Korhonen, 2010 (under lgpl) #include <QtGui> #include <QtCore> #include "common.h" #define NUM_STAT_FILE_TYPES 7 class HgExpWidget: public QTabWidget { Q_OBJECT public: HgExpWidget(QWidget *parent, QString remoteRepo, QString workFolderPath, unsigned char viewFileTypesBits = DEFAULT_HG_STAT_BITS); void updateWorkFolderFileList(QString fileList); void updateLocalRepoHeadsList(QString headList); void updateLocalRepoHgLogList(QString hgLogList); void updateLocalRepoParentsList(QString parentsList); void setWorkFolderAndRepoNames(QString workFolderPath, QString remoteRepoPath); QString getCurrentFileListLine(); void getHistoryDiffRevisions(QString& revA, QString& revB); void getUpdateToRevRevision(QString& rev); void clearLists(); void enableDisableOtherTabs(); QString getStatFlags(void); unsigned char getFileTypesBits(); QListWidget *workFolderFileList; QListWidget *localRepoHeadsList; QListWidget *localRepoHgLogList; signals: void workFolderViewTypesChanged(); private: QGroupBox *grpRemoteRepo; QWidget *workPageWidget; QWidget *historyPageWidget; QWidget *headsPageWidget; QGroupBox *grpLocalRepo; QVBoxLayout *mainLayout; QVBoxLayout *localRepoLayout; QVBoxLayout *parentsLayout; QListWidget *localRepoHgParentsList; QLabel *parentsLabel; QGroupBox *grpWorkFolder; QHBoxLayout *workFolderLayout; QGroupBox *grpViewFileTypes; QVBoxLayout *fileTypesLayout; QCheckBox *chkViewFileTypes[NUM_STAT_FILE_TYPES]; QVBoxLayout *historyLayout; QVBoxLayout *headsLayout; QString findRev(QString itemText, QString& smallRev); QStringList splitChangeSets(QString chgSetsStr); int findLineStart(int nowIndex, QString chgSetsStr); }; #endif // HGEXPWIDGET_H